MCPcopy Create free account
hub / github.com/CppCXY/EmmyLuaCodeStyle / luaV_shiftl

Function luaV_shiftl

3rd/lua-5.4.3/src/lvm.c:771–780  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 2

luaV_executeFunction · 0.85
intarithFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected