feat(libc): implement llroundf #1725

Closed
MarcZX10 wants to merge 1 commit from upstream-pr/1725 into main
MarcZX10 commented 2026-10-08 17:37:19 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-08T17:37:19Z.


What

Implement the missing float llround export, returning the full 64-bit guest result. Tests cover halfway rounding away from zero and a result larger than 32 bits. The unresolved import appears in the OpenRCT2 entry of the homebrew audit associated with #1578.

Tested

Linux, GCC: built libc and guest_math_tests; ctest -R ^guest_math$ passed (1/1). Conventions and git diff --check passed.

Checklist

  • Based on current main; no other open PR implements this function
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw; this path is implemented
  • No notes, investigation files or images added
  • No third-party code added
  • Generic behavior, not title-specific
  • Depends on: none
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4790589382 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1725). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-08T17:37:19Z. --- ### What Implement the missing float llround export, returning the full 64-bit guest result. Tests cover halfway rounding away from zero and a result larger than 32 bits. The unresolved import appears in the OpenRCT2 entry of the homebrew audit associated with #1578. ### Tested Linux, GCC: built libc and guest_math_tests; ctest -R ^guest_math$ passed (1/1). Conventions and git diff --check passed. ### Checklist - [x] Based on current main; no other open PR implements this function - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except technical debt - [x] Unimplemented paths throw; this path is implemented - [x] No notes, investigation files or images added - [x] No third-party code added - [x] Generic behavior, not title-specific - [x] Depends on: none - [x] AI-assisted: yes
oneandonlydean commented 2026-10-08 19:21:44 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-08T19:21:44Z.


No title reaches llroundf on main yet: the homebrew audit lists the import, but those titles stop earlier at other missing imports. Closing for now; reopen when it's a title's next stop on main, with the log line.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6067352215 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1725#issuecomment-6067352215). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-08T19:21:44Z. --- No title reaches `llroundf` on main yet: the homebrew audit lists the import, but those titles stop earlier at other missing imports. Closing for now; reopen when it's a title's next stop on main, with the log line.
babyhuey commented 2026-10-09 04:31:00 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by babyhuey on 2026-10-09T04:31:00Z.


OpenRCT2 Native Port (PPSA99728, catalog release v1.0.0) now stops here first on main f1451396. eQhBFnTOp40 is the NID of llroundf.

Linux:

app.elf: symbol lookup error: app.elf: undefined symbol: eQhBFnTOp40

Windows (relink step):

FAIL: unresolved ELF import eQhBFnTOp40 from libSceLibcInternal.prx
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6074295972 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1725#issuecomment-6074295972). Originally posted by [babyhuey](https://github.com/babyhuey) on 2026-10-09T04:31:00Z. --- OpenRCT2 Native Port (PPSA99728, catalog release v1.0.0) now stops here first on main f1451396. `eQhBFnTOp40` is the NID of `llroundf`. Linux: ``` app.elf: symbol lookup error: app.elf: undefined symbol: eQhBFnTOp40 ``` Windows (relink step): ``` FAIL: unresolved ELF import eQhBFnTOp40 from libSceLibcInternal.prx ```

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!1725
No description provided.