benilla-re systems structs docs

math_ldexp

function · lua · boundary

Address
0x7fb1f0 · 62 bytes, up to 0x7fb22d
Signature
int __fastcall (lua_State *L)
Meaning
Pushes the first argument times two to the power of the second
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.

functionnamedecided by
0x7fb0a0math_logfldln2; fyl2x (0x7fb0ad, 0x7fb0b6)
0x7fb0d0math_log10fldlg2; fyl2x (0x7fb0dd, 0x7fb0e6)
0x7fb100math_expfldl2e, frndint, f2xm1, fscale (0x7fb10d, 0x7fb118, 0x7fb11e, 0x7fb124)
0x7fb140math_degfmul by 57.29577951308232 (0x7fb14d)
0x7fb170math_radfmul by 0.017453292519943295 (0x7fb17d)
0x7fb1a0math_frexpC runtime frexp (0x7fb1bb), two lua_pushnumber (0x7fb1c8, 0x7fb1d8)
0x7fb1f0math_ldexpexponent through __ftol (0x7fb1fd), C runtime ldexp (0x7fb215)
0x7fb230math_minlua_gettop (0x7fb23b), luaL_checknumber per argument, compare (0x7fb26c)
0x7fb2a0math_maxthe same loop with the opposite compare

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 4

Calls and jumps by a bare address, from tables/calls.tsv.