Searched refs:cast_num (Results 1 – 6 of 6) sorted by relevance
19 #define LUAC_NUM cast_num(370.5)
75 *n = cast_num(ivalue(obj)); in luaV_tonumber_()284 if (f >= -cast_num(LUA_MININTEGER)) /* -minint == maxint + 1 */ in LTintfloat()286 else if (f > cast_num(LUA_MININTEGER)) /* minint < f <= maxint ? */ in LTintfloat()292 return luai_numlt(cast_num(i), f); /* compare them as floats */ in LTintfloat()303 if (f >= -cast_num(LUA_MININTEGER)) /* -minint == maxint + 1 */ in LEintfloat()305 else if (f >= cast_num(LUA_MININTEGER)) /* minint <= f <= maxint ? */ in LEintfloat()311 return luai_numle(cast_num(i), f); /* compare them as floats */ in LEintfloat()
215 r = (r * cast_num(16.0)) + luaO_hexavalue(*s); in lua_strx2number()430 setfltvalue(L->top, cast_num(va_arg(argp, l_uacNumber))); in luaO_pushvfstring()
115 #define cast_num(i) cast(lua_Number, (i)) macro
100 n = l_mathop(frexp)(n, &i) * -cast_num(INT_MIN); in l_hashfloat()102 lua_assert(luai_numisnan(n) || l_mathop(fabs)(n) == cast_num(HUGE_VAL)); in l_hashfloat()
166 (ttisinteger(o) ? cast_num(ivalue(o)) : fltvalue(o)))