Repository navigation
feat(libc): implement llroundf - #2189
reyani-dev wants to merge 1 commit into
Conversation
Export it next to lroundf and llround, rounding halfway cases away from zero into the 64-bit guest long long. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Full Linux and Windows builds and tests for this head (
Run: https://github.com/AchrafReyani/AnyPS5/actions/runs/37922143613 |
|
Same as #2167, for |
|
This is now a title's next stop on current Checked babc53f merged onto
Example lines for OpenRCT2 Native Port (PPSA99728): The next stop, |
|
@oneandonlydean this now has the evidence the close note asked for, thanks to @babyhuey's run above: OpenRCT2 Native Port (PPSA99728) stops at |
|
Resubmitted as #2933 now that intake allows it, rebased onto current |
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