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

Function luaV_shiftl

third-party/lua-5.5.0/src/lvm.c:818–827  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

816** Shift left operation. (Shift right just negates 'y'.)
817*/
818lua_Integer luaV_shiftl (lua_Integer x, lua_Integer y) {
819 if (y < 0) { /* shift right? */
820 if (y <= -NBITS) return 0;
821 else return intop(>>, x, -y);
822 }
823 else { /* shift left */
824 if (y >= NBITS) return 0;
825 else return intop(<<, x, y);
826 }
827}
828
829
830/*

Callers 2

luaV_executeFunction · 0.70
intarithFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected