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

Function math_frexp

third-party/lua-5.1.5/src/lmathlib.c:139–144  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

137}
138
139static int math_frexp (lua_State *L) {
140 int e;
141 lua_pushnumber(L, frexp(luaL_checknumber(L, 1), &e));
142 lua_pushinteger(L, e);
143 return 2;
144}
145
146static int math_ldexp (lua_State *L) {
147 lua_pushnumber(L, ldexp(luaL_checknumber(L, 1), luaL_checkint(L, 2)));

Callers

nothing calls this directly

Calls 3

lua_pushnumberFunction · 0.70
luaL_checknumberFunction · 0.70
lua_pushintegerFunction · 0.70

Tested by

no test coverage detected