feat(libc): implement nextafterf #2192
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2192"
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 reyani-dev on 2026-10-09T11:12:40Z.
What
Exports
nextafterfnext toremainderf. It forwards tostd::nextafteronfloat, so it steps by onefloatULP toward the second argument.Title: PPSA74126 Stremio Plus imports it from
libSceLibcInternal(resolved throughlibc.prx), per the #1578 audit. I haven't run the title.Tested
Windows 11, WinLibs GCC 15.2.0 r7, Release,
-DBUILD_TESTING=ON:guest_math_tests, next toscalbnf:0x1.000002p0f,0x1.fffffep-1f);denorm_minfrom 0, and back to 0;x == yreturnsy, sonextafterf(-0, +0)is+0;FLT_MAXtoward infinity gives infinity;doubleand casting back (which returnsxunchanged), or returningxwhenx == y, each makeguest_mathfail.cmake --build build --target libs: the patchedlibc.prxexports3m2ro+Di+Ck.tools/check_conventions.pypasses, andtools/pr_overlap.py --branchreports no overlap.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.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-09T11:13:03Z.
Progress report (
d70b899→a9d3dd2)📈 System libraries: 84.7% (+0.01%, +1 implemented functions)
✅ 1 implemented
nextafterf_nid_postfixImported from boykopovar/AnyPS5. Originally posted by reyani-dev on 2026-10-09T11:41:15Z.
Full Linux and Windows builds and tests for this head (
a9d3dd2e), using the project's Build workflow. I can't start the upstream manual run, so I ran the samebuild.ymlin my fork through a mirror PR. Like the upstream run, the jobs check out the PR head merged into currentmain(d70b8998):ctest: 516/516 passedctest: 507/507 passedRun: https://github.com/AchrafReyani/AnyPS5/actions/runs/37922331579
Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-09T20:10:01Z.
Same as #2167, for
nextafterf.Imported from boykopovar/AnyPS5. Originally posted by babyhuey on 2026-10-10T02:16:36Z.
This is now a title's next stop on current
main, so here is the log line the close note asked for, plus a check of this branch.Checked
a9d3dd2emerged ontomainc963432d(clean), Linux (Ubuntu 24.04, GCC 13) and Windows 11 (MinGW-w64 GCC from WinLibs), Release.guest_mathpasses 5/5 on both (--repeat until-fail:5); no CRT assertion dialog on Windows.main(catalog runs on2edaf7f4Linux and0c0dc1e9Windows) and with this branch:mainundefined symbol: 3m2ro+Di+Ck(nextafterf)17Mfe1B3X6U(_fstatfs)Example lines for Stremio Plus (PPSA74126):
mainWindowsFAIL: unresolved ELF import 3m2ro+Di+Ck (nextafterf) from libSceLibcInternal.prx; with this branch, Linuxapp.elf: symbol lookup error: app.elf: undefined symbol: 17Mfe1B3X6U, WindowsFAIL: unresolved ELF import 17Mfe1B3X6U from libkernel.prx.Imported from boykopovar/AnyPS5. Originally posted by reyani-dev on 2026-10-10T02:25:27Z.
@oneandonlydean this now has the evidence the close note asked for, thanks to @babyhuey's run above: Stremio Plus (PPSA74126) stops at
nextafterf(3m2ro+Di+Ck) on currentmainand moves on to_fstatfswith this branch. Could you reopen it? GitHub doesn't let me reopen a PR a maintainer closed. I also rechecked this branch merged onto currentmainon Windows:guest_mathpasses.Imported from boykopovar/AnyPS5. Originally posted by reyani-dev on 2026-10-10T18:34:36Z.
Resubmitted as #2934 now that intake allows it, rebased onto current
mainwith the title evidence above.Pull request closed