feat(libc): implement __powidf2 for Cyberpunk imports #4378
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/4378"
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 MarcZX10 on 2026-10-12T08:17:33Z.
What
Completes #3161. Current
mainalready hasabs; this change adds the missing__powidf2integer-power helper as the SDK's Clang compiler-rt implementation and removes the staleH+8UBOwfScIplaceholder, which has the same NID. The exponent magnitude is handled as unsigned, includingINT_MIN. The existing float helper is unchanged. TechnicalDebt records the assumed compiler-rt behavior and its underflow difference frompow.The implementation is carried from screamm’s ready branch, with the original author preserved.
Tested
BUILD_TESTING=ON: configured successfully.guest_math_tests;ctest -R '^guest_math$': 1/1 passed.python3 tools/nid_names.py --nid 'H+8UBOwfScI' --jsonidentifies__powidf2as already implemented.python3 tools/check_conventions.py --base upstream/main: passed.git diff --check: passed.Checklist
main; no other open PR implements this functionNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repositoryImported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-12T08:28:22Z.
Progress report (
1acfa7f→f9fe59f)📈 System libraries: 86.39% (+0.03%, +1 implemented, -1 removed functions)
✅ 1 implemented
__powidf2_nid_postfix🗑️ 1 removed
libcCyberUnknown08Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-12T08:37:02Z.
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)__powidf2_nid_postfixImported from boykopovar/AnyPS5. Originally posted by xXPBSXx on 2026-10-12T11:22:32Z.
Windows test: head
41b598a8amerged onto currentmain3d8ffeb27(clean merge, no conflicts). Windows 10, MinGW GCC (WinLibs), Ninja Release,-j4: full build 0 errors; ctest (guest_math): 1/1 passed;python tools/check_conventions.py --base upstream/mainpassed. I did not run the new tests againstmainwithout the change.AI-assisted (Claude Code).
Imported from boykopovar/AnyPS5. Originally posted by blawesom on 2026-10-12T14:02:01Z.
Rebase handoff — rebased onto current
main, authorship unchanged (only aTechnicalDebt.mdunion conflict; both entries kept).Verified on Linux (CachyOS, kernel 7.2.9, GCC 16.2.1, Ninja, Release,
BUILD_TESTING=ON, AMD RX 9070 XT / RADV):tools/check_conventions.py --base origin/mainpassesTo pick it up:
Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-13T00:21:44Z.
Closing: no title is shown calling
__powidf2(H+8UBOwfScI), which is why #4229 was closed shortly before this was opened, and #2465 is open for the same export. Reopen with the title ID and the line where it throws on main.Pull request closed