Home
last modified time | relevance | path

Searched refs:lua_Number (Results 1 – 20 of 20) sorted by relevance

/l4re-core-master/lua/lib/contrib/src/
A Dlmathlib.c66 lua_Number y = luaL_checknumber(L, 1); in math_atan()
67 lua_Number x = luaL_optnumber(L, 2, 1); in math_atan()
145 lua_Number n = luaL_checknumber(L, 1); in math_modf()
170 lua_Number x = luaL_checknumber(L, 1); in math_log()
171 lua_Number res; in math_log()
337 static lua_Number I2d (Rand64 x) { in I2d()
467 static lua_Number I2d (Rand64 x) { in I2d()
468 lua_Number h = (lua_Number)(trim32(x.h) >> (32 - FIGS)); in I2d()
492 static lua_Number I2d (Rand64 x) { in I2d()
493 lua_Number h = (lua_Number)trim32(x.h) * shiftHI; in I2d()
[all …]
A Dlobject.c73 static lua_Number numarith (lua_State *L, int op, lua_Number v1, in numarith()
74 lua_Number v2) { in numarith()
103 lua_Number n1; lua_Number n2; in luaO_rawarith()
111 lua_Number n1; lua_Number n2; in luaO_rawarith()
165 static lua_Number lua_strx2number (const char *s, char **endptr) { in lua_strx2number()
167 lua_Number r = 0.0; /* result (accumulator) */ in lua_strx2number()
228 static const char *l_str2dloc (const char *s, lua_Number *result, int mode) { in l_str2dloc()
251 static const char *l_str2d (const char *s, lua_Number *result) { in l_str2d()
309 lua_Integer i; lua_Number n; in luaO_str2num()
A Dlvm.h118 LUAI_FUNC int luaV_tonumber_ (const TValue *obj, lua_Number *n);
122 LUAI_FUNC int luaV_flttointeger (lua_Number n, lua_Integer *p, F2Imod mode);
132 LUAI_FUNC lua_Number luaV_modf (lua_State *L, lua_Number x, lua_Number y);
A Dlvm.c122 lua_Number f = l_floor(n); in luaV_flttointeger()
237 lua_Number init; lua_Number limit; lua_Number step; in forprep()
267 lua_Number step = fltvalue(s2v(ra + 2)); in floatforloop()
268 lua_Number limit = fltvalue(s2v(ra + 1)); in floatforloop()
756 lua_Number luaV_modf (lua_State *L, lua_Number m, lua_Number n) { in luaV_modf()
757 lua_Number r; in luaV_modf()
898 lua_Number nb = fltvalue(v1); \
899 lua_Number fimm = cast_num(imm); \
909 lua_Number n1; lua_Number n2; \
1018 lua_Number fim = cast_num(im); \
[all …]
A Dlauxlib.h44 #define LUAL_NUMSIZES (sizeof(lua_Integer)*16 + sizeof(lua_Number))
46 LUALIB_API void (luaL_checkversion_) (lua_State *L, lua_Number ver, size_t sz);
59 LUALIB_API lua_Number (luaL_checknumber) (lua_State *L, int arg);
60 LUALIB_API lua_Number (luaL_optnumber) (lua_State *L, int arg, lua_Number def);
A Dloslib.c73 #define l_timet lua_Number
74 #define l_pushtime(L,t) lua_pushnumber(L,(lua_Number)(t))
187 lua_pushnumber(L, ((lua_Number)clock())/(lua_Number)CLOCKS_PER_SEC); in os_clock()
375 lua_pushnumber(L, (lua_Number)difftime(t1, t2)); in os_difftime()
A Dluaconf.h631 #define l_mathop(op) (lua_Number)op /* no variant */
632 #define lua_str2number(s,p) ((lua_Number)strtod((s), (p)))
763 #define LUAL_BUFFERSIZE ((int)(16 * sizeof(void*) * sizeof(lua_Number)))
770 #define LUAI_MAXALIGN lua_Number n; double u; void *s; lua_Integer i; long l
A Dlstrlib.c1016 static lua_Number adddigit (char *buff, int n, lua_Number x) { in adddigit()
1024 static int num2straux (char *buff, int sz, lua_Number x) { in num2straux()
1026 if (x != x || x == (lua_Number)HUGE_VAL || x == -(lua_Number)HUGE_VAL) in num2straux()
1057 const char *fmt, lua_Number x) { in lua_number2strx()
1135 if (n == (lua_Number)HUGE_VAL) /* inf? */ in quotefloat()
1137 else if (n == -(lua_Number)HUGE_VAL) /* -inf? */ in quotefloat()
1270 lua_Number n = luaL_checknumber(L, arg); in str_format()
1451 case 'n': *size = sizeof(lua_Number); return Knumber; in getoption()
1726 lua_pushnumber(L, (lua_Number)f); in str_unpack()
1730 lua_Number f; in str_unpack()
[all …]
A Dlua.h90 typedef LUA_NUMBER lua_Number; typedef
161 LUA_API lua_Number (lua_version) (lua_State *L);
190 LUA_API lua_Number (lua_tonumberx) (lua_State *L, int idx, int *isnum);
234 LUA_API void (lua_pushnumber) (lua_State *L, lua_Number n);
A Dlundump.c93 static lua_Number loadNumber (LoadState *S) { in loadNumber()
94 lua_Number x; in loadNumber()
300 checksize(S, lua_Number); in checkHeader()
A Dlauxlib.c420 LUALIB_API lua_Number luaL_checknumber (lua_State *L, int arg) { in luaL_checknumber()
422 lua_Number d = lua_tonumberx(L, arg, &isnum); in luaL_checknumber()
429 LUALIB_API lua_Number luaL_optnumber (lua_State *L, int arg, lua_Number def) { in luaL_optnumber()
1097 LUALIB_API void luaL_checkversion_ (lua_State *L, lua_Number ver, size_t sz) { in luaL_checkversion_()
1098 lua_Number v = lua_version(L); in luaL_checkversion_()
A Dllex.h50 lua_Number r;
A Dldump.c78 static void dumpNumber (DumpState *D, lua_Number x) { in dumpNumber()
204 dumpByte(D, sizeof(lua_Number)); in dumpHeader()
A Dlparser.h72 lua_Number nval; /* for VKFLT */
A Dlbaselib.c203 lua_pushnumber(L, (lua_Number)k + ((lua_Number)b/1024)); in luaB_collectgarbage()
A Dltable.c119 static int l_hashfloat (lua_Number n) { in l_hashfloat()
148 lua_Number n = fltvalueraw(*kvl); in mainposition()
660 lua_Number f = fltvalue(key); in luaH_newkey()
A Dllimits.h127 #define cast_num(i) cast(lua_Number, (i))
A Dlapi.c147 LUA_API lua_Number lua_version (lua_State *L) { in lua_version()
304 lua_Number n; in lua_isnumber()
373 LUA_API lua_Number lua_tonumberx (lua_State *L, int idx, int *pisnum) { in lua_tonumberx()
374 lua_Number n = 0; in lua_tonumberx()
499 LUA_API void lua_pushnumber (lua_State *L, lua_Number n) { in lua_pushnumber()
A Dlcode.c597 static int luaK_numberK (FuncState *fs, lua_Number r) { in luaK_numberK()
662 static void luaK_float (FuncState *fs, int reg, lua_Number f) { in luaK_float()
1326 lua_Number n = fltvalue(&res); in constfolding()
A Dlobject.h54 lua_Number n; /* float numbers */

Completed in 40 milliseconds