MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / luaV_shiftl

Function luaV_shiftl

extlibs/lua/src/lvm.c:768–777  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

766#define luaV_shiftr(x,y) luaV_shiftl(x,-(y))
767
768lua_Integer luaV_shiftl (lua_Integer x, lua_Integer y) {
769 if (y < 0) { /* shift right? */
770 if (y <= -NBITS) return 0;
771 else return intop(>>, x, -y);
772 }
773 else { /* shift left */
774 if (y >= NBITS) return 0;
775 else return intop(<<, x, y);
776 }
777}
778
779
780/*

Callers 2

luaV_executeFunction · 0.85
intarithFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected