| 333 | } |
| 334 | |
| 335 | static int math_ldexp (lua_State *L) { |
| 336 | lua_Number x = luaL_checknumber(L, 1); |
| 337 | int ep = (int)luaL_checkinteger(L, 2); |
| 338 | lua_pushnumber(L, l_mathop(ldexp)(x, ep)); |
| 339 | return 1; |
| 340 | } |
| 341 | |
| 342 | static int math_log10 (lua_State *L) { |
| 343 | lua_pushnumber(L, l_mathop(log10)(luaL_checknumber(L, 1))); |
nothing calls this directly
no test coverage detected