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

Function luaV_shiftl

xrepo/packages/l/lua/port/lua/src/lvm.c:772–781  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

770
771
772lua_Integer luaV_shiftl (lua_Integer x, lua_Integer y) {
773 if (y < 0) { /* shift right? */
774 if (y <= -NBITS) return 0;
775 else return intop(>>, x, -y);
776 }
777 else { /* shift left */
778 if (y >= NBITS) return 0;
779 else return intop(<<, x, y);
780 }
781}
782
783
784/*

Callers 2

luaV_executeFunction · 0.85
intarithFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected