feat(libc): implement __isinf #2174
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2174"
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-09T10:41:26Z.
What
Exports
__isinf(double)next to__isnanand__isfinite. Like the existing__isinff, it returns 1 for either infinity and 0 otherwise, which is what FreeBSD'slib/libc/gen/isinf.cdoes. glibc'sisinfreturns -1 for negative infinity instead, so the test pins the sign behaviour.Titles: open-source homebrew from the #1578 catalog audit imports it from
libSceLibcInternal(resolved throughlibc.prx): PPSA74126 Stremio Plus, PPSA92280 Capy Mobile, PPSA99003 ProsperoTV, PPSA99039 EVO Player, PPSA99082 OpenNOW, PPSA99169 RetroArch, PPSA99177 PS5VR, PPSA99420 PS5MC, PPSA99505 Jelly5 and PPSA99515 Emby5. I haven't run any of these titles.Tested
Windows 11, WinLibs GCC 15.2.0 r7, Release,
-DBUILD_TESTING=ON:guest_math_tests, next to the__isinffones: ±infinity and an overflowed product return 1; NaN, 0 andDBL_MAXreturn 0.x > DBL_MAX(which misses -inf), makesguest_mathfail.cmake --build build --target libs: the patchedlibc.prxexports the NID.tools/check_conventions.pypasses, andtools/pr_overlap.py --branchreports no overlap. This branch also merges cleanly with my #2158, #2166, #2167 and #2173.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-09T10:41:50Z.
Progress report (
51f69aa→b791b25)📈 System libraries: 84.7% (+0.01%, +1 implemented functions)
✅ 1 implemented
__isinf_nid_postfixImported from boykopovar/AnyPS5. Originally posted by reyani-dev on 2026-10-09T11:24:42Z.
Full Linux and Windows builds and tests for this head (
b791b259), 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/37920416437
Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-09T20:09:37Z.
Same as #2167, for
__isinf.Imported from boykopovar/AnyPS5. Originally posted by babyhuey on 2026-10-10T02:16:34Z.
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
b791b259merged 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: V02oFv+-JzA(__isinf)ZjtRqSMJwdw(sinh)undefined symbol: V02oFv+-JzA(__isinf)PhnNN0UEV6Y(sceAudioOutExGetMonitorInfo)undefined symbol: V02oFv+-JzA(__isinf)PhnNN0UEV6Y(sceAudioOutExGetMonitorInfo)Example lines for ProsperoTV (PPSA99003):
mainWindowsFAIL: unresolved ELF import V02oFv+-JzA (__isinf) from libSceLibcInternal.prx; with this branch, Linuxapp.elf: symbol lookup error: app.elf: undefined symbol: ZjtRqSMJwdw, WindowsFAIL: unresolved ELF import ZjtRqSMJwdw from libSceLibcInternal.prx.OpenNOW (PPSA99082) also reaches
__isinfoncecpuset_getaffinityexists (#1578).Imported from boykopovar/AnyPS5. Originally posted by reyani-dev on 2026-10-10T02:25:32Z.
@oneandonlydean this now has the evidence the close note asked for, thanks to @babyhuey's run above: ProsperoTV (PPSA99003), Jelly5 and Emby5 stop at
__isinf(V02oFv+-JzA) on currentmainand move on 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:32Z.
Resubmitted as #2931 now that intake allows it, rebased onto current
mainwith the title evidence above.Pull request closed