Home
last modified time | relevance | path

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

/l4re-core-master/lua/lib/contrib/src/
A Dlmathlib.c26 #define PI (l_mathop(3.141592653589793238462643383279502884))
68 lua_pushnumber(L, l_mathop(atan2)(y, x)); in math_atan()
147 lua_Number ip = (n < 0) ? l_mathop(ceil)(n) : l_mathop(floor)(n); in math_modf()
173 res = l_mathop(log)(x); in math_log()
177 if (base == l_mathop(2.0)) in math_log()
178 res = l_mathop(log2)(x); in math_log()
181 if (base == l_mathop(10.0)) in math_log()
182 res = l_mathop(log10)(x); in math_log()
184 res = l_mathop(log)(x)/l_mathop(log)(base); in math_log()
677 lua_pushnumber(L, l_mathop(pow)(x, y)); in math_pow()
[all …]
A Dluaconf.h403 #define l_floor(x) (l_mathop(floor)(x))
436 #define l_mathop(op) op##f macro
452 #define l_mathop(op) op##l macro
467 #define l_mathop(op) op macro
629 #undef l_mathop /* variants not available */
631 #define l_mathop(op) (lua_Number)op /* no variant */ macro
A Dllimits.h307 { (void)L; (m) = l_mathop(fmod)(a,b); \
314 ((void)L, (b == 2) ? (a)*(a) : l_mathop(pow)(a,b))
A Dltable.c122 n = l_mathop(frexp)(n, &i) * -cast_num(INT_MIN); in l_hashfloat()
124 lua_assert(luai_numisnan(n) || l_mathop(fabs)(n) == cast_num(HUGE_VAL)); in l_hashfloat()
A Dlobject.c211 return l_mathop(ldexp)(r, e); in lua_strx2number()
A Dlstrlib.c1017 lua_Number dd = l_mathop(floor)(x); /* get integer part from 'x' */ in adddigit()
1034 lua_Number m = l_mathop(frexp)(x, &e); /* 'x' fraction and exponent */ in num2straux()

Completed in 15 milliseconds