Home
last modified time | relevance | path

Searched refs:l_mathop (Results 1 – 6 of 6) sorted by relevance

/external/lua/src/
Dlmathlib.c23 #define PI (l_mathop(3.141592653589793238462643383279502884))
46 lua_pushnumber(L, l_mathop(fabs)(luaL_checknumber(L, 1))); in math_abs()
51 lua_pushnumber(L, l_mathop(sin)(luaL_checknumber(L, 1))); in math_sin()
56 lua_pushnumber(L, l_mathop(cos)(luaL_checknumber(L, 1))); in math_cos()
61 lua_pushnumber(L, l_mathop(tan)(luaL_checknumber(L, 1))); in math_tan()
66 lua_pushnumber(L, l_mathop(asin)(luaL_checknumber(L, 1))); in math_asin()
71 lua_pushnumber(L, l_mathop(acos)(luaL_checknumber(L, 1))); in math_acos()
78 lua_pushnumber(L, l_mathop(atan2)(y, x)); in math_atan()
109 lua_Number d = l_mathop(floor)(luaL_checknumber(L, 1)); in math_floor()
120 lua_Number d = l_mathop(ceil)(luaL_checknumber(L, 1)); in math_ceil()
[all …]
Dluaconf.h434 #define l_floor(x) (l_mathop(floor)(x))
466 #define l_mathop(op) op##f macro
482 #define l_mathop(op) op##l macro
497 #define l_mathop(op) op macro
649 #undef l_mathop /* variants not available */
651 #define l_mathop(op) (lua_Number)op /* no variant */ macro
Dllimits.h281 { (m) = l_mathop(fmod)(a,b); if ((m)*(b) < 0) (m) += (b); }
286 #define luai_numpow(L,a,b) ((void)L, l_mathop(pow)(a,b))
Dltable.c100 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()
Dlobject.c239 return l_mathop(ldexp)(r, e); in lua_strx2number()
Dlstrlib.c834 lua_Number dd = l_mathop(floor)(x); /* get integer part from 'x' */ in adddigit()
851 lua_Number m = l_mathop(frexp)(x, &e); /* 'x' fraction and exponent */ in num2straux()