feat(libc): export the std::__sce_v2 floating-point constants #15614
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/15614"
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-03T21:53:14Z.
What
Export the 22 versioned
std::__sce_v2floating-point constants from libc, with the bytes of thelibc.prxbundled with PPSA03671 v01.001.005 (J03848509, SHA-256483961e086b8a1fffa8138b3c0badf798987fb5f35ec908d828946408be2d8a6):_ZNSt8__sce_v24_EpsE3944SNcQyYo0x167390000000000000903c0000000000000000_ZNSt8__sce_v24_InfE6ECpKpHPngE0x193930000000000000f07f0000000000000000_ZNSt8__sce_v24_NanETnahhAHn6ps0x193940000000000000f87f0000000000000000_ZNSt8__sce_v25_FEpsERPuQ6aa91g80x16755000000033000000000000000000000000_ZNSt8__sce_v25_FInfEDo-8eQF2JcA0x1939700000807f000000000000000000000000_ZNSt8__sce_v25_FNanELOBN+nNuVEk0x1939800000c07f000000000000000000000000_ZNSt8__sce_v25_LEpsEtTPVNqmkhlQ0x1686400000000000000080bd3f000000000000_ZNSt8__sce_v25_LInfE9SngnrNjveY0x1939B00000000000000080ff7f000000000000_ZNSt8__sce_v25_LNanE4IZT9Rq60Ao0x1939C000000000000000c0ff7f000000000000_ZNSt8__sce_v25_SnanEuFFbdio7m-A0x193950010000000000f07f0000000000000000_ZNSt8__sce_v25_XbigEX6Nutef9sZQ0x1673B0b0726891edbc3240_ZNSt8__sce_v26_FSnanEAsmND1C0yHg0x1939900100807f000000000000000000000000_ZNSt8__sce_v26_FXbigEdk4+7uNgSsg0x167570cdcc0a41_ZNSt8__sce_v26_LSnanEGe3ty+dRn700x1939D00100000000000080ff7f000000000000_ZNSt8__sce_v26_LXbigEDKo0565tvWY0x16866000000000000000b00340000000000000_ZNSt8__sce_v26_RtepsEOJAauE-Qzz40x1673A0000000000000403e0000000000000000_ZNSt8__sce_v27_DenormEqA86FNwaCsI0x19391001000000000000000000000000000000_ZNSt8__sce_v27_FRtepsE6Yp4XdIzJ7w0x16756000008039000000000000000000000000_ZNSt8__sce_v27_LRtepsEvFrs9396f8s0x1686500000000000000080de3f000000000000_ZNSt8__sce_v28_FDenormEATy8lfrnzvg0x19396001000000000000000000000000000000_ZNSt8__sce_v28_HugevalEMLJRfBChKVw0x193920000000000000f07f0000000000000000_ZNSt8__sce_v28_LDenormEJ5GM2EuBQG40x1939A001000000000000000000000000000000They sit in
Math.cppbeside the unversioned constants and use the sameSonyDconstandLibcFloatConstanttypes:_Denorm,_Hugeval,_Inf,_Nan,_Snanand theirFandLforms hold the same bytes as the unversioned ones already in main, with theLforms in the 80-bit extended format._Eps,_FEpsand_LEpsare 2^-54, 2^-25 and 2^-66._Rteps,_FRtepsand_LRtepsare 2^-27, 2^-12 and 2^-33._Xbigis an 8-bytedouble(about 18.74),_FXbiga 4-bytefloat(about 8.675), and_LXbigthe extended 22.0.Tested
Windows x86-64, WinLibs GCC 15.2.0, Release,
BUILD_TESTING=ON, main04a9eb4fa28. Exact tested commit:8b6573c6850.guest_sce_v2_float_constantspasses, along withguest_mathandpublic_headers._Eps,_Rteps, theirFandLforms, and the three_Xbigvalues as numbers._Epsexponent, the last bit of_FXbig, the_LXbigexponent, and_Snanwritten as a quiet NaN. The new CTest and the byte comparison failed on each. The source was then restored byte for byte (SHA-256 checked) and rebuilt, and both passed again.git diff --checkpass.tools/pr_overlap.pyread 1,780 open PRs and reports no overlap. It keeps exit 2 for 31 branches that already conflict with main. None of them adds these names or NIDs, including the large data-export drafts #13449, #11750 and #11751. Merging each of the 31 with this branch and with main usinggit merge-treegives the same conflict blocks. The branch also merges cleanly with #15336, #15471, #15484, #15490, #15501, #15519, #15552, #15561 and #15602.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