mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-10-31 12:35:51 +00:00
nextafter and nextafterf returned the host's functions. On Windows they set ERANGE for a step from zero to the smallest subnormal, which the titles' copies do not, and pick a different NaN when both arguments are NaNs. The titles' copies are FreeBSD msun's s_nextafter.c and s_nextafterf.c with ERANGE at msun's overflow and underflow returns; both functions now compute that, choosing the NaN explicitly so the compiler cannot reorder msun's x + y. Co-Authored-By: Claude Opus 5.5 <[email protected]>