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

Function luaK_float

third-party/lua-5.4.6/src/lcode.c:681–687  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

679
680
681static void luaK_float (FuncState *fs, int reg, lua_Number f) {
682 lua_Integer fi;
683 if (luaV_flttointeger(f, &fi, F2Ieq) && fitsBx(fi))
684 codeAsBx(fs, OP_LOADF, reg, cast_int(fi));
685 else
686 luaK_codek(fs, reg, luaK_numberK(fs, f));
687}
688
689
690/*

Callers 1

discharge2regFunction · 0.70

Calls 5

luaV_flttointegerFunction · 0.70
fitsBxFunction · 0.70
codeAsBxFunction · 0.70
luaK_codekFunction · 0.70
luaK_numberKFunction · 0.70

Tested by

no test coverage detected