feat(libc): implement x87 long-double finite classification #5599
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/5599"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by JJenkx on 2026-10-14T00:51:35Z.
What
Implement
__isfinitel(NID3-zCDXatSU4), imported by Astro Bot PPSA21564's bundled PSML module. Classify the x87 exponent directly: return 1 for finite values and 0 for infinities/NaNs, without narrowing to double or performing floating-point comparisons. Require the existing little-endian, 16-byte x87 long-double representation.The signature/classification follows FreeBSD msun; console behavior is unmeasured and recorded in library debt.
Tested
665136f53ef5, containing maind1670009fbfd: Linux 1,037 passed / 46 skipped; Windows 714 passed / 389 skipped. Expected skips remain unvalidated.ce5c8395333; full CI remains tied to its recorded source/base. Conventions and whitespace checks pass.Checklist
Current review refresh: head
2f9d04fb77ffe4880e56e3548d78443c1395ad2bincludes upstream maina5f493f90dca348a65561aed4bb325a629d1b668. Conflicts are resolved and current conventions pass. Earlier full-build results describe the earlier head; fresh full Linux/Windows checks for this head are pending.Verified current full CI: run 38505264035 passes topic
2f9d04fb77ffe4880e56e3548d78443c1395ad2bmerged into basea5f493f90dca348a65561aed4bb325a629d1b668. Linux 1059 passed/46 expected skips; Windows 730 passed/397 expected skips. Skipped cases remain unvalidated. The tested source tree matches this published topic head.Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-14T00:52:17Z.
Progress report (
a5f493f→2f9d04f)➖ System libraries: 88.19% (+0.0%, +1 implemented functions)
✅ 1 implemented
__isfinitel_nid_postfixImported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-15T11:41:55Z.
Checked
__isfinitelagainst FreeBSD msuns_isfinite.c(exp != 32767): same classification. Build and ctest pass on main + PR (guest_mathincluded), and the new test fails to link without the change. Debt line is under Functional. Merging once the full Build is green.Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-15T12:08:08Z.
Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.
docs/dev/debt/libc.mddocs/dev/debt/libc.mddocs/dev/debt/libc.mdcore/libs/tests/GuestMath.cppdocs/dev/debt/libc.mddocs/dev/debt/libc.mddocs/dev/debt/libc.md