fix(libc): compute hypotf with FreeBSD msun's algorithm, as titles' libc.prx does #10328

Merged
JJenkx merged 7 commits from upstream-pr/10328 into main 2026-11-05 19:12:46 +00:00
JJenkx commented 2026-10-23 17:59:09 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by JJenkx on 2026-10-23T17:59:09Z.


What

hypotf rounded the host's double hypot to float. That is almost always the correctly rounded result, but the titles' copy is not correctly rounded, so the two differ on 982,314 of 16 million random pairs. For example, hypotf(0xc3a8012e, 0x47264372) is 0x472644c5 on the console and 0x472644c6 here.

The titles' copy (NID iz2shAGFIxc) is FreeBSD msun's e_hypotf.c, computed in float. hypotf now computes it:

  • the ordering by bits;
  • the a + b return when the ratio exceeds 2^30;
  • the infinity and NaN handling, where an infinity wins over a NaN and a NaN result keeps the argument order, with its sign cleared;
  • the 2^-68, 2^68 and 2^126 scaling;
  • the two sqrtf forms with the operands split at their low 12 bits.

main's existing hypotf tests still pass. They include the invalid exception for a signalling NaN next to an infinity, which x + 0.0F raises as in msun. hypot3f calls this hypotf, and its existing tests still pass too.

errno: neither msun nor the titles' copy sets it, even when a finite pair overflows to infinity, and this port sets none either.

Tested

Current-main integration — 2026-11-03. Head 83dcad0259ea65fc6ffbd16ed56af75f5f003ee5 includes main 4f41f4c375f5abb487dbd184fbc150f31994d762 and retains the prior public history and attribution/licence notices. Main’s newer math implementations and fixtures remain alongside this topic.

Linux x86-64 Release, GCC 16.2.1, Ninja, BUILD_TESTING=ON: rebuilt actual libc and math executables. guest_math, guest_math_exact, and guest_dinkumware_internals each pass 3/3 (9 passes, zero skips); public_headers and conventions pass. The same three groups pass 3/3 plus headers on pinned main. All 34 recursive dependency trees and 31,551 tracked blobs verify with zero errors; the update=none QuickJS test262 corpus is excluded from these library inputs. Whitespace check passes.

Source/parent/gitlink proofs, exact library/test hashes, raw logs/JUnit, and head-leased push receipts: qualification archive, SHA-256 e6a50522bc28e30871fdc2c12a88d2537515914239e8166f6237f48895126a06 (download verified). Older platform/reference reports retain their original pins; no new Windows/macOS, SDK-module, console, title/GPU or performance claim. AI-assisted: yes (Codex).

Earlier dated qualifications below retain their recorded source/platform pins.

Current-main refresh — 2026-11-02. Published head 04983c615f878dc138be93f879e7e75106626283 includes pinned main a4eca2a056bf3bbbec98ab42e9d28163e4ea9cb8. The hypotf production body and CheckHypotfConsoleBits fixture remain unchanged. Main’s log10/log2/atan functions and test calls are retained. The refreshed topic is linear on pinned main with original authorship.

Rebuilt actual libc/Ampr and selected tests from the final input tree. guest_math, guest_math_exact, guest_dinkumware_internals each pass three consecutive runs: 9 runtime passes, zero skips, plus public_headers. Conventions and whitespace pass. Source/input manifests, exact dependencies, library/test hashes, logs/JUnit and head-leased push receipts are attached. The same pinned main passes 18 selected groups three times (54 runtime passes) plus headers. All 34 recursive dependency trees/31,551 tracked blobs verify with zero errors; QuickJS’s update=none test262 corpus is explicitly excluded because it is not a library build input.

Linux-7.2.11-arch1-1-x86_64-with-glibc2.44, Ryzen 9 7950X, GCC 16.2.1, Ninja Release, BUILD_TESTING=ON. Focused Linux CPU qualification only. Older Windows/module/reference reports retain their original pins; no fresh Windows/macOS, SDK-module, console, title/GPU or speed claim. AI-assisted: yes (Codex).

Evidence: https://github.com/JJenkx/AnyPS5/releases/download/linux-validation-20261023/math-six-main-a4eca-linux-extra10321-20261102.tar.gz; SHA-256 525ccb31a5d3d0f5adced5fda58818d8432f06c0afa7290139adb60ae6664b54.

Earlier dated qualifications below retain their recorded source/platform pins.

Rebased without merge commits onto main 73f4f7e06e4f210a8c6570e335fd654dc0a86134. Tested exact head 33186d0401fffd98cbc1d1c552ff6f6b3f15767d on Linux x86-64 (AMD Ryzen 9 7950X, GCC 16.2.1, Ninja Release, BUILD_TESTING=ON, bundled dependencies).

Rebuilt libc, guest_math_tests, guest_math_exact_tests and guest_dinkumware_internals_tests. guest_math, guest_math_exact, guest_dinkumware_internals and public_headers each pass three consecutive times on both pinned main and this exact head: 12 passes per side, zero skips. Conventions and whitespace checks pass. GitHub current-main integration is now backed by these local tests; the latest fetched main also has a clean merge preview.

Original authored executable code and tests are preserved. The exp parent retains its FreeBSD notice; trailing whitespace was removed from three copyright-notice lines. No new Windows, macOS, bundled-SDK/console reference, GPU/title, performance or full-suite execution is claimed. Earlier reference comparisons retain their original source pins.

Source patches, source-preservation proof, exact pins, build logs, raw CTest logs, JUnit and binary hashes; SHA-256 46b6a1579d909a279510564f346f32b61073cc5d090decd6acc0684bfe6d706c. Uploaded copy downloaded and verified. AI-assisted: yes (Codex).

Checklist

  • Based on current main; no other open PR implements the same functions. #10321 and #10325 add their test functions and debt entries at the same places in core/libs/tests/GuestMath.cpp and docs/dev/debt/libc.md, so whichever of these PRs lands later needs those lines merged
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source: none; the msun function is rewritten, as #9668, #5036 and the sinhf entry did
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4987107769 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/10328). Originally posted by [JJenkx](https://github.com/JJenkx) on 2026-10-23T17:59:09Z. --- ### What `hypotf` rounded the host's double `hypot` to float. That is almost always the correctly rounded result, but the titles' copy is not correctly rounded, so the two differ on 982,314 of 16 million random pairs. For example, `hypotf(0xc3a8012e, 0x47264372)` is `0x472644c5` on the console and `0x472644c6` here. The titles' copy (NID `iz2shAGFIxc`) is FreeBSD msun's [`e_hypotf.c`](https://github.com/freebsd/freebsd-src/blob/release/11.4.0/lib/msun/src/e_hypotf.c), computed in float. `hypotf` now computes it: - the ordering by bits; - the `a + b` return when the ratio exceeds 2^30; - the infinity and NaN handling, where an infinity wins over a NaN and a NaN result keeps the argument order, with its sign cleared; - the 2^-68, 2^68 and 2^126 scaling; - the two `sqrtf` forms with the operands split at their low 12 bits. `main`'s existing `hypotf` tests still pass. They include the invalid exception for a signalling NaN next to an infinity, which `x + 0.0F` raises as in msun. `hypot3f` calls this `hypotf`, and its existing tests still pass too. **`errno`:** neither msun nor the titles' copy sets it, even when a finite pair overflows to infinity, and this port sets none either. ### Tested **Current-main integration — 2026-11-03.** Head `83dcad0259ea65fc6ffbd16ed56af75f5f003ee5` includes main `4f41f4c375f5abb487dbd184fbc150f31994d762` and retains the prior public history and attribution/licence notices. Main’s newer math implementations and fixtures remain alongside this topic. Linux x86-64 Release, GCC 16.2.1, Ninja, BUILD_TESTING=ON: rebuilt actual libc and math executables. `guest_math`, `guest_math_exact`, and `guest_dinkumware_internals` each pass 3/3 (**9 passes, zero skips**); `public_headers` and conventions pass. The same three groups pass 3/3 plus headers on pinned main. All 34 recursive dependency trees and 31,551 tracked blobs verify with zero errors; the update=none QuickJS test262 corpus is excluded from these library inputs. Whitespace check passes. Source/parent/gitlink proofs, exact library/test hashes, raw logs/JUnit, and head-leased push receipts: [qualification archive](https://github.com/JJenkx/AnyPS5/releases/download/linux-validation-20261023/math15-main4f41-linux-20261103.tar.gz), SHA-256 `e6a50522bc28e30871fdc2c12a88d2537515914239e8166f6237f48895126a06` (download verified). Older platform/reference reports retain their original pins; no new Windows/macOS, SDK-module, console, title/GPU or performance claim. AI-assisted: yes (Codex). Earlier dated qualifications below retain their recorded source/platform pins. **Current-main refresh — 2026-11-02.** Published head `04983c615f878dc138be93f879e7e75106626283` includes pinned main `a4eca2a056bf3bbbec98ab42e9d28163e4ea9cb8`. The hypotf production body and CheckHypotfConsoleBits fixture remain unchanged. Main’s log10/log2/atan functions and test calls are retained. The refreshed topic is linear on pinned main with original authorship. Rebuilt actual libc/Ampr and selected tests from the final input tree. `guest_math`, `guest_math_exact`, `guest_dinkumware_internals` each pass three consecutive runs: **9 runtime passes, zero skips**, plus public_headers. Conventions and whitespace pass. Source/input manifests, exact dependencies, library/test hashes, logs/JUnit and head-leased push receipts are attached. The same pinned main passes 18 selected groups three times (54 runtime passes) plus headers. All 34 recursive dependency trees/31,551 tracked blobs verify with zero errors; QuickJS’s update=none test262 corpus is explicitly excluded because it is not a library build input. Linux-7.2.11-arch1-1-x86_64-with-glibc2.44, Ryzen 9 7950X, GCC 16.2.1, Ninja Release, BUILD_TESTING=ON. Focused Linux CPU qualification only. Older Windows/module/reference reports retain their original pins; no fresh Windows/macOS, SDK-module, console, title/GPU or speed claim. AI-assisted: yes (Codex). Evidence: https://github.com/JJenkx/AnyPS5/releases/download/linux-validation-20261023/math-six-main-a4eca-linux-extra10321-20261102.tar.gz; SHA-256 525ccb31a5d3d0f5adced5fda58818d8432f06c0afa7290139adb60ae6664b54. Earlier dated qualifications below retain their recorded source/platform pins. <!-- codex-math-main73f-20261031-10328 --> Rebased without merge commits onto main `73f4f7e06e4f210a8c6570e335fd654dc0a86134`. Tested exact head `33186d0401fffd98cbc1d1c552ff6f6b3f15767d` on Linux x86-64 (AMD Ryzen 9 7950X, GCC 16.2.1, Ninja Release, BUILD_TESTING=ON, bundled dependencies). Rebuilt `libc`, `guest_math_tests`, `guest_math_exact_tests` and `guest_dinkumware_internals_tests`. `guest_math`, `guest_math_exact`, `guest_dinkumware_internals` and `public_headers` each pass three consecutive times on both pinned main and this exact head: 12 passes per side, zero skips. Conventions and whitespace checks pass. GitHub current-main integration is now backed by these local tests; the latest fetched main also has a clean merge preview. Original authored executable code and tests are preserved. The exp parent retains its FreeBSD notice; trailing whitespace was removed from three copyright-notice lines. No new Windows, macOS, bundled-SDK/console reference, GPU/title, performance or full-suite execution is claimed. Earlier reference comparisons retain their original source pins. [Source patches, source-preservation proof, exact pins, build logs, raw CTest logs, JUnit and binary hashes](https://github.com/JJenkx/AnyPS5/releases/download/linux-validation-20261023/math-four-main73f-linux-20261031.tar.gz); SHA-256 `46b6a1579d909a279510564f346f32b61073cc5d090decd6acc0684bfe6d706c`. Uploaded copy downloaded and verified. AI-assisted: yes (Codex). ### Checklist <!-- Rules behind each item: https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md --> - [x] Based on current `main`; no other open PR implements the same functions. #10321 and #10325 add their test functions and debt entries at the same places in `core/libs/tests/GuestMath.cpp` and `docs/dev/debt/libc.md`, so whichever of these PRs lands later needs those lines merged - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source: none; the msun function is rewritten, as #9668, #5036 and the `sinhf` entry did - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes
harisibrar1 commented 2026-10-24 05:19:51 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by harisibrar1 on 2026-10-24T05:19:51Z.

Review: APPROVED


Checked against main 7966e590ef and FreeBSD msun e_hypotf.c at release/9.0.0, 10.0.0, 11.4.0, 12.0.0 and 13.0.0:

  • Thanks for this. The body matches release/11.4.0 line for line. 9.0.0 and 10.0.0 behave the same, since they only write the final scale as 0x3f800000+(k<<23), which equals (127+k)<<23 for every reachable k, so the 11.4.0 link is the right one. From 12.0 on, the Inf/NaN line is fabsl(x+0.0L)-fabsf(y+0), so citing 11.4 rather than a newer release makes sense.
  • Emulating the algorithm in float reproduced all 12 non-special console vectors in CheckHypotfConsoleBits in both argument orders. The old double-hypot path differs on 6 of them, including (0xc3a8012e, 0x47264372).
  • Optional: the only two-NaN case checks (0xffc00002, 0x7fc00001), where I'd expect 11.4 and 12.0+ to agree. I couldn't run it, but reading the 12.0 fabsl line suggests the reversed pair (0x7fc00001, 0xffc00002) gives payload 1 with this code and payload 2 with 12.0+. If your title comparison has that pair's console bits, adding it would pin the version in the test.
  • Merges cleanly onto current main, and main's hypotf is still the double-hypot cast.

Reviewed with AI assistance (Claude Code); the checks above were run locally on my machine.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5636985605 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/10328#pullrequestreview-5636985605). Originally posted by [harisibrar1](https://github.com/harisibrar1) on 2026-10-24T05:19:51Z. **Review:** APPROVED --- Checked against main 7966e590ef and FreeBSD msun e_hypotf.c at release/9.0.0, 10.0.0, 11.4.0, 12.0.0 and 13.0.0: - Thanks for this. The body matches release/11.4.0 line for line. 9.0.0 and 10.0.0 behave the same, since they only write the final scale as `0x3f800000+(k<<23)`, which equals `(127+k)<<23` for every reachable k, so the 11.4.0 link is the right one. From 12.0 on, the Inf/NaN line is `fabsl(x+0.0L)-fabsf(y+0)`, so citing 11.4 rather than a newer release makes sense. - Emulating the algorithm in float reproduced all 12 non-special console vectors in `CheckHypotfConsoleBits` in both argument orders. The old double-`hypot` path differs on 6 of them, including `(0xc3a8012e, 0x47264372)`. - Optional: the only two-NaN case checks `(0xffc00002, 0x7fc00001)`, where I'd expect 11.4 and 12.0+ to agree. I couldn't run it, but reading the 12.0 `fabsl` line suggests the reversed pair `(0x7fc00001, 0xffc00002)` gives payload 1 with this code and payload 2 with 12.0+. If your title comparison has that pair's console bits, adding it would pin the version in the test. - Merges cleanly onto current main, and main's `hypotf` is still the double-`hypot` cast. Reviewed with AI assistance (Claude Code); the checks above were run locally on my machine.
MarcZX10 commented 2026-10-24 21:04:37 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-24T21:04:37Z.

Review: DISMISSED


The prior review and follow-up provide useful exact-head evidence, including the reversed quiet-NaN case and repeated guest_math/guest_dinkumware_internals runs on Linux and Windows. After refreshing upstream/main, however, this branch's merge base is 1e20650e8458, with 6,822 current-main commits since it. CONTRIBUTING.md asks contributors to keep branches up to date with main, and current hosted product jobs are skipped. Please update to current main and rerun guest_math and guest_dinkumware_internals on the resulting tree. The math implementation looks well supported on the old base; I will revisit approval when current-base integration is validated.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5640022403 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/10328#pullrequestreview-5640022403). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-24T21:04:37Z. **Review:** DISMISSED --- The prior review and follow-up provide useful exact-head evidence, including the reversed quiet-NaN case and repeated `guest_math`/`guest_dinkumware_internals` runs on Linux and Windows. After refreshing `upstream/main`, however, this branch's merge base is `1e20650e8458`, with 6,822 current-main commits since it. `CONTRIBUTING.md` asks contributors to keep branches up to date with main, and current hosted product jobs are skipped. Please update to current main and rerun `guest_math` and `guest_dinkumware_internals` on the resulting tree. The math implementation looks well supported on the old base; I will revisit approval when current-base integration is validated.
MarcZX10 commented 2026-10-31 12:55:40 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-31T12:55:40Z.

Review: DISMISSED


Re-checked — changes requested

The new Linux qualification is valid evidence for b25d8e9725f491fb11b7c2e01c5105481132a74d, but that head is still based on 2227f136…, not current main.

What I ran

Reviewed PR head b25d8e9725f491fb11b7c2e01c5105481132a74d against its base 2227f1366188cda5699dd20e2e756a18006a5d4b. Current main is 60bdb061356db736928eee431cd8bd4c9ba68036, 3,334 commits ahead of that base. I downloaded the author-provided Linux qualification archive and verified its SHA-256 and the 10328 result and test logs.

gh api repos/boykopovar/AnyPS5/compare/2227f1366188cda5699dd20e2e756a18006a5d4b...60bdb061356db736928eee431cd8bd4c9ba68036 --jq '{status:.status,ahead_by:.ahead_by,behind_by:.behind_by}'
sha256sum /tmp/anyps5-math-followups-20261031/math-four-dinkumware-exactheads-linux-20261031.tar.gz
tar -xOf /tmp/anyps5-math-followups-20261031/math-four-dinkumware-exactheads-linux-20261031.tar.gz 10328/tests.log
gh api repos/boykopovar/AnyPS5/pulls/10328 --jq '{base:.base.sha,head:.head.sha}'

Results

Check Result
Author-provided Linux guest_dinkumware_internals artifact 3/3 passed, zero skips; result metadata pins the exact PR head above
Evidence archive integrity SHA-256 matches the value posted with the archive
Hosted Windows Passed at the exact PR head; Linux product job skipped
Current-main integration Not checked: the PR base remains 2227f136…, 3,334 commits behind current main
Unedited Linux test-log excerpt
    Start 451: guest_dinkumware_internals
451: Test command: /mnt/sas-ssd/AnyPS5-work/workspace/pr-review-followups-20261026/pr8123/build/tests/guest_dinkumware_internals_tests
451: Test #451: guest_dinkumware_internals .......   Passed    0.00 sec
    Start 451: guest_dinkumware_internals
451: Test command: /mnt/sas-ssd/AnyPS5-work/workspace/pr-review-followups-20261026/pr8123/build/tests/guest_dinkumware_internals_tests
451: Test #451: guest_dinkumware_internals .......   Passed    0.00 sec
    Start 451: guest_dinkumware_internals
1/1 Test #451: guest_dinkumware_internals .......   Passed    0.00 sec
100% tests passed out of 1
Total Test time (real) = 0.04 sec

Negative control

Not run for this re-check. The supplemental report adds positive tests and does not claim a new negative control.

Findings

Blocking

  • The exact-head tests are on the old base. CONTRIBUTING.md requires branches to stay up to date with main; current main has advanced by 3,334 commits. Please refresh this branch onto current main and rerun the focused tests on the resulting head before approval. For #10321, refresh its open prerequisite #10234 first, then update the dependent branch.

Non-blocking

  • The Linux evidence package is internally consistent and its digest matches the posted SHA-256. The Windows test runs described in the PR comments are author-reported; I did not independently reproduce them.

Sources

Not verified

I did not rebuild or rerun the C++ tests locally. Windows evidence is author-reported. No console, SDK, title, GPU, or full-suite testing was performed in this re-check.

To get this to a good state

Rebase onto current main, preserving declared dependency order, then provide exact-head results for the focused math and Dinkumware tests. I will re-run the same source and integration checks on the refreshed heads.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5722789709 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/10328#pullrequestreview-5722789709). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-31T12:55:40Z. **Review:** DISMISSED --- # Re-checked — changes requested The new Linux qualification is valid evidence for `b25d8e9725f491fb11b7c2e01c5105481132a74d`, but that head is still based on `2227f136…`, not current `main`. ## What I ran Reviewed PR head `b25d8e9725f491fb11b7c2e01c5105481132a74d` against its base `2227f1366188cda5699dd20e2e756a18006a5d4b`. Current `main` is `60bdb061356db736928eee431cd8bd4c9ba68036`, 3,334 commits ahead of that base. I downloaded the author-provided Linux qualification archive and verified its SHA-256 and the `10328` result and test logs. ```sh gh api repos/boykopovar/AnyPS5/compare/2227f1366188cda5699dd20e2e756a18006a5d4b...60bdb061356db736928eee431cd8bd4c9ba68036 --jq '{status:.status,ahead_by:.ahead_by,behind_by:.behind_by}' sha256sum /tmp/anyps5-math-followups-20261031/math-four-dinkumware-exactheads-linux-20261031.tar.gz tar -xOf /tmp/anyps5-math-followups-20261031/math-four-dinkumware-exactheads-linux-20261031.tar.gz 10328/tests.log gh api repos/boykopovar/AnyPS5/pulls/10328 --jq '{base:.base.sha,head:.head.sha}' ``` ## Results | Check | Result | |---|---| | Author-provided Linux `guest_dinkumware_internals` artifact | 3/3 passed, zero skips; result metadata pins the exact PR head above | | Evidence archive integrity | SHA-256 matches the value posted with the archive | | Hosted Windows | Passed at the exact PR head; Linux product job skipped | | Current-main integration | Not checked: the PR base remains `2227f136…`, 3,334 commits behind current main | <details><summary>Unedited Linux test-log excerpt</summary> ```text Start 451: guest_dinkumware_internals 451: Test command: /mnt/sas-ssd/AnyPS5-work/workspace/pr-review-followups-20261026/pr8123/build/tests/guest_dinkumware_internals_tests 451: Test #451: guest_dinkumware_internals ....... Passed 0.00 sec Start 451: guest_dinkumware_internals 451: Test command: /mnt/sas-ssd/AnyPS5-work/workspace/pr-review-followups-20261026/pr8123/build/tests/guest_dinkumware_internals_tests 451: Test #451: guest_dinkumware_internals ....... Passed 0.00 sec Start 451: guest_dinkumware_internals 1/1 Test #451: guest_dinkumware_internals ....... Passed 0.00 sec 100% tests passed out of 1 Total Test time (real) = 0.04 sec ``` </details> ## Negative control Not run for this re-check. The supplemental report adds positive tests and does not claim a new negative control. ## Findings ### Blocking - The exact-head tests are on the old base. `CONTRIBUTING.md` requires branches to stay up to date with `main`; current main has advanced by 3,334 commits. Please refresh this branch onto current main and rerun the focused tests on the resulting head before approval. For #10321, refresh its open prerequisite #10234 first, then update the dependent branch. ### Non-blocking - The Linux evidence package is internally consistent and its digest matches the posted SHA-256. The Windows test runs described in the PR comments are author-reported; I did not independently reproduce them. ## Sources - [Branch freshness and testing rules at current main](https://github.com/boykopovar/AnyPS5/blob/60bdb061356db736928eee431cd8bd4c9ba68036/CONTRIBUTING.md#L59-L72) - [Comparison from the tested base to current main](https://github.com/boykopovar/AnyPS5/compare/2227f1366188cda5699dd20e2e756a18006a5d4b...60bdb061356db736928eee431cd8bd4c9ba68036) - [Author-provided exact-head Linux evidence archive](https://github.com/JJenkx/AnyPS5/releases/download/linux-validation-20261023/math-four-dinkumware-exactheads-linux-20261031.tar.gz) - [PR #10328 exact head](https://github.com/boykopovar/AnyPS5/commit/b25d8e9725f491fb11b7c2e01c5105481132a74d) ## Not verified I did not rebuild or rerun the C++ tests locally. Windows evidence is author-reported. No console, SDK, title, GPU, or full-suite testing was performed in this re-check. ## To get this to a good state Rebase onto current `main`, preserving declared dependency order, then provide exact-head results for the focused math and Dinkumware tests. I will re-run the same source and integration checks on the refreshed heads.
MarcZX10 commented 2026-10-31 12:57:08 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-31T12:57:08Z.

Review: DISMISSED


Re-checked — changes requested

The supplemental Linux evidence is pinned to the current PR head, but it does not test the combination with current main, which has since changed the same source, test, and debt files.

What I ran

Reviewed PR head b25d8e9725f491fb11b7c2e01c5105481132a74d (base 2227f1366188cda5699dd20e2e756a18006a5d4b) and current main 60bdb061356db736928eee431cd8bd4c9ba68036. Compared the changed-path lists and fetched file identities for core/libs/prx/libc/src/Math.cpp, core/libs/tests/GuestMath.cpp, and docs/dev/debt/libc.md. Downloaded the author-provided Linux evidence archive and verified its SHA-256 and 10328 test log.

gh api repos/boykopovar/AnyPS5/pulls/10328 --jq '{base:.base.sha,head:.head.sha,mergeable:.mergeable}'
gh api repos/boykopovar/AnyPS5/contents/core/libs/prx/libc/src/Math.cpp?ref=2227f1366188cda5699dd20e2e756a18006a5d4b --jq .sha
gh api repos/boykopovar/AnyPS5/contents/core/libs/prx/libc/src/Math.cpp?ref=60bdb061356db736928eee431cd8bd4c9ba68036 --jq .sha
sha256sum /tmp/anyps5-math-followups-20261031/math-four-dinkumware-exactheads-linux-20261031.tar.gz
tar -xOf /tmp/anyps5-math-followups-20261031/math-four-dinkumware-exactheads-linux-20261031.tar.gz 10328/tests.log

Results

Check Result
Supplemental Linux guest_dinkumware_internals Passed 3/3, zero skips according to the downloaded exact-head archive; archive SHA-256 matches the posted value
Earlier guest_math / guest_math_exact runs Author-reported on the same old base; not rerun in this re-check
Hosted Windows Passed at the current PR head; Linux product job skipped
Mergeability GitHub currently reports mergeable; current main still changed the three files also changed by this PR
Current-main integration tests Not run; the supplied logs use base 2227f136…
Unedited test-log excerpt from the supplied archive
    Start 451: guest_dinkumware_internals
451: Test command: /mnt/sas-ssd/AnyPS5-work/workspace/pr-review-followups-20261026/pr8123/build/tests/guest_dinkumware_internals_tests
451: Test #451: guest_dinkumware_internals .......   Passed    0.00 sec
    Start 451: guest_dinkumware_internals
451: Test command: /mnt/sas-ssd/AnyPS5-work/workspace/pr-review-followups-20261026/pr8123/build/tests/guest_dinkumware_internals_tests
451: Test #451: guest_dinkumware_internals .......   Passed    0.00 sec
    Start 451: guest_dinkumware_internals
1/1 Test #451: guest_dinkumware_internals .......   Passed    0.00 sec
100% tests passed out of 1
Total Test time (real) = 0.04 sec

Negative control

Not run in this re-check. The new report supplies positive runs and makes no new negative-control claim.

Findings

Blocking

  • Math.cpp, GuestMath.cpp, and docs/dev/debt/libc.md all changed on current main after the PR's base. For example, current Math.cpp still has the host-backed hypotf path and current GuestMath.cpp has newer math/environment test changes; the supplied archive was built from the older tree. A passing old-base run does not establish the result when these changes are combined. Please refresh this branch onto current main and rerun the focused math and Dinkumware tests on the resulting head. For #10321, update its open prerequisite #10234 first, then refresh the dependent branch.

Non-blocking

  • The attached Linux Dinkumware logs are internally consistent and their archive digest matches. The Windows results described in the PR comments remain author-reported; I did not independently reproduce them.

Sources

Not verified

I did not rebuild or rerun C++ tests locally, and did not test the combined tree on current main. Console, SDK, title, GPU, and full-suite behavior were not verified in this re-check.

To get this to a good state

Refresh onto current main (respecting dependency order), then provide exact-head results for guest_math, guest_math_exact, and guest_dinkumware_internals. I will rerun the relevant source, test, and integration checks on that head.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5722793408 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/10328#pullrequestreview-5722793408). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-31T12:57:08Z. **Review:** DISMISSED --- # Re-checked — changes requested The supplemental Linux evidence is pinned to the current PR head, but it does not test the combination with current `main`, which has since changed the same source, test, and debt files. ## What I ran Reviewed PR head `b25d8e9725f491fb11b7c2e01c5105481132a74d` (base `2227f1366188cda5699dd20e2e756a18006a5d4b`) and current `main` `60bdb061356db736928eee431cd8bd4c9ba68036`. Compared the changed-path lists and fetched file identities for `core/libs/prx/libc/src/Math.cpp`, `core/libs/tests/GuestMath.cpp`, and `docs/dev/debt/libc.md`. Downloaded the author-provided Linux evidence archive and verified its SHA-256 and `10328` test log. ```sh gh api repos/boykopovar/AnyPS5/pulls/10328 --jq '{base:.base.sha,head:.head.sha,mergeable:.mergeable}' gh api repos/boykopovar/AnyPS5/contents/core/libs/prx/libc/src/Math.cpp?ref=2227f1366188cda5699dd20e2e756a18006a5d4b --jq .sha gh api repos/boykopovar/AnyPS5/contents/core/libs/prx/libc/src/Math.cpp?ref=60bdb061356db736928eee431cd8bd4c9ba68036 --jq .sha sha256sum /tmp/anyps5-math-followups-20261031/math-four-dinkumware-exactheads-linux-20261031.tar.gz tar -xOf /tmp/anyps5-math-followups-20261031/math-four-dinkumware-exactheads-linux-20261031.tar.gz 10328/tests.log ``` ## Results | Check | Result | |---|---| | Supplemental Linux `guest_dinkumware_internals` | Passed 3/3, zero skips according to the downloaded exact-head archive; archive SHA-256 matches the posted value | | Earlier `guest_math` / `guest_math_exact` runs | Author-reported on the same old base; not rerun in this re-check | | Hosted Windows | Passed at the current PR head; Linux product job skipped | | Mergeability | GitHub currently reports mergeable; current main still changed the three files also changed by this PR | | Current-main integration tests | Not run; the supplied logs use base `2227f136…` | <details><summary>Unedited test-log excerpt from the supplied archive</summary> ```text Start 451: guest_dinkumware_internals 451: Test command: /mnt/sas-ssd/AnyPS5-work/workspace/pr-review-followups-20261026/pr8123/build/tests/guest_dinkumware_internals_tests 451: Test #451: guest_dinkumware_internals ....... Passed 0.00 sec Start 451: guest_dinkumware_internals 451: Test command: /mnt/sas-ssd/AnyPS5-work/workspace/pr-review-followups-20261026/pr8123/build/tests/guest_dinkumware_internals_tests 451: Test #451: guest_dinkumware_internals ....... Passed 0.00 sec Start 451: guest_dinkumware_internals 1/1 Test #451: guest_dinkumware_internals ....... Passed 0.00 sec 100% tests passed out of 1 Total Test time (real) = 0.04 sec ``` </details> ## Negative control Not run in this re-check. The new report supplies positive runs and makes no new negative-control claim. ## Findings ### Blocking - `Math.cpp`, `GuestMath.cpp`, and `docs/dev/debt/libc.md` all changed on current `main` after the PR's base. For example, current `Math.cpp` still has the host-backed `hypotf` path and current `GuestMath.cpp` has newer math/environment test changes; the supplied archive was built from the older tree. A passing old-base run does not establish the result when these changes are combined. Please refresh this branch onto current `main` and rerun the focused math and Dinkumware tests on the resulting head. For #10321, update its open prerequisite #10234 first, then refresh the dependent branch. ### Non-blocking - The attached Linux Dinkumware logs are internally consistent and their archive digest matches. The Windows results described in the PR comments remain author-reported; I did not independently reproduce them. ## Sources - [Current `Math.cpp` at main](https://github.com/boykopovar/AnyPS5/blob/60bdb061356db736928eee431cd8bd4c9ba68036/core/libs/prx/libc/src/Math.cpp) - [Current `GuestMath.cpp` at main](https://github.com/boykopovar/AnyPS5/blob/60bdb061356db736928eee431cd8bd4c9ba68036/core/libs/tests/GuestMath.cpp) - [Current debt inventory at main](https://github.com/boykopovar/AnyPS5/blob/60bdb061356db736928eee431cd8bd4c9ba68036/docs/dev/debt/libc.md) - [Contribution rule for current-main branch freshness and tests](https://github.com/boykopovar/AnyPS5/blob/60bdb061356db736928eee431cd8bd4c9ba68036/CONTRIBUTING.md#L59-L72) - [Exact PR head](https://github.com/boykopovar/AnyPS5/commit/b25d8e9725f491fb11b7c2e01c5105481132a74d) - [Linux qualification archive](https://github.com/JJenkx/AnyPS5/releases/download/linux-validation-20261023/math-four-dinkumware-exactheads-linux-20261031.tar.gz) ## Not verified I did not rebuild or rerun C++ tests locally, and did not test the combined tree on current `main`. Console, SDK, title, GPU, and full-suite behavior were not verified in this re-check. ## To get this to a good state Refresh onto current `main` (respecting dependency order), then provide exact-head results for `guest_math`, `guest_math_exact`, and `guest_dinkumware_internals`. I will rerun the relevant source, test, and integration checks on that head.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!10328
No description provided.