feat(libc): export the std::__sce_v2 _Pmsw, _FPmsw and _LPmsw helpers #15519
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/15519"
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 Danigamer05 on 2026-11-03T17:14:21Z.
What
Export the versioned
std::__sce_v2_Pmsw,_FPmswand_LPmswfrom libc._ZNSt8__sce_v25_PmswEPdWbdD4UIGs8Q0xCB5F0_ZNSt8__sce_v26_FPmswEPfRa68ujotvg00xCF2D0_ZNSt8__sce_v26_LPmswEPe3nFb+klnjVc0x10C120The behavior comes from the
libc.prxbundled with PPSA03671 v01.001.005 (J03848509, SHA-256483961e086b8a1fffa8138b3c0badf798987fb5f35ec908d828946408be2d8a6).Each returns the address of the word holding the sign and exponent, without reading or writing it: 6 bytes into a
double, 2 bytes into afloat, and 6 bytes into along double. That module treatslong doubleas a 64-bitdoublehere, as the versioned_LDtestand_LDintalready in main do, so_LPmswtakes adouble*like them.Tested
Windows x86-64, WinLibs GCC 15.2.0, Release,
BUILD_TESTING=ON, main1e658521a0a. Exact tested commit:5dd6d283f3c.guest_sce_v2_pmsw,public_headers,guest_math_exactandguest_dinkumware_float_bitspass, along with the otherguest_sce_v2_*CTests.git diff --checkpass.tools/pr_overlap.pyread 1,731 open PRs before the rebase onto1e658521a0aand reports no overlap; the rebase was clean and changed none of these lines. It keeps exit 2 for 32 branches that already conflict with main. None of them adds a line naming these exports. Merging each of the 32 with this branch and with main usinggit merge-treegives the same conflict blocks. The branch also merges cleanly with #15336, #15471, #15484, #15490 and #15501.Not tested: Linux, macOS, another SDK, a game, GPU or console. No game compatibility claim. No original module, extracted bytes, harness or log is committed or uploaded.
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