feat(libc): implement _Hypot, _FHypot and _LHypot Dinkumware math helpers #12363
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/12363"
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 PrivacyOnion on 2026-10-28T10:55:31Z.
What
Implement the PS5 3.20 Dinkumware scaled-hypotenuse helpers
_Hypot,_FHypot, and_LHypotinlibc(core/libs/prx/libc/src/DinkumwareInternals.cpp), taking(x, y, int* exponent), writing the scaling exponent*exponent, and returning the scaled mantissa viaScaledHypotderived from Dinkumware VC12xmath.handxxxhypot.h(retaining the verbatim P.J. Plauger notice at the top ofDinkumwareInternals.cppand recorded indocs/dev/debt/libc.md, and NaN checked before infinity), matching firmware 13.42libSceLibcInternal.sprxmeasurements. Provenance:libSceLibcInternal.cinDNNDHH/PS5-3.20_Libs.Tested
Windows 11, unit tests in
core/libs/tests/GuestDinkumwareInternals.cppverifying_Hypot,_FHypot, and_LHypotacross all measured firmware 13.42 inputs ((3, 4),(-5, 12),(0.1, 0.2),(0, 0),(1e300, 1e300),(1e-310, 1e-310),(inf, NaN),(NaN, 1),(inf, 1), and null exponent rejection).Ran locally on
3f865021bf: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 MarcZX10 on 2026-10-28T17:28:00Z.
Review: APPROVED
Reviewed — looks good\n\nThe implementation, ABI declarations, debt notes, and edge-case tests were reviewed; the focused Linux/GCC test passed locally at this exact head, as did the Windows hosted job. Other platform behavior and console behavior remain unverified; no blocking issue found.\n\nReviewed head against base ; no blocking finding. This approval covers this exact diff only.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-28T17:29:05Z.
Review: APPROVED
Reviewed — looks good
The implementation, ABI declarations, debt notes, and edge-case tests were reviewed; the focused Linux/GCC test passed locally at this exact head, as did the Windows hosted job. Other platform behavior and console behavior remain unverified; no blocking issue found.
Reviewed head 817de5b106e25d6113d2e2823dc9669d1f28c984 against base
750cf6cf48; no blocking finding. This approval covers this exact diff.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-29T09:21:59Z.
Review: CHANGES_REQUESTED
Re-review — changes requested for current-main integration
The scoped Dinkumware change remains consistent with the previously reviewed implementation. The new head adds the original P.J. Plauger notice to technical debt, records the implementation's known limits, and retains the three ABI declarations, scaled-hypot implementation, and edge-case tests. The author reports the exact-head
guest_dinkumware_internalstest passing and refreshed the conventions check.The branch is still based on
750cf6cf, while current upstream main isaaccd0ba. Please refresh this small diff onto current main, preserve the declared #11752 and #12364 order, and rerun the focused Dinkumware test plus the convention/overlap checks on the exact rebased head. I did not rerun the test locally. This request concerns integration freshness; it does not identify a new defect in the scoped math implementation.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-29T09:44:01Z.
Review: APPROVED
Re-checked — approved
The branch now includes current
mainaaccd0ba39and preserves the declared dependency order#11752, then#12364. The scaled-hypot implementation, ABI declarations and edge-case tests are unchanged from the previously reviewed code; the new debt entry records the implementation limits and pinned source provenance.The author reports
guest_dinkumware_internalspassing on exact head4a9c566cfe60dafe169872fa43c6d07bd25e8962. The new conventions, eligibility, labels and report checks are pending. I did not run the test locally or validate console behavior. No blocking issue found; approval covers this exact head and the stated dependency order.Pull request closed