MCPcopy Create free account
hub / github.com/BigPig0/RelayLive / luaV_shiftl

Function luaV_shiftl

ThirdParty/lua/lua/lvm.c:476–485  ·  view source on GitHub ↗

** Shift left operation. (Shift right just negates 'y'.) */

Source from the content-addressed store, hash-verified

474** Shift left operation. (Shift right just negates 'y'.)
475*/
476lua_Integer luaV_shiftl (lua_Integer x, lua_Integer y) {
477 if (y < 0) { /* shift right? */
478 if (y <= -NBITS) return 0;
479 else return intop(>>, x, -y);
480 }
481 else { /* shift left */
482 if (y >= NBITS) return 0;
483 else return intop(<<, x, y);
484 }
485}
486
487
488/*

Callers 2

luaV_executeFunction · 0.85
intarithFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected