|
SSBM Decomp
|
Variables | |
| const float | __ln_F [0x81] |
| math_data.c - Data tables for MSL math functions | |
| const float | __one_over_F [0x81] |
| __one_over_F[n] = 1.0 / (1.0 + n/128) for n = 0..128 | |
| const float | __sincos_on_quadrant [] = { 0, 1, 1, 0, 0, -1, -1, 0 } |
| const float | __sincos_poly [] |
| const float __ln_F[0x81] |
math_data.c - Data tables for MSL math functions
Math lookup tables - defined in math_data.c Keeping them in a separate compilation unit prevents the compiler from hoisting array base addresses, which is needed to match the original code.
These arrays are kept in a separate compilation unit so that functions like logf() generate separate address loads for each table access, rather than hoisting a shared base pointer. __ln_F[n] = ln(1.0 + n/128) for n = 0 .. 128
math_data.c - Data tables for MSL math functions
| const float __one_over_F[0x81] |
__one_over_F[n] = 1.0 / (1.0 + n/128) for n = 0..128
| const float __sincos_on_quadrant[] = { 0, 1, 1, 0, 0, -1, -1, 0 } |
| const float __sincos_poly[] |