| 152 | } |
| 153 | |
| 154 | static int math_frexp (lua_State *L) { |
| 155 | int e; |
| 156 | lua_pushnumber(L, l_mathop(frexp)(luaL_checknumber(L, 1), &e)); |
| 157 | lua_pushinteger(L, e); |
| 158 | return 2; |
| 159 | } |
| 160 | |
| 161 | static int math_ldexp (lua_State *L) { |
| 162 | lua_Number x = luaL_checknumber(L, 1); |
nothing calls this directly
no test coverage detected