FastArctan
function · fastmath · unreached
- Address
0x454ab0· 120 bytes, up to0x454b27- Signature
float __stdcall (float x, float halfPi)- Meaning
- Returns a polynomial arctangent of x, folding |x| above 1 through the second argument
- 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 0
None by a direct call or jump.
Calls and jumps by a bare address, from tables/calls.tsv.