benilla-re systems structs docs

InitLightningTwoPi

function · gx · primitive

Address
0x7b0c20 · 15 bytes, up to 0x7b0c2e
Signature
void __cdecl ()
Meaning
Stores pi + pi as a float in the object file's 2 pi global
Confidence
verified, proof one
Finding
gx/lightning#static-initializers

Finding: Static initializers in gx: lightning

The object file's run in the initializer table is 0x7af990 (copies +∞ from 0x81d814 to 0xcf57ac), 0x7b0c10 (2π to 0xcf5850), 0x7b0c30 (1 / 2π to 0xcf57b8) and 0x7af5c0, which seeds the generator and registers an empty exit hook with _atexit. The render function lazily builds its four static objects on first use, each with an empty exit hook: the identity matrix 0xcf5768 (hook 0x7b06f0), the saved view 0xcf57c0 (0x7b06e0), the camera-relative view 0xcf5800 (0x7b06d0) and the normal (0, 0, 1) at 0xcf5840 (0x7b06c0). The static centre line has its own hook, 0x7afc90.

The derivation is in the doc.

Callers 1

Callees 0

None by a direct call or jump.

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