ceil
function · crt · boundary
- Address
0x73fdf5· 207 bytes, up to0x73fec3- Signature
double __cdecl (double x)- Meaning
- Returns the smallest integer not less than a finite double, rounding under the control word 0x1b3f
- Confidence
- verified, proof one
- Finding
- ui/billing#the-minutes-reading
- Test
ui::billing_minutes_left
Finding: The minutes reading in ui: play time and the billing rest time
The poll reads the time left as minutes: left = deadline - now as a dword, zero-extended, times the f32 0x378bcf65 (a hair over 1/60000) at 53-bit precision, rounded up, truncated to an integer, and compared as unsigned. For 1 <= left < 89,999,999 the reading is left / 60000 + 1 (integer division): a whole minute reads as two, 0 reads 0. For n >= 2 the first left that reads n is floor(60000(n - 1) * 2^34 / 17179869375) + 1, which is 60000(n - 1) less k ms, k = 1 from n = 1501, 2 from 3000, 3 from 4499. The arm's 4320-minute cap reaches only k of 1 and 2; more needs a wrapped left.
The derivation is in the doc.
Callers 17
- CGGameUI::Update ui
- ExpandSpellToken ui
- CGTooltip::AddStudiedCreatureLines ui
- RoundToGridCeil gxumath
- RoundToGridCeilAlt gxumath
- MeasureTextExtent font
- InternalGetMaxCharsWithinWidth font
- MeasureRunProportional font
- CGxFont::ComputeStep font
- GlyphWidth font
- FindNearestChunkLiquid terrain
- InitRadialWave terrain
- CMapObj::FootprintCells models
- CeilLog2 models
- UpdateKeyboardLcd ui
- CRibbonEmitter::Initialize models
- math_ceil lua
Callees 5
- __sptype crt
- __handle_qnan1 crt
- __except1 crt
- __ctrlfp crt
- __frnd crt
Calls and jumps by a bare address, from tables/calls.tsv.