Commit e0102a6
committed
Stabilize DWA LUT test half-distance compare on i686
Add `ieeeFloatAbsDiffHalf()` using volatile float steps so each
half→float conversion and subtraction rounds to IEEE binary32 before
fabs. Without this, i686 387 FPU extended precision can pick a
different closest candidate than `dwaQuantTables.h` (built with typical
SSE float math), breaking `testLutHeader`.
Made with Cursor
Signed-off-by: Cary Phillips <cary@ilm.com>1 parent f5bf7c2 commit e0102a6
1 file changed
Lines changed: 16 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
| |||
68 | 69 | | |
69 | 70 | | |
70 | 71 | | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
71 | 85 | | |
72 | 86 | | |
73 | 87 | | |
| |||
160 | 174 | | |
161 | 175 | | |
162 | 176 | | |
163 | | - | |
164 | | - | |
| 177 | + | |
| 178 | + | |
165 | 179 | | |
166 | 180 | | |
167 | 181 | | |
| |||
0 commit comments