fix(libc): compute erf and erfc with FreeBSD msun's algorithm, as titles' libc.prx does #10321

Merged
JJenkx merged 9 commits from upstream-pr/10321 into main 2026-11-11 01:56:22 +00:00
JJenkx commented 2026-10-23 17:41:51 +00:00 (Migrated from github.com)

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


What

erf and erfc returned the host's functions, so their last bits and erfc's errno depended on the host. For example:

  • erf(0x3ff6c0af626eed43) is 0x3fee94f29b14a377 in the bundled libc.prx and 0x3fee94f29b14a376 on Windows (UCRT);
  • erfc(0x400ff61d33b37096) is 0x3e5139a57ee24a43 in the bundled libc.prx and 0x3e5139a57ee24a40 on Windows.

On 4 million random arguments, UCRT differs from the titles' copies on 613,611 for erf and 352,691 for erfc.

The titles' copies (NIDs oXgaqGVnW5o and arIKLlen2sg) are FreeBSD msun's s_erf.c, computed through msun's exp. The double functions are the same in 11.4 and in the older fdlibm version that log10 and log2 follow. Both functions now compute that algorithm over this file's exp_nid_postfix, the msun port from #10234, which this PR is stacked on:

  • the infinities and NaN;
  • the small-argument shortcuts, at 2^-28 for erf and 2^-56 for erfc;
  • the pp/qq ratio below 0.84375;
  • the pa/qa ratio up to 1.25;
  • the two ra/sa and rb/sb tail ratios, split at about 1/0.35, over the two exp calls with x split at its low word;
  • the saturated returns: ±(1 - tiny) from 6 for erf, 2 - tiny from −6 down and tiny * tiny from 28 up for erfc, with tiny read at run time.

The two functions share the ratio helpers and the tail.

errno: msun sets none itself. The titles' erf never sets it. The titles' erfc sets ERANGE exactly where one of its two inner exp calls underflows, which happens for arguments just below 28. For example, erfc(0x403bffffffffffff) returns 0 with ERANGE, while erfc(28) returns tiny * tiny and leaves errno alone. Calling the exported exp port gives the same rule.

Tested

Exact-head Linux qualification (2026-11-02): unchanged public head ba092462d3fc1269d45367e64cc4ef3a7f399d6a, rebuilt libc and the math/exact/Dinkumware executables. All three groups pass three times (9 passes, zero skips); public headers, conventions and whitespace pass. Module/test hashes, source/dependency verification, logs and JUnit are in the verified evidence, SHA-256 525ccb31a5d3d0f5adced5fda58818d8432f06c0afa7290139adb60ae6664b54. This is new independent Linux qualification; prior Windows/reference measurements keep their stated source pins.

Rebased without merge commits onto main 73f4f7e06e4f210a8c6570e335fd654dc0a86134. Tested exact head b93bef15c035d172436c8b8809ca587d3bc1ad53 on Linux x86-64 (AMD Ryzen 9 7950X, GCC 16.2.1, Ninja Release, BUILD_TESTING=ON, bundled dependencies). This branch contains the refreshed #10234 parent followed by the erf/erfc topic; That parent has since merged as #10234 (2026-11-03); no open prerequisite remains.

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. #10325 and #10328 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 functions are rewritten, as #9668, #5036 and the sinhf entry did
  • Generic behaviour, not specific to one title
  • Depends on: none (#10234 merged 2026-11-03)
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4986891349 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/10321). Originally posted by [JJenkx](https://github.com/JJenkx) on 2026-10-23T17:41:51Z. --- ### What `erf` and `erfc` returned the host's functions, so their last bits and `erfc`'s `errno` depended on the host. For example: - `erf(0x3ff6c0af626eed43)` is `0x3fee94f29b14a377` in the bundled `libc.prx` and `0x3fee94f29b14a376` on Windows (UCRT); - `erfc(0x400ff61d33b37096)` is `0x3e5139a57ee24a43` in the bundled `libc.prx` and `0x3e5139a57ee24a40` on Windows. On 4 million random arguments, UCRT differs from the titles' copies on 613,611 for `erf` and 352,691 for `erfc`. The titles' copies (NIDs `oXgaqGVnW5o` and `arIKLlen2sg`) are FreeBSD msun's [`s_erf.c`](https://github.com/freebsd/freebsd-src/blob/release/11.4.0/lib/msun/src/s_erf.c), computed through msun's `exp`. The double functions are the same in 11.4 and in the older fdlibm version that `log10` and `log2` follow. Both functions now compute that algorithm over this file's `exp_nid_postfix`, the msun port from #10234, which this PR is stacked on: - the infinities and NaN; - the small-argument shortcuts, at 2^-28 for `erf` and 2^-56 for `erfc`; - the `pp`/`qq` ratio below 0.84375; - the `pa`/`qa` ratio up to 1.25; - the two `ra`/`sa` and `rb`/`sb` tail ratios, split at about 1/0.35, over the two `exp` calls with `x` split at its low word; - the saturated returns: `±(1 - tiny)` from 6 for `erf`, `2 - tiny` from −6 down and `tiny * tiny` from 28 up for `erfc`, with `tiny` read at run time. The two functions share the ratio helpers and the tail. **`errno`:** msun sets none itself. The titles' `erf` never sets it. The titles' `erfc` sets `ERANGE` exactly where one of its two inner `exp` calls underflows, which happens for arguments just below 28. For example, `erfc(0x403bffffffffffff)` returns 0 with `ERANGE`, while `erfc(28)` returns `tiny * tiny` and leaves `errno` alone. Calling the exported `exp` port gives the same rule. ### Tested **Exact-head Linux qualification (2026-11-02):** unchanged public head `ba092462d3fc1269d45367e64cc4ef3a7f399d6a`, rebuilt libc and the math/exact/Dinkumware executables. All three groups pass three times (9 passes, zero skips); public headers, conventions and whitespace pass. Module/test hashes, source/dependency verification, logs and JUnit are in [the verified evidence](https://github.com/JJenkx/AnyPS5/releases/download/linux-validation-20261023/math-six-main-a4eca-linux-extra10321-20261102.tar.gz), SHA-256 `525ccb31a5d3d0f5adced5fda58818d8432f06c0afa7290139adb60ae6664b54`. This is new independent Linux qualification; prior Windows/reference measurements keep their stated source pins. <!-- codex-math-main73f-20261031-10321 --> Rebased without merge commits onto main `73f4f7e06e4f210a8c6570e335fd654dc0a86134`. Tested exact head `b93bef15c035d172436c8b8809ca587d3bc1ad53` on Linux x86-64 (AMD Ryzen 9 7950X, GCC 16.2.1, Ninja Release, BUILD_TESTING=ON, bundled dependencies). This branch contains the refreshed #10234 parent followed by the erf/erfc topic; That parent has since merged as #10234 (2026-11-03); no open prerequisite remains. 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 - [x] Based on current `main`; no other open PR implements the same functions. #10325 and #10328 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 functions are rewritten, as #9668, #5036 and the `sinhf` entry did - [x] Generic behaviour, not specific to one title - [x] Depends on: none (#10234 merged 2026-11-03) - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes
harisibrar1 commented 2026-10-24 12:47:43 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by harisibrar1 on 2026-10-24T12:47:43Z.

Review: APPROVED


Checked against main 39a36bbec8 and FreeBSD release/11.4.0 lib/msun/src/s_erf.c and e_exp.c:

  • It still merges cleanly into current main. Main still forwards exp, erf and erfc to the host, so this isn't duplicated.
  • All the constants match s_erf.c and e_exp.c exactly. The ra/sa and rb/sb split points (0x4006DB6E for erf, 0x4006DB6D for erfc) and the hoisted x < -6 and |x| >= 28 returns in erfc are equivalent to msun's control flow.
  • I transcribed s_erf.c and e_exp.c into Python on my own, adding ERANGE only in exp's overflow/underflow branches. It reproduces every expected value in CheckExpConsoleBits (29) and CheckErfConsoleBits (35), including the erfc ERANGE at 0x403bffffffffffff. It also confirms that plain msun gives exp(1) = 0x4005bf0a8b14576a, as the debt entry says.
  • One small note: the branch carries #10234's exp commit (11209ebedd). If #10234 changes again before merging, the two copies will need to be kept in sync.

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

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5638288475 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/10321#pullrequestreview-5638288475). Originally posted by [harisibrar1](https://github.com/harisibrar1) on 2026-10-24T12:47:43Z. **Review:** APPROVED --- Checked against main 39a36bbec8 and FreeBSD release/11.4.0 lib/msun/src/s_erf.c and e_exp.c: - It still merges cleanly into current main. Main still forwards `exp`, `erf` and `erfc` to the host, so this isn't duplicated. - All the constants match `s_erf.c` and `e_exp.c` exactly. The ra/sa and rb/sb split points (0x4006DB6E for erf, 0x4006DB6D for erfc) and the hoisted `x < -6` and `|x| >= 28` returns in erfc are equivalent to msun's control flow. - I transcribed `s_erf.c` and `e_exp.c` into Python on my own, adding ERANGE only in exp's overflow/underflow branches. It reproduces every expected value in `CheckExpConsoleBits` (29) and `CheckErfConsoleBits` (35), including the erfc ERANGE at 0x403bffffffffffff. It also confirms that plain msun gives `exp(1)` = 0x4005bf0a8b14576a, as the debt entry says. - One small note: the branch carries #10234's exp commit (11209ebedd). If #10234 changes again before merging, the two copies will need to be kept in sync. Reviewed with AI assistance (Claude Code); the checks above were run locally on my machine.
MarcZX10 commented 2026-10-24 21:09:57 +00:00 (Migrated from github.com)

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

Review: DISMISSED


The arithmetic review and exact-head Linux tests are substantial, and the earlier review already checked the constants and FreeBSD source. I cannot recommend merging this version yet: its merge base is 1e20650, 6,822 commits behind current main, and the #10234 dependency is based on that same old merge base. The hosted product test jobs are skipped, so the three exact-head runs do not establish behavior against current integration. Please refresh #10234 and this dependent branch onto current main, preserve the Depends on: #10234 order, then rerun guest_math and guest_dinkumware_internals on the final head.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5640039811 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/10321#pullrequestreview-5640039811). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-24T21:09:57Z. **Review:** DISMISSED --- The arithmetic review and exact-head Linux tests are substantial, and the earlier review already checked the constants and FreeBSD source. I cannot recommend merging this version yet: its merge base is `1e20650`, 6,822 commits behind current `main`, and the #10234 dependency is based on that same old merge base. The hosted product test jobs are skipped, so the three exact-head runs do not establish behavior against current integration. Please refresh #10234 and this dependent branch onto current `main`, preserve the `Depends on: #10234` order, then rerun `guest_math` and `guest_dinkumware_internals` on the final head.
MarcZX10 commented 2026-10-31 12:55:42 +00:00 (Migrated from github.com)

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

Review: DISMISSED


Re-checked — changes requested

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

What I ran

Reviewed PR head 476e0558339ebf0c423c69e5e32e3ebbb320ed7f 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 10321 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 10321/tests.log
gh api repos/boykopovar/AnyPS5/pulls/10321 --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:5722789804 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/10321#pullrequestreview-5722789804). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-31T12:55:42Z. **Review:** DISMISSED --- # Re-checked — changes requested The new Linux qualification is valid evidence for `476e0558339ebf0c423c69e5e32e3ebbb320ed7f`, but that head is still based on `2227f136…`, not current `main`. ## What I ran Reviewed PR head `476e0558339ebf0c423c69e5e32e3ebbb320ed7f` 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 `10321` 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 10321/tests.log gh api repos/boykopovar/AnyPS5/pulls/10321 --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 #10321 exact head](https://github.com/boykopovar/AnyPS5/commit/476e0558339ebf0c423c69e5e32e3ebbb320ed7f) ## 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:10 +00:00 (Migrated from github.com)

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

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 476e0558339ebf0c423c69e5e32e3ebbb320ed7f (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 10321 test log.

gh api repos/boykopovar/AnyPS5/pulls/10321 --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 10321/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 erf/erfc 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:5722793487 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/10321#pullrequestreview-5722793487). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-31T12:57:10Z. **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 `476e0558339ebf0c423c69e5e32e3ebbb320ed7f` (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 `10321` test log. ```sh gh api repos/boykopovar/AnyPS5/pulls/10321 --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 10321/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 `erf/erfc` 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/476e0558339ebf0c423c69e5e32e3ebbb320ed7f) - [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!10321
No description provided.