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

Function math_ldexp

3rd/lua-5.4.3/src/lmathlib.c:688–693  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

686}
687
688static int math_ldexp (lua_State *L) {
689 lua_Number x = luaL_checknumber(L, 1);
690 int ep = (int)luaL_checkinteger(L, 2);
691 lua_pushnumber(L, l_mathop(ldexp)(x, ep));
692 return 1;
693}
694
695static int math_log10 (lua_State *L) {
696 lua_pushnumber(L, l_mathop(log10)(luaL_checknumber(L, 1)));

Callers

nothing calls this directly

Calls 3

luaL_checknumberFunction · 0.85
luaL_checkintegerFunction · 0.85
lua_pushnumberFunction · 0.85

Tested by

no test coverage detected