feat(libc): implement __isinf #1853
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1853"
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 kallmek3nny on 2026-10-08T22:07:33Z.
What
Adds the double-precision
__isinfexport to libc usingstd::isinf, matching the existing__isinffbehavior. Addresses one unresolved import reported in #1578; other blockers remain.Tested
The repository convention check and
git diff --checkpassed. Build and runtime tests were not run.Checklist
main; no other open PR implements__isinfImported 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
__isinf_nid_postfixImported 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.libc.prx,__isinf_nid_postfixis aGLOBAL FUNCexport (readelf -sW build/core/libs/libs/unpatched/libc.prx). With the same build reverted tomain, the count for it is 0, while the pre-existing sibling__isinff_nid_postfixis 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.__isinfisstd::isinf(x) ? 1 : 0, the same shape as__isinfftwo 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 ownFAIL: unresolved ELF import <NID> from libSceLibcInternal.prxline for__isinfin 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.
Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-09T09:30:07Z.
Closing: EVO-PLAYER imports
__isinfbut 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