MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / luaV_shiftl

Function luaV_shiftl

third-party/lua-5.3.5/src/lvm.c:593–602  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

591** Shift left operation. (Shift right just negates 'y'.)
592*/
593lua_Integer luaV_shiftl (lua_Integer x, lua_Integer y) {
594 if (y < 0) { /* shift right? */
595 if (y <= -NBITS) return 0;
596 else return intop(>>, x, -y);
597 }
598 else { /* shift left */
599 if (y >= NBITS) return 0;
600 else return intop(<<, x, y);
601 }
602}
603
604
605/*

Callers 2

luaV_executeFunction · 0.70
intarithFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected