| 215 | |
| 216 | |
| 217 | static int math_frexp (lua_State *L) { |
| 218 | lua_Number x = luaL_checknumber(L, 1); |
| 219 | int ep; |
| 220 | lua_pushnumber(L, l_mathop(frexp)(x, &ep)); |
| 221 | lua_pushinteger(L, ep); |
| 222 | return 2; |
| 223 | } |
| 224 | |
| 225 | |
| 226 | static int math_ldexp (lua_State *L) { |
nothing calls this directly
no test coverage detected