mirror of
https://github.com/sp00nznet/xboxrecomp.git
synced 2026-12-05 10:03:01 +00:00
5d507e7ab0
RECOMP_FP_PC rounded with a plain (float) cast. The x87 under PC=24 narrows only the significand; the exponent keeps the register's range. Outside float's range the cast turned a large intermediate into inf (and inf*0 into NaN) and flushed a tiny one to zero, where the hardware carries on. Values in float range still take the cast; the rest go through frexp/ldexp. tests/fp_precision checks the Burnout 3 compare case and both range ends. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>