feat(libc): implement long double, Bessel and integer math exports #7284
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/7284"
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-17T21:18:10Z.
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.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-17T21:18:25Z.
Thank you for your contribution! Authors with no pull requests merged into
maincan have 1 open pull request at a time, authors with at least 1 merged can have 20, and from 20 merged there is no limit. This PR has been automatically closed and labeled "open PR limit" because that limit was reached. This is not a judgment of the quality of your changes: reopen it once one of your open pull requests is merged or closed.Pull request closed