feat(libc): implement llroundf #2189
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2189"
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:10:49Z.
What
Exports
llroundfnext tolroundfandllround, which round the same way: halfway cases away from zero, into a 64-bit result.Title: PPSA99169 RetroArch 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 to thellroundcase:±2.5f);-0.4f→ 0;2^33,-2^62);0.49999997f→ 0, whichfloor(x + 0.5f)gets wrong because the sum rounds up to 1;16777215.f.floor(x + 0.5f)and the hostlround(32-bitlongon Windows) each makeguest_mathfail.cmake --build build --target libs: the patchedlibc.prxexportseQhBFnTOp40.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:11:11Z.
Progress report (
d70b899→babc53f)📈 System libraries: 84.7% (+0.01%, +1 implemented functions)
✅ 1 implemented
llroundf_nid_postfixImported from boykopovar/AnyPS5. Originally posted by reyani-dev on 2026-10-09T11:34:18Z.
Full Linux and Windows builds and tests for this head (
babc53fb), 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/37922143613
Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-09T20:09:57Z.
Same as #2167, for
llroundf.Imported from boykopovar/AnyPS5. Originally posted by babyhuey on 2026-10-10T02:16:35Z.
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
babc53fbmerged 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: eQhBFnTOp40(llroundf)+my9jdHCMIQ(atol)Example lines for OpenRCT2 Native Port (PPSA99728):
mainWindowsFAIL: unresolved ELF import eQhBFnTOp40 (llroundf) from libSceLibcInternal.prx; with this branch, Linuxapp.elf: symbol lookup error: app.elf: undefined symbol: +my9jdHCMIQ, WindowsFAIL: unresolved ELF import +my9jdHCMIQ from libSceLibcInternal.prx.The next stop,
atol, is #2186.Imported from boykopovar/AnyPS5. Originally posted by reyani-dev on 2026-10-10T02:25:28Z.
@oneandonlydean this now has the evidence the close note asked for, thanks to @babyhuey's run above: OpenRCT2 Native Port (PPSA99728) stops at
llroundf(eQhBFnTOp40) on currentmainand moves on toatol(#2186) with 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:35Z.
Resubmitted as #2933 now that intake allows it, rebased onto current
mainwith the title evidence above.Pull request closed