math_ceil
function · lua · boundary
- Address
0x7faf70· 41 bytes, up to0x7faf98- Signature
int __fastcall (lua_State *L)- Meaning
- Pushes the ceiling of argument 1, as math.ceil
- Confidence
- verified, proof two
- Finding
- ui/luastate#mathceil
Finding: math.ceil in ui: the Lua state, its library and C functions
math.ceil is 0x7faf70, the ceil entry of mathlib. It reads argument 1 with 0x6f4c80,
which returns lua_tonumber's double and, when that is 0.0 and lua_isnumber fails, first calls
0x6f4b80 with the index and type 3. It takes the C runtime's ceil of the double, pushes it
with lua_pushnumber and returns one result.
The derivation is in the doc.
Callers 0
None by a direct call or jump.
Callees 3
- lua_pushnumber lua
- luaL_checknumber lua
- ceil crt
Calls and jumps by a bare address, from tables/calls.tsv.