Commit 129eae9
committed
feat: add WWMath::CosTrig/SinTrig wrappers for backward-compatible Trig.cpp replacement
SinTrig/CosTrig use cosf/sinf (matching original Trig.cpp CRT behavior) without
USE_DETERMINISTIC_MATH, and gm_cosf/gm_sinf with it enabled.
This preserves CRC compatibility with retail replays in non-deterministic builds
while providing cross-platform determinism when USE_DETERMINISTIC_MATH is active.1 parent 5e3d599 commit 129eae9
2 files changed
Lines changed: 16 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3955 | 3955 | | |
3956 | 3956 | | |
3957 | 3957 | | |
3958 | | - | |
3959 | | - | |
| 3958 | + | |
| 3959 | + | |
3960 | 3960 | | |
3961 | 3961 | | |
3962 | 3962 | | |
| |||
4223 | 4223 | | |
4224 | 4224 | | |
4225 | 4225 | | |
4226 | | - | |
4227 | | - | |
| 4226 | + | |
| 4227 | + | |
4228 | 4228 | | |
4229 | 4229 | | |
4230 | 4230 | | |
| |||
4431 | 4431 | | |
4432 | 4432 | | |
4433 | 4433 | | |
4434 | | - | |
4435 | | - | |
| 4434 | + | |
| 4435 | + | |
4436 | 4436 | | |
4437 | 4437 | | |
4438 | 4438 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
157 | 157 | | |
158 | 158 | | |
159 | 159 | | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
160 | 165 | | |
161 | 166 | | |
162 | 167 | | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
163 | 173 | | |
164 | 174 | | |
165 | 175 | | |
| |||
0 commit comments