feat(libc): implement __powidf2 #5174
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/5174"
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 AkulTyagi11 on 2026-10-13T13:53:11Z.
What
The
H+8UBOwfScIimport was a throwing stub (libcCyberUnknown08). Hash verification fromtools/nid_names.pyresolves it to__powidf2, the double-precision integer power helper that complements__powisf2.Implemented in
Math.cppand covered byGuestMath.cpptests.Tested
GuestMathtest suite (positive powers, negative powers, odd/even negative bases, 0^0, NaN, INT_MIN/INT_MAX exponents, signed zeroes and division limits).Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.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-13T14:00:47Z.
Progress report (
e152ba8→b4e2ee0)📈 System libraries: 88.03% (+0.02%, +1 implemented, -1 removed functions)
✅ 1 implemented
__powidf2_nid_postfix🗑️ 1 removed
libcCyberUnknown08Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-13T14:02:51Z.
Checked:
H+8UBOwfScIhashes to__powidf2; the implementation matches compiler-rt's square-and-multiply with reciprocal for negative exponents (INT_MIN handled via unsigned negation);guest_mathpasses locally and the new rows fail to link without the change. Merging once the full Build is green.Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-13T14:08:47Z.
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_postfix