Commit c3af4b9
committed
math: use fpclassify for isinf on PowerPC to avoid QEMU xststdcsp bug
On PowerPC, avoid __builtin_isinf/__builtin_isinff — QEMU incorrectly
emulates the xststdcsp instruction used by GCC 15+ for these builtins,
causing subnormal floats to be misclassified as infinity.
fpclassify() is immune to this bug on all GCC/QEMU versions.1 parent c7e9883 commit c3af4b9
1 file changed
Lines changed: 10 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
286 | 286 | | |
287 | 287 | | |
288 | 288 | | |
289 | | - | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
290 | 294 | | |
291 | 295 | | |
292 | 296 | | |
| |||
296 | 300 | | |
297 | 301 | | |
298 | 302 | | |
299 | | - | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
300 | 308 | | |
301 | 309 | | |
302 | 310 | | |
| |||
0 commit comments