feat(libc): implement __isinf #1853

Closed
kallmek3nny wants to merge 1 commit from upstream-pr/1853 into main
kallmek3nny commented 2026-10-08 22:07:33 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by kallmek3nny on 2026-10-08T22:07:33Z.


What

Adds the double-precision __isinf export to libc using std::isinf, matching the existing __isinff behavior. Addresses one unresolved import reported in #1578; other blockers remain.

Tested

The repository convention check and git diff --check passed. Build and runtime tests were not run.

Checklist

  • Based on current main; no other open PR implements __isinf
  • One topic per PR; follow-ups go in a new PR
  • No comments in code added
  • No unimplemented paths or silent stubs changed
  • No notes, investigation files or images added
  • No third-party code added
  • Generic behavior, not specific to one title
  • Depends on: none
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4793364757 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1853). Originally posted by [kallmek3nny](https://github.com/kallmek3nny) on 2026-10-08T22:07:33Z. --- ### What Adds the double-precision `__isinf` export to libc using `std::isinf`, matching the existing `__isinff` behavior. Addresses one unresolved import reported in #1578; other blockers remain. ### Tested The repository convention check and `git diff --check` passed. Build and runtime tests were not run. ### Checklist - [x] Based on current `main`; no other open PR implements `__isinf` - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code added - [x] No unimplemented paths or silent stubs changed - [x] No notes, investigation files or images added - [x] No third-party code added - [x] Generic behavior, not specific to one title - [x] Depends on: none - [x] AI-assisted: yes
github-actions[bot] commented 2026-10-08 22:07:57 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-08T22:07:57Z.


Progress report (ae91d97 → 77b8803)

➖ System libraries: 84.76% (+0.0%, +1 implemented functions)

✅ 1 implemented
Library Name
libc __isinf_nid_postfix
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6069985078 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1853#issuecomment-6069985078). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-08T22:07:57Z. --- <!-- progress-report --> ### Progress report (ae91d97 → 77b8803) ➖ **System libraries**: 84.76% (+0.0%, +1 implemented functions) <details> <summary>✅ 1 implemented</summary> | Library | Name | | - | - | | libc | `__isinf_nid_postfix` | </details>
Dextroid17 commented 2026-10-09 03:01:24 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Dextroid17 on 2026-10-09T03:01:24Z.

Review: COMMENTED


Verified on Linux — this fills in the half the body says was not run.

  • cmake --build build --target libs → clean, 237 modules.
  • Module-level differential: in the built libc.prx, __isinf_nid_postfix is a GLOBAL FUNC export (readelf -sW build/core/libs/libs/unpatched/libc.prx). With the same build reverted to main, the count for it is 0, while the pre-existing sibling __isinff_nid_postfix is still there. So the export genuinely comes from this change and it lands in the module — which is exactly what "build and runtime tests were not run" leaves open.
  • Claim cross-check: __isinf is std::isinf(x) ? 1 : 0, the same shape as __isinff two lines below it (Math.cpp:39-40), so the pair stays consistent. That is the right call for a sibling export, even though some libcs return −1 for a negative infinity rather than 1.

For the merge bar: the "why" lives in the report rather than here. #1578 line 32 lists libSceLibcInternal: __isinf, atoll, gethostname, makecontext. Quoting the title's own FAIL: unresolved ELF import <NID> from libSceLibcInternal.prx line for __isinf in the body would put the evidence next to the fix, which is where a reader looks for it.

Not verified: Windows, and the runtime half — the export is proven present, not proven called.

Written with AI assistance.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5465230570 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1853#pullrequestreview-5465230570). Originally posted by [Dextroid17](https://github.com/Dextroid17) on 2026-10-09T03:01:24Z. **Review:** COMMENTED --- Verified on Linux — this fills in the half the body says was not run. - `cmake --build build --target libs` → clean, 237 modules. - **Module-level differential**: in the built `libc.prx`, `__isinf_nid_postfix` is a `GLOBAL FUNC` export (`readelf -sW build/core/libs/libs/unpatched/libc.prx`). With the same build reverted to `main`, the count for it is **0**, while the pre-existing sibling `__isinff_nid_postfix` is still there. So the export genuinely comes from this change and it lands in the module — which is exactly what "build and runtime tests were not run" leaves open. - **Claim cross-check**: `__isinf` is `std::isinf(x) ? 1 : 0`, the same shape as `__isinff` two lines below it (`Math.cpp:39-40`), so the pair stays consistent. That is the right call for a sibling export, even though some libcs return −1 for a negative infinity rather than 1. **For the merge bar**: the "why" lives in the report rather than here. #1578 line 32 lists `libSceLibcInternal`: `__isinf`, `atoll`, `gethostname`, `makecontext`. Quoting the title's own `FAIL: unresolved ELF import <NID> from libSceLibcInternal.prx` line for `__isinf` in the body would put the evidence next to the fix, which is where a reader looks for it. Not verified: Windows, and the runtime half — the export is proven present, not proven called. Written with AI assistance.
oneandonlydean commented 2026-10-09 09:30:07 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-09T09:30:07Z.


Closing: EVO-PLAYER imports __isinf but stops at other imports on main first. Reopen when it's a title's next stop on main, with the log line.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6078236419 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/1853#issuecomment-6078236419). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-09T09:30:07Z. --- Closing: EVO-PLAYER imports `__isinf` but stops at other imports on main first. Reopen when it's a title's next stop on main, with the log line.

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!1853
No description provided.