feat(libSceLibcInternal): name 45 math helper exports from their NIDs #13835
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/13835"
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 CodingBreadd on 2026-10-31T08:47:45Z.
What
Names 45 of the 62 math helpers among the 120
sceLibcInternalUnknown_*_nid_no_patchexports of libSceLibcInternal. Each new name is a PS5 3.20 import name already listed under "Additional imported names" in the libSceLibcInternal debt file, and itstools/nid_names.pyhash equals the stub's NID: the double, float and long double families of_Atan,_Dtento,_Logpoly,_Quadand_Quadph, plus_FSincos,_LSincos,_FTan,_LTan,_FTgamma,_LTgammaand the 24_FXp_*and_LXp_*helpers.Every renamed export still throws through
NotImplemented_nid_no_patch, keeps the no-parameter import-resolution convention and is declared once ininclude/MathInternals.hpp. No other library exports these names. Missing-import and unimplemented-call errors now name the function instead of the alias. The debt entry is unchanged: it already lists these names as declared for import resolution only, with unverified prototypes and behavior, and that is what remains open.The other 17 math helpers keep their aliases. Open pull requests implement 14 of them:
_Hypot,_FHypotand_LHypotin #12363,_FRintand_LRintin #12364,_Erfc,_FErfcand_LErfcin #12365, and the_Plswand_Pmswfamilies in #13782. The_Pow,_FPowand_LPowstubs directly follow blocks #13782 deletes, so renaming them would make the two conflict. This branch merges cleanly with #13724 and #13782. #13273, #11749, #11750, #11751, #12924 and #12896 change libSceLibcInternal but none of these exports, and #5021 changes onlysceLibcHeapGetTraceInfoin the same file. #13840 names the locale, stdio, time, exit and thread helpers.Tested
Windows 11, WinLibs GCC 15.2.0 (UCRT, POSIX, SEH). Built
libSceLibcInternaland the patchedlibSceLibcInternal.prxfrom this branch and frommain; both patched export tables hold the same 662 NIDs.ctest -R "^(guest_getopt|guest_inet_address)$": 2/2 passed.test_public_headers.py --audit-onlyand header compile batches 3, 4, 5 and 26 (the ones holding the libSceLibcInternal headers) pass, run directly: on this loaded machine an earlierctestrun of the batch holdingMathInternals.hpppassed in 27 s but hit its 30 s timeout when run in parallel.tools/check_conventions.py --base origin/mainpasses. No title tested.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