Lines Matching refs:lua_Number
66 lua_Number y = luaL_checknumber(L, 1); in math_atan()
67 lua_Number x = luaL_optnumber(L, 2, 1); in math_atan()
86 static void pushnumint (lua_State *L, lua_Number d) { in pushnumint()
99 lua_Number d = l_mathop(floor)(luaL_checknumber(L, 1)); in math_floor()
110 lua_Number d = l_mathop(ceil)(luaL_checknumber(L, 1)); in math_ceil()
145 lua_Number n = luaL_checknumber(L, 1); in math_modf()
147 lua_Number ip = (n < 0) ? l_mathop(ceil)(n) : l_mathop(floor)(n); in math_modf()
170 lua_Number x = luaL_checknumber(L, 1); in math_log()
171 lua_Number res; in math_log()
175 lua_Number base = luaL_checknumber(L, 2); in math_log()
337 static lua_Number I2d (Rand64 x) { in I2d()
338 return (lua_Number)(trim64(x) >> shift64_FIG) * scaleFIG; in I2d()
467 static lua_Number I2d (Rand64 x) { in I2d()
468 lua_Number h = (lua_Number)(trim32(x.h) >> (32 - FIGS)); in I2d()
489 #define shiftHI ((lua_Number)(UONE << (FIGS - 33)) * l_mathop(2.0))
492 static lua_Number I2d (Rand64 x) { in I2d()
493 lua_Number h = (lua_Number)trim32(x.h) * shiftHI; in I2d()
494 lua_Number l = (lua_Number)(trim32(x.l) >> shiftLOW); in I2d()
675 lua_Number x = luaL_checknumber(L, 1); in math_pow()
676 lua_Number y = luaL_checknumber(L, 2); in math_pow()
689 lua_Number x = luaL_checknumber(L, 1); in math_ldexp()
755 lua_pushnumber(L, (lua_Number)HUGE_VAL); in luaopen_math()