fastmath
| rows | named | verified | proof two | tested | |
|---|---|---|---|---|---|
| functions | 21 | 21 (100%) | 10 (47%) | 0 (0%) | 3 (14%) |
| globals | 12 | 12 (100%) | 12 (100%) | 0 (0%) | – |
| structs | 0 | – | – | – | – |
| fields | 0 | – | – | – | – |
| all | 33 | 33 (100%) | 22 (66%) | 0 (0%) | 3 (14%) |
Docs
fastmath
The client's software scalar maths file after the spline file, 0x454a90 to 0x455ba2: a
base-2 logarithm and exponential built from a table and a polynomial, a quadratic solver, an
angle wrap, an arctangent polynomial, vector tests, batch reciprocal and reciprocal square root
routines and cubic table interpolation. The logarithm and exponential use no f2xm1 or fyl2x,
so their results do not depend on the CPU. Of its functions only 0x454d40, 0x454f40 and 0x455b30 are called. The file's three
static initializers store +∞, 2π and 1/2π in 0xb05e98, 0xb05ea0 and 0xb05e9c, and nothing
reads them. The next file opens at 0x455c00 with an initializer of its own; 0x455bb0 and
the code after it are not this file's. The x87 runs at 53 bits (docs/METHOD.md).
Closure
6 roots. A walk of direct calls and jumps from them reaches 9 of the 21 functions the system owns, and stops at 2 functions of other systems. Vtable slots and stored addresses are not followed, so a function reached only that way is not counted.
Roots
- FastPow2 fastmath
- QuadraticRoots fastmath
- AngleWrap fastmath
- InitFastmathInfinityThunk fastmath
- InitFastmathTwoPiThunk fastmath
- InitFastmathInvTwoPiThunk fastmath
Boundary
Functions 21
| address | name | class | confidence | test | closure |
|---|---|---|---|---|---|
0x454a90 | InitFastmathInfinityThunk | orchestration | verified, proof one | ✓ | |
0x454aa0 | InitFastmathInfinity | orchestration | verified, proof one | ✓ | |
0x454ab0 | FastArctan | unreached | inferred | ||
0x454b30 | FastLog2PolyScaled | unreached | inferred | ||
0x454ba0 | FastLog2Poly | unreached | inferred | ||
0x454c10 | FastLog2PolyScaled2 | unreached | inferred | ||
0x454c80 | FastLog2 | unreached | verified, proof one | ||
0x454d40 | FastPow2 | primitive | verified, proof one | ✓ | ✓ |
0x454e10 | RayHitsOriginSphere | unreached | inferred | ||
0x454ea0 | QuadraticRootsDouble | unreached | inferred | ||
0x454f40 | QuadraticRoots | primitive | verified, proof one | ✓ | ✓ |
0x454fd0 | RefineReciprocalBlocks | unreached | inferred | ||
0x455260 | BatchSqrt | unreached | inferred | ||
0x4555f0 | BatchRsqrt | unreached | inferred | ||
0x455970 | CatmullRomDouble | unreached | inferred | ||
0x455a50 | CatmullRomFloat | unreached | inferred | ||
0x455b30 | AngleWrap | primitive | verified, proof one | ✓ | ✓ |
0x455b60 | InitFastmathTwoPiThunk | orchestration | verified, proof one | ✓ | |
0x455b70 | InitFastmathTwoPi | primitive | verified, proof one | ✓ | |
0x455b80 | InitFastmathInvTwoPiThunk | orchestration | verified, proof one | ✓ | |
0x455b90 | InitFastmathInvTwoPi | primitive | verified, proof one | ✓ |
Globals 12
| address | name | type | confidence |
|---|---|---|---|
0x8029d8 | s_floatInfinity | float | verified, proof one |
0x8029dc | s_floatPi | float | verified, proof one |
0x8029e0 | s_exp2Table | double[64] | verified, proof one |
0x802be0 | s_log2Reciprocals | double[64] | verified, proof one |
0x802de0 | s_log2Corrections | double[64] | verified, proof one |
0x802ff0 | s_log2Floor | double | verified, proof one |
0x802ff8 | s_log2Coefficients | double[6] | verified, proof one |
0x803028 | s_exp2Coefficients | double[6] | verified, proof one |
0x803058 | s_exp2Bias | double | verified, proof one |
0xb05e98 | s_fastmathInfinity | float | verified, proof one |
0xb05e9c | s_fastmathInvTwoPi | float | verified, proof one |
0xb05ea0 | s_fastmathTwoPi | float | verified, proof one |