feat(libc): implement long double, Bessel and integer math exports #7354
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/7354"
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 T3cm0 on 2026-10-18T01:43:16Z.
What
Implements
acoshl,asinhl,atanhl,atan2l,cbrtl,erfl,erfcl,expm1l,log1pl,log2l,lgammal,tgammal,hypotl,hypot3,hypot3f,hypot3l,j0f,j1f,jnf,y0f,y1f,ynf,labs,llabs,imaxabs,imaxdiv,scalbnlandsignificandf.hypot3*follow the Dinkumware code of the console's decryptedlibSceLibcInternal.sprx(SDK 4.5x build ofJ03950001) (the first NaN is returned, an infinity gives +inf, otherwise the largest magnitude is combined with the hypot of the other two);lgammalleavessigngamalone as the console does. The transcendental functions use the host C library, so the last bits can differ from the console; this is in the debt file.Replaces #7284, which the open PR limit closed before any of my pull requests was merged; GitHub does not let an author reopen a pull request the bot closed.
Tested
Windows 11 (MinGW GCC 15.2) and Ubuntu 26.04 on WSL2 (GCC 15.2), Release builds:
ctestfor guest_math passes on both, with all of this batch applied together and on its own. Compared with the console's own exports on a PS5 (firmware 13.60) from a homebrew payload that resolves them by NID: the special values and NaN ordering of every function in the test; the results match this implementation except where the debt file says otherwise. Not tested with a title.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)🤖 Generated with Claude Code
Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-18T01:43:50Z.
Progress report (
0bb238b→24a999c)📈 System libraries: 90.11% (+0.07%, +28 implemented functions)
✅ 28 implemented
acoshl_nid_postfixasinhl_nid_postfixatan2l_nid_postfixatanhl_nid_postfixcbrtl_nid_postfixerfcl_nid_postfixerfl_nid_postfixexpm1l_nid_postfixhypot3_nid_postfixhypot3f_nid_postfixhypot3l_nid_postfixhypotl_nid_postfiximaxabs_nid_postfiximaxdiv_nid_postfixj0f_nid_postfixj1f_nid_postfixjnf_nid_postfixlabs_nid_postfixlgammal_nid_postfixllabs_nid_postfixlog1pl_nid_postfixlog2l_nid_postfixscalbnl_nid_postfixsignificandf_nid_postfixtgammal_nid_postfixy0f_nid_postfixy1f_nid_postfixynf_nid_postfixImported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-18T01:59:51Z.
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.mdcore/libs/tests/GuestMath.cppcore/libs/prx/libc/src/Math.cppcore/libs/tests/GuestMath.cppcore/libs/prx/libc/src/Math.cppcore/libs/tests/GuestMath.cppcore/libs/prx/libc/src/Math.cppcore/libs/tests/GuestMath.cppcore/libs/prx/libc/src/Math.cppcore/libs/tests/GuestMath.cppcore/libs/prx/libc/src/Math.cppcore/libs/tests/GuestMath.cppdocs/dev/debt/libc.mddocs/dev/debt/libc.mdcore/libs/prx/libc/src/Math.cppdocs/dev/debt/libc.mddocs/dev/debt/libc.mdcore/libs/prx/libc/src/Math.cppdocs/dev/debt/libc.mdcore/libs/prx/libc/src/Math.cppcore/libs/prx/libc/src/Math.cppdocs/dev/debt/libc.md