benilla-re systems structs docs

BatchSqrt

function · fastmath · unreached

Address
0x455260 · 909 bytes, up to 0x4555ec
Signature
void __fastcall (double *values, int count)
Meaning
Replaces each double by its square root in blocks of three
Confidence
inferred
Finding
fastmath#unreached-functions

Finding: Unreached functions in fastmath

0x454ab0 is an arctangent: a polynomial in t = |x|, or in 1/|x| when |x| > 1, with the second float argument minus the result in that case and the sign of x restored. 0x454b30, 0x454ba0 and 0x454c10 are log2 polynomials taking the table value and coefficients on the stack. 0x454e10 is a ray against a sphere at the origin, 0x454ea0 the quadratic solver in doubles, 0x454fd0 a batch reciprocal, 0x455260 a batch square root and 0x4555f0 a batch reciprocal square root, taking blocks of three. 0x455970 and 0x455a50 interpolate a double or float table by a Catmull-Rom cubic.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 1

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