feat(libc): implement _Dtest, _LDtest and double/long-double constants #1784
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1784"
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 yamalameyooooo on 2026-10-08T19:08:58Z.
What
Implement the double-precision and long-double floating-point classification functions and their constant exports:
_Dtest— double-precision IEEE 754 classification (mirrors the existing_FDtestfor float)_LDtest— x87 extended-precision classification (80-bit significand in 16-byte storage)_DInf,_DNan— double-precision infinity and quiet NaN constants (mirror_FInf,_FNan)_LInf,_LNan— long-double infinity and quiet NaN constantsAll six are in the NID database and are Dinkumware CRT internals used by the guest libc for
fpclassify,isnan,isinfand related macros ondoubleandlong doublevalues.The classification functions return the same codes as
_FDtest:Zero (0),Denormal (-2),Finite (-1),Infinite (1),NotANumber (2).Tested
Not tested at runtime. Conventions check passes. Test cases added to
GuestMath.cppcovering positive/negative zero, denormals, finite values, signed infinities, quiet NaN, signaling NaN, and the constant exports.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-09T04:35:27Z.
Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.
main)core/libs/tests/GuestMath.cppL21-22Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-09T08:55:29Z.
Closing: no title is shown to reach
_Dtest,_LDtestor the constants on main. Reopen with the title ID and the log line where it stops if you find one.Pull request closed