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

Function luaK_float

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

Source from the content-addressed store, hash-verified

660
661
662static void luaK_float (FuncState *fs, int reg, lua_Number f) {
663 lua_Integer fi;
664 if (luaV_flttointeger(f, &fi, F2Ieq) && fitsBx(fi))
665 luaK_codeAsBx(fs, OP_LOADF, reg, cast_int(fi));
666 else
667 luaK_codek(fs, reg, luaK_numberK(fs, f));
668}
669
670
671/*

Callers 1

discharge2regFunction · 0.85

Calls 5

luaV_flttointegerFunction · 0.85
fitsBxFunction · 0.85
luaK_codeAsBxFunction · 0.85
luaK_codekFunction · 0.85
luaK_numberKFunction · 0.85

Tested by

no test coverage detected