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

Function fitsBx

3rd/lua-5.4.3/src/lcode.c:649–651  ·  view source on GitHub ↗

** Check whether 'i' can be stored in an 'sBx' operand. */

Source from the content-addressed store, hash-verified

647** Check whether 'i' can be stored in an 'sBx' operand.
648*/
649static int fitsBx (lua_Integer i) {
650 return (-OFFSET_sBx <= i && i <= MAXARG_Bx - OFFSET_sBx);
651}
652
653
654void luaK_int (FuncState *fs, int reg, lua_Integer i) {

Callers 2

luaK_intFunction · 0.85
luaK_floatFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected