refactor(prx): name the LibcInternal math stubs the NID database resolves #15767
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/15767"
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 ItsJustChrisE on 2026-11-04T13:33:13Z.
What
Renames 12
sceLibcInternalUnknown_*_nid_no_patchstubs incore/libs/prx/libSceLibcInternal/Export.cppto the Dinkumware math helper names thattools/nid_names.pyresolves from the pinned aerolib database, and drops theirAPS5_EXPORTlines, the same way #14884 and #15405 did for other libraries:aQURHgjHo-w_ErfcqwR1gtp-WS0_FErfcPG4HVe4X+Oc_LErfcwUa+oPQvFZ0_HypotDS03EjPDtFo_FHypotIRUFZywbTT0_LHypotECh+p-LRG6Y_PowA98W3Iad6xE_FPow3Z8jD-HTKr8_LPowTLvAYmLtdVw_FRintfJmOr59K8QY_LRintSs3108pBuZY_NnlThe 12 functions are declared once in
include/MathInternals.hpp, in sorted order with the existing_Atan…_Quadphhelpers, and still callNotImplemented_nid_no_patch(__func__). No behaviour changes.Left out on purpose:
_Plsw,_Pmsw,_FPlsw,_FPmsw,_LPlswand_LPmswin the same file, which #13782 implements, and__atomic_store_n,__atomic_exchange_nand__atomic_compare_exchange_ninInventoryExports.cpp, which #13486 implements.Tested
Ubuntu 26.04.1 LTS (WSL2), GCC 15.2.0, Ninja, Release,
mainatb11c7bf84f.compute_nid(name) == nidfromtools/nid_names.pyfor all 12 renames: 12/12 match.cmake --build build --parallel 16: passes onmainand on this branch.nm -D --defined-only build/core/libs/libs/libSceLibcInternal.prx: same NID set onmainand on this branch (2065 and 2053 symbols). The only difference is the 12 removedsceLibcInternalUnknown_*_nid_no_patchhelper symbols. All 12 NIDs are still exported.ctest --test-dir build -R 'public_headers|patched_librar|libcinternal|LibcInternal|libc_internal|guest_' -j 16 --output-on-failure: 1617 tests, 100% passed on bothmainand this branch.guest_video_out_high_frame_rateis skipped on both (no GPU).python3 tools/check_conventions.py --base origin/main: all conventions checks passed.python3 tools/pr_overlap.py --branch <branch>: no PR shares lines or exports. It could not compareExport.cppwith #5021, #13486 and #13782 because those PRs conflict withmain. I compared them by hand: none of them touches the 12 NIDs or names above.ctestsuite, the Windows/MinGW build, the relinker-only build (no relinker or tools change) and any 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