benilla-re systems structs docs

AngleWrap

function · fastmath · primitive

Address
0x455b30 · 40 bytes, up to 0x455b57
Signature
double __stdcall (float angle)
Meaning
Returns the angle's remainder modulo 2 pi, plus 2 pi when negative
Confidence
verified, proof one
Finding
fastmath#angle-wrap
Test
fastmath::angle_wrap_diff

Finding: Angle wrap in fastmath

0x455b30(a) takes a float and returns in st0 r = fmod(a, 2π), plus 2π when r < 0. The modulus is the double at 0x803090, the float 2π widened (6.2831854820251465), and the added value is the float at 0x80295c, the same number; the sum stays at 53 bits. A NaN or −0 remainder is returned as it is.

The derivation is in the doc.

Callers 9

Callees 1

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