feat(libc): implement abs #2316
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2316"
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 itsbo5 on 2026-10-09T15:20:02Z.
What
Identifies NID
Ye20uNnlglAasabsinlibcand implements it underabs_nid_postfixinMath.cpp. Removes the unknown stub fromExport.cppand adds unit tests inGuestMath.cpp.Tested
GuestMath unit tests covering
abs_nid_postfixwith positive, negative, zero, and boundary integer values.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)Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-09T15:29:56Z.
Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.
main)core/libs/prx/libc/Export.cppL45-53Imported from boykopovar/AnyPS5. Originally posted by Kikoarl on 2026-10-09T18:29:53Z.
Tested on Linux (CachyOS x86_64, Intel RPL-S iGPU / Mesa 26.3.0-devel / Vulkan 1.4.363, GCC 16.2.1) at
5ceff58e:/tmp/anyps5_build) with zero warnings/errors.python3 tools/check_conventions.py --base origin/main --head HEAD-> PASS (0 errors).GuestMath.cpptests forabs. Cleanly exposed in libc exports following standard POSIX/C library behavior.LGTM!
Imported from boykopovar/AnyPS5. Originally posted by popcoder565 on 2026-10-09T19:03:47Z.
Native Windows run, since no Windows results were posted. Setup: Windows 10 (19045), MinGW-w64 GCC 15.2.0 (WinLibs r7), Release. Head
5ceff58e, merged ontomainf8c2f072in one build with 9 other PRs that had no Windows run.guest_math.agc_driver_depth_fast_clear_submitfrom #2325, which fails intermittently on its own too. The test comes from #425, where I reported it.No title was run.
🤖 Addressed by Claude Code
Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-09T20:11:54Z.
Closing: no title is shown to stop at
abs(Ye20uNnlglA) on main, the same reason #1952 and #1981 were closed. Reopen with thenot implementedline from main when a title reaches it.Pull request closed