Searched refs:cast_num (Results 1 – 8 of 8) sorted by relevance
/external/lua/src/ |
D | lundump.h | 19 #define LUAC_NUM cast_num(370.5)
|
D | lvm.c | 106 *n = cast_num(ivalue(obj)); in luaV_tonumber_() 414 return luai_numlt(cast_num(i), f); /* compare them as floats */ in LTintfloat() 431 return luai_numle(cast_num(i), f); /* compare them as floats */ in LEintfloat() 448 return luai_numlt(f, cast_num(i)); /* compare them as floats */ in LTfloatint() 465 return luai_numle(f, cast_num(i)); /* compare them as floats */ in LEfloatint() 893 lua_Number fimm = cast_num(imm); \ 1012 lua_Number fim = cast_num(im); \ 1169 setfltvalue(s2v(ra), cast_num(b)); in luaV_execute() 1571 cond = luai_numeq(fltvalue(s2v(ra)), cast_num(im)); in luaV_execute()
|
D | lvm.h | 58 (ttisinteger(o) ? ((n) = cast_num(ivalue(o)), 1) : 0))
|
D | llimits.h | 127 #define cast_num(i) cast(lua_Number, (i)) macro
|
D | lobject.c | 187 r = (r * cast_num(16.0)) + luaO_hexavalue(*s); in lua_strx2number() 503 setfltvalue(&num, cast_num(va_arg(argp, l_uacNumber))); in luaO_pushvfstring()
|
D | ltm.c | 224 setfltvalue(&aux, cast_num(v2)); in luaT_callorderiTM()
|
D | ltable.c | 117 n = l_mathop(frexp)(n, &i) * -cast_num(INT_MIN); in l_hashfloat() 119 lua_assert(luai_numisnan(n) || l_mathop(fabs)(n) == cast_num(HUGE_VAL)); in l_hashfloat()
|
D | lobject.h | 307 (ttisinteger(o) ? cast_num(ivalue(o)) : fltvalue(o)))
|