math_log10
function · lua · boundary
- Address
0x7fb0d0· 39 bytes, up to0x7fb0f6- Signature
int __fastcall (lua_State *L)- Meaning
- Pushes the base-10 logarithm of its argument
- Confidence
- verified, proof one
- Finding
- lua/libs#more-math-functions
Finding: More math functions in lua: the libraries
Nine more functions: log and log10 multiply the base-2 logarithm by ln 2 and by
log10 2, exp computes 2 to the power x times log2 e with f2xm1 and fscale, deg and rad
multiply by 180/pi and pi/180, frexp answers a mantissa and an exponent, ldexp scales by a power
of two, and min and max compare every argument with the running extreme.
| function | name | decided by |
|---|---|---|
0x7fb0a0 | math_log | fldln2; fyl2x (0x7fb0ad, 0x7fb0b6) |
0x7fb0d0 | math_log10 | fldlg2; fyl2x (0x7fb0dd, 0x7fb0e6) |
0x7fb100 | math_exp | fldl2e, frndint, f2xm1, fscale (0x7fb10d, 0x7fb118, 0x7fb11e, 0x7fb124) |
0x7fb140 | math_deg | fmul by 57.29577951308232 (0x7fb14d) |
0x7fb170 | math_rad | fmul by 0.017453292519943295 (0x7fb17d) |
0x7fb1a0 | math_frexp | C runtime frexp (0x7fb1bb), two lua_pushnumber (0x7fb1c8, 0x7fb1d8) |
0x7fb1f0 | math_ldexp | exponent through __ftol (0x7fb1fd), C runtime ldexp (0x7fb215) |
0x7fb230 | math_min | lua_gettop (0x7fb23b), luaL_checknumber per argument, compare (0x7fb26c) |
0x7fb2a0 | math_max | the same loop with the opposite compare |
The derivation is in the doc.
Callers 0
None by a direct call or jump.
Callees 2
- lua_pushnumber lua
- luaL_checknumber lua
Calls and jumps by a bare address, from tables/calls.tsv.