fix(libc): compute log2 with fdlibm's algorithm, as titles' libc.prx does #10317

Merged
JJenkx merged 1597 commits from upstream-pr/10317 into main 2026-11-02 10:25:46 +00:00
JJenkx commented 2026-10-23 17:31:27 +00:00 (Migrated from github.com)

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


What

log2 returned the host's log2, so its last bit depended on the host. For example, log2(0x3f3738a98e70dc5c) is 0xc026ecdca3e646fc in the bundled libc.prx and 0xc026ecdca3e646fd on Windows (UCRT). On 20 million random arguments, UCRT's log2 differs from the titles' copy on 93,080.

The titles' copy (NID Y5DhuDKGlnQ) is not FreeBSD 11.4's e_log2.c, which differs from it on 35,914 of 4 million arguments. It is the older fdlibm e_log2.c over the same k_log.h kernel that the bundled library's log10 uses (#10247). log2 now computes it:

  • the same subnormal scaling and normalisation as log10;
  • the shared kernel;
  • the ivln2hi/ivln2lo recombination, with x - 1 split at its low word, plus k.

The kernel was Log10Kernel in #10247. This PR renames it KernelLog, because both functions now call it.

errno: it follows the same rule as the bundled library's log10, measured separately here. EDOM is set for every nonzero argument with the sign bit set: the negative numbers, negative subnormals, -inf and negative NaNs. ±0 return -inf and leave errno alone, and so do positive NaN and +inf. _Log with a negative base calls log2, and its existing test still passes: log2(8) is exactly 3.

Tested

Current-main conflict refresh, 2026-10-27 UTC: exact head 4c2e6155280830aed0c66a43e2d097844a71c3f9 on tested main 74acfad65b3f0fd4eab653f3a3989d298fba1157. Resolved overlapping test/debt context while preserving this branch's authored production/test edits and main's nextafter environment implementation and coverage. Existing prerequisite commits remain in their original series order.

Linux focused rebuild of libc and selected test executables passes guest_math, guest_math_exact, guest_dinkumware_internals, and public_headers, each three times: 12 passes, zero skips. Conventions and whitespace checks pass. Final fetched main cb45ae2ddf6e113a4619e8fed91fe7b9333c5c0f merges cleanly; its later change is an unrelated Windows crash-test pattern, and the executed qualification remains pinned to the stated base. No new Windows, console, GPU, title, full-suite or negative-control run is claimed. Earlier reference/Windows evidence keeps its original pins.

Exact pins, branch patches, preservation proofs, build/test logs, JUnit and lease-push receipts for this refresh batch. SHA-256: e33f98cc467f038af662cc5fa491c3acc1806bb47171cf77b748f0d4d052c1f2; downloaded copy verified.

Historical Linux validation: c44ba39a7bb5b6bf6900d876dd28a7fff6e49283 is directly on current #10247 3b6fd8ded3acddf99c4c67cb9442db492555976c, without the former merge commit or a duplicated older parent. The public log2, log10 and shared KernelLog function bodies are byte-identical to the prior reviewed head. Main/parent expm1 fixtures and debt entries are retained alongside log2. Obsolete manual declarations remain removed in favor of the API headers.

Fresh independent Linux x86-64 / GCC 16.2.1 / Release libc and math builds passed; guest_math and guest_dinkumware_internals each pass three runs. With only production Math.cpp reverted to the direct #10247 parent and the log2 fixture retained, guest_math aborts. Restoring the fix returns both groups to passing and reproduces the original libc library SHA-256 6e0f1db6f63a9e2d08751b2b8710dd661706aa19959031168462d2cfad72b42f. No named assertion is emitted by this Release negative control. Conventions and whitespace pass.

Read-only merge-tree against fetched main 52a8bed576e5c54a7f443728cdf663a080f8f9ed is clean; that merge tree was not rebuilt. Exact-head logs/JUnit/rebase proof and negative/restoration controls, SHA-256 bf0ae4aba56f483f939667425b9346864970f969aaa2cd2cb64ee62d73310875. Windows remains user-paused and was not rerun on this head.

Historical previous-head reports (not rerun on this head):

Independent Windows regression report on the refreshed head (ycbuzi): PR head 54751d9271607a752f481682cfafa6164c1fef21 was cleanly integrated onto main fa515def85 as 9b0ef6d130 on Windows 11 Home 10.0.26200, MinGW-w64 GCC 15.2.0 UCRT r7, Release with BUILD_TESTING=ON. The reporter built libc, guest_math_tests and guest_dinkumware_internals_tests without reported errors or warnings; both focused groups passed twice using ctest --repeat until-fail:2. Their negative control replaced Math.cpp with main's version: guest_math aborted while the Dinkumware group still passed. This is attributed independent integration/regression evidence; original-module matrices and titles were not rerun.

The Windows module comparisons and negative control below are historical evidence from original head 0a2b4c0a7c6b77eb542d95f98902a33dd35dea42; Windows was not rerun on the refreshed commit. The original report's console results mean the supplied titles' bundled libraries executed on the Windows host, not measurements on a physical console.

Windows 11 Enterprise 10.0.22621, Ryzen 9 5950X, WinLibs GCC 15.2.0 UCRT r7, Ninja, Release, BUILD_TESTING=ON, on #10247's head.

  • Comparison: a scratch loader runs the decrypted libc.prx of PPSA07923, PPSA05916 and PPSA13934 natively and supplies __error. It compared their log2 with this PR's code, checking result bits (NaN payloads included) and errno, on:

    • 16 million random arguments per title;
    • 31,165 structured arguments: the integers 1 to 1024 and their reciprocals, the 4,000 floats on each side of 1, 10 and −1, every power of two, every power of ten with two neighbours on each side, and the special values.

    Results:

    • PPSA07923 and PPSA05916: identical bits and errno on all of them.
    • PPSA13934: identical errno. The bits differ on 727 random arguments, because that copy is an FMA-contracted build.
  • guest_math: the new CheckLog2ConsoleBits has 26 cases with the bundled library's results and errno:

    • ±0 and ± the smallest subnormal;
    • the largest subnormal and the smallest normal;
    • 1 and its neighbours, 8 and 0.25;
    • both sides of the |f| < 2^-20 edge;
    • DBL_MAX, ±inf, −1 and NaN payloads of both signs;
    • six arguments where UCRT differs.

    guest_math and guest_dinkumware_internals pass in three runs out of three on the exact head.

  • Negative control: with #10247's Math.cpp and these tests, guest_math aborts in a Require, while guest_dinkumware_internals still passes.

  • python tools/check_conventions.py --base #10247's head, and git diff --check, pass.

  • Order: Actual refreshed #10247 parent 476bb9f96cb5f66b7bfba9de65143f5d2568d24c is an ancestor. Current main is integrated with merge commits; original topic history and shared-kernel arithmetic are preserved.

  • Not tested: macOS, a physical console, floating-point exception flags, and log2l. Original module comparison and negative control were Windows-only; the new Linux build and regression checks are scoped separately above.

Current Linux qualification (2026-10-28)

Rebased onto main 2227f1366188cda5699dd20e2e756a18006a5d4b. Linux CPU validation on 2026-10-28 at 2cf7d26d3c733921cd1757f607cc61a97769143c (Arch Linux 7.2.9, AMD Ryzen 9 7950X, GCC 16.2.1, Ninja Release, BUILD_TESTING=ON).

libc, guest_math_tests and guest_math_exact_tests rebuilt from this exact source. guest_math and guest_math_exact each passed three consecutive runs (6/6, no skips); the same two suites each passed three runs on the pinned main (6/6). Conventions and whitespace checks pass.

Exact source pins, preservation proofs, dependency checks, build logs and JUnit, SHA-256 1176269c9e6948b5252a5db9e660978d7f978fb2d9f4ed6c68bc050b10b5ae68. This is focused Linux CPU qualification; earlier Windows/title/reference measurements retain their original pins. No new title or performance result is claimed.

Current qualification — 2026-10-30

Integrated current main 08a10d225306ad102b57408e2ef7566bcfb829b2 into this existing topic at edceab45c77be9c8d66bef00a6ff15caa2844838. Includes actual refreshed #10247 parent 476bb9f96cb5f66b7bfba9de65143f5d2568d24c. Current-main functions, fixtures, unrelated debt rows and exact dependency gitlinks are preserved; original topic functions and authored commits are retained. The original shared log kernel and both log10/log2 bodies are retained; the redundant byte-identical parent helper is removed.

Rebuilt actual Linux libc and focused test binaries. guest_math, guest_math_exact, guest_dinkumware_internals each passed three consecutive runs (9 runtime passes), plus public_headers; conventions and whitespace checks pass. Pinned main passed all seven selected runtime suites plus the header audit three times (24 runs). This is focused Linux CPU qualification; prior Windows/reference evidence retains its original pins. No new Windows, console, SDK-module, title, GPU or performance claim. AI-assisted: yes.

Evidence: https://github.com/JJenkx/AnyPS5/releases/download/linux-validation-20261023/owned-math6-main08a10-linux-20261030.tar.gz (SHA-256 b984a6334dce65b5c9148e3791ba21605074a5e762ea0f07f96de2f38062ef6e).

Checklist

  • Based on current main; no other open PR implements the same functions
  • 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 fdlibm function is rewritten, as #9668, #5036 and the sinhf entry did
  • Generic behaviour, not specific to one title
  • Depends on: #10247 (actual refreshed parent 476bb9f96cb5f66b7bfba9de65143f5d2568d24c is retained)
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes

AI-assisted (Claude Code).

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4986763523 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/10317). Originally posted by [JJenkx](https://github.com/JJenkx) on 2026-10-23T17:31:27Z. --- ### What `log2` returned the host's `log2`, so its last bit depended on the host. For example, `log2(0x3f3738a98e70dc5c)` is `0xc026ecdca3e646fc` in the bundled `libc.prx` and `0xc026ecdca3e646fd` on Windows (UCRT). On 20 million random arguments, UCRT's `log2` differs from the titles' copy on 93,080. The titles' copy (NID `Y5DhuDKGlnQ`) is not FreeBSD 11.4's `e_log2.c`, which differs from it on 35,914 of 4 million arguments. It is the older fdlibm [`e_log2.c`](https://github.com/freebsd/freebsd-src/blob/59bc2f095289a10b8cfa55cbb2b45c3bd6c2d4ae/lib/msun/src/e_log2.c) over the same [`k_log.h`](https://github.com/freebsd/freebsd-src/blob/59bc2f095289a10b8cfa55cbb2b45c3bd6c2d4ae/lib/msun/src/k_log.h) kernel that the bundled library's `log10` uses (#10247). `log2` now computes it: - the same subnormal scaling and normalisation as `log10`; - the shared kernel; - the `ivln2hi`/`ivln2lo` recombination, with `x - 1` split at its low word, plus `k`. The kernel was `Log10Kernel` in #10247. This PR renames it `KernelLog`, because both functions now call it. **`errno`:** it follows the same rule as the bundled library's `log10`, measured separately here. `EDOM` is set for every nonzero argument with the sign bit set: the negative numbers, negative subnormals, `-inf` and negative NaNs. ±0 return `-inf` and leave `errno` alone, and so do positive NaN and `+inf`. `_Log` with a negative base calls `log2`, and its existing test still passes: `log2(8)` is exactly 3. ### Tested <!-- codex-main-refresh-20261027-pr10317 --> **Current-main conflict refresh, 2026-10-27 UTC:** exact head `4c2e6155280830aed0c66a43e2d097844a71c3f9` on tested main `74acfad65b3f0fd4eab653f3a3989d298fba1157`. Resolved overlapping test/debt context while preserving this branch's authored production/test edits and main's nextafter environment implementation and coverage. Existing prerequisite commits remain in their original series order. Linux focused rebuild of `libc` and selected test executables passes `guest_math`, `guest_math_exact`, `guest_dinkumware_internals`, and `public_headers`, each three times: **12 passes, zero skips**. Conventions and whitespace checks pass. Final fetched main `cb45ae2ddf6e113a4619e8fed91fe7b9333c5c0f` merges cleanly; its later change is an unrelated Windows crash-test pattern, and the executed qualification remains pinned to the stated base. No new Windows, console, GPU, title, full-suite or negative-control run is claimed. Earlier reference/Windows evidence keeps its original pins. [Exact pins, branch patches, preservation proofs, build/test logs, JUnit and lease-push receipts for this refresh batch](https://github.com/JJenkx/AnyPS5/releases/download/linux-validation-20261023/owned-math14-main74acfad-linux-refresh-20261027.tar.gz). SHA-256: `e33f98cc467f038af662cc5fa491c3acc1806bb47171cf77b748f0d4d052c1f2`; downloaded copy verified. Historical Linux validation: `c44ba39a7bb5b6bf6900d876dd28a7fff6e49283` is directly on current #10247 `3b6fd8ded3acddf99c4c67cb9442db492555976c`, without the former merge commit or a duplicated older parent. The public log2, log10 and shared KernelLog function bodies are byte-identical to the prior reviewed head. Main/parent expm1 fixtures and debt entries are retained alongside log2. Obsolete manual declarations remain removed in favor of the API headers. Fresh independent Linux x86-64 / GCC 16.2.1 / Release libc and math builds passed; guest_math and guest_dinkumware_internals each pass three runs. With only production Math.cpp reverted to the direct #10247 parent and the log2 fixture retained, guest_math aborts. Restoring the fix returns both groups to passing and reproduces the original libc library SHA-256 `6e0f1db6f63a9e2d08751b2b8710dd661706aa19959031168462d2cfad72b42f`. No named assertion is emitted by this Release negative control. Conventions and whitespace pass. Read-only merge-tree against fetched main `52a8bed576e5c54a7f443728cdf663a080f8f9ed` is clean; that merge tree was not rebuilt. [Exact-head logs/JUnit/rebase proof and negative/restoration controls](https://github.com/JJenkx/AnyPS5/releases/download/linux-validation-20261023/pr10317-headc44ba39a-current-parent-linux-validation.tar.gz), SHA-256 `bf0ae4aba56f483f939667425b9346864970f969aaa2cd2cb64ee62d73310875`. Windows remains user-paused and was not rerun on this head. Historical previous-head reports (not rerun on this head): **Independent Windows regression report on the refreshed head ([ycbuzi](https://github.com/boykopovar/AnyPS5/pull/10317#issuecomment-6386339937)):** PR head `54751d9271607a752f481682cfafa6164c1fef21` was cleanly integrated onto main `fa515def85` as `9b0ef6d130` on Windows 11 Home 10.0.26200, MinGW-w64 GCC 15.2.0 UCRT r7, Release with `BUILD_TESTING=ON`. The reporter built `libc`, `guest_math_tests` and `guest_dinkumware_internals_tests` without reported errors or warnings; both focused groups passed twice using `ctest --repeat until-fail:2`. Their negative control replaced `Math.cpp` with main's version: `guest_math` aborted while the Dinkumware group still passed. This is attributed independent integration/regression evidence; original-module matrices and titles were not rerun. The Windows module comparisons and negative control below are historical evidence from original head `0a2b4c0a7c6b77eb542d95f98902a33dd35dea42`; Windows was not rerun on the refreshed commit. The original report's console results mean the supplied titles' bundled libraries executed on the Windows host, not measurements on a physical console. Windows 11 Enterprise 10.0.22621, Ryzen 9 5950X, WinLibs GCC 15.2.0 UCRT r7, Ninja, Release, `BUILD_TESTING=ON`, on #10247's head. - **Comparison:** a scratch loader runs the decrypted `libc.prx` of PPSA07923, PPSA05916 and PPSA13934 natively and supplies `__error`. It compared their `log2` with this PR's code, checking result bits (NaN payloads included) and `errno`, on: - 16 million random arguments per title; - 31,165 structured arguments: the integers 1 to 1024 and their reciprocals, the 4,000 floats on each side of 1, 10 and −1, every power of two, every power of ten with two neighbours on each side, and the special values. Results: - PPSA07923 and PPSA05916: identical bits and `errno` on all of them. - PPSA13934: identical `errno`. The bits differ on 727 random arguments, because that copy is an FMA-contracted build. - **`guest_math`:** the new `CheckLog2ConsoleBits` has 26 cases with the bundled library's results and `errno`: - ±0 and ± the smallest subnormal; - the largest subnormal and the smallest normal; - 1 and its neighbours, 8 and 0.25; - both sides of the `|f| < 2^-20` edge; - `DBL_MAX`, ±`inf`, −1 and NaN payloads of both signs; - six arguments where UCRT differs. `guest_math` and `guest_dinkumware_internals` pass in three runs out of three on the exact head. - **Negative control:** with #10247's `Math.cpp` and these tests, `guest_math` aborts in a `Require`, while `guest_dinkumware_internals` still passes. - `python tools/check_conventions.py --base` #10247's head, and `git diff --check`, pass. - **Order:** Actual refreshed #10247 parent `476bb9f96cb5f66b7bfba9de65143f5d2568d24c` is an ancestor. Current main is integrated with merge commits; original topic history and shared-kernel arithmetic are preserved. - **Not tested:** macOS, a physical console, floating-point exception flags, and `log2l`. Original module comparison and negative control were Windows-only; the new Linux build and regression checks are scoped separately above. <!-- codex-math-refresh-20261028-repeat-pr10317 --> ### Current Linux qualification (2026-10-28) Rebased onto `main` `2227f1366188cda5699dd20e2e756a18006a5d4b`. Linux CPU validation on 2026-10-28 at `2cf7d26d3c733921cd1757f607cc61a97769143c` (Arch Linux 7.2.9, AMD Ryzen 9 7950X, GCC 16.2.1, Ninja Release, BUILD_TESTING=ON). `libc`, `guest_math_tests` and `guest_math_exact_tests` rebuilt from this exact source. `guest_math` and `guest_math_exact` each passed three consecutive runs (6/6, no skips); the same two suites each passed three runs on the pinned main (6/6). Conventions and whitespace checks pass. [Exact source pins, preservation proofs, dependency checks, build logs and JUnit](https://github.com/JJenkx/AnyPS5/releases/download/linux-validation-20261023/owned-math25-main2227-linux-20261028-repeat.tar.gz), SHA-256 `1176269c9e6948b5252a5db9e660978d7f978fb2d9f4ed6c68bc050b10b5ae68`. This is focused Linux CPU qualification; earlier Windows/title/reference measurements retain their original pins. No new title or performance result is claimed. <!-- codex-maintenance-20261030-repeat-10317 --> **Current qualification — 2026-10-30** Integrated current main `08a10d225306ad102b57408e2ef7566bcfb829b2` into this existing topic at `edceab45c77be9c8d66bef00a6ff15caa2844838`. Includes actual refreshed #10247 parent `476bb9f96cb5f66b7bfba9de65143f5d2568d24c`. Current-main functions, fixtures, unrelated debt rows and exact dependency gitlinks are preserved; original topic functions and authored commits are retained. The original shared log kernel and both log10/log2 bodies are retained; the redundant byte-identical parent helper is removed. Rebuilt actual Linux libc and focused test binaries. `guest_math`, `guest_math_exact`, `guest_dinkumware_internals` each passed three consecutive runs (9 runtime passes), plus `public_headers`; conventions and whitespace checks pass. Pinned main passed all seven selected runtime suites plus the header audit three times (24 runs). This is focused Linux CPU qualification; prior Windows/reference evidence retains its original pins. No new Windows, console, SDK-module, title, GPU or performance claim. AI-assisted: yes. Evidence: https://github.com/JJenkx/AnyPS5/releases/download/linux-validation-20261023/owned-math6-main08a10-linux-20261030.tar.gz (SHA-256 b984a6334dce65b5c9148e3791ba21605074a5e762ea0f07f96de2f38062ef6e). ### Checklist - [x] Based on current `main`; no other open PR implements the same functions - [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 fdlibm function is rewritten, as #9668, #5036 and the `sinhf` entry did - [x] Generic behaviour, not specific to one title - [x] Depends on: #10247 (actual refreshed parent `476bb9f96cb5f66b7bfba9de65143f5d2568d24c` is retained) - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes AI-assisted (Claude Code).
harisibrar1 commented 2026-10-24 13:08:49 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by harisibrar1 on 2026-10-24T13:08:49Z.

Review: APPROVED


Checked against main 99feaf0eb8 and FreeBSD 59bc2f09 lib/msun/src/e_log2.c / k_log.h:

  • log2_nid_postfix and KernelLog match the cited fdlibm source line by line. two54, ivln2hi/ivln2lo and Lg1–Lg7 are bit-identical to the hex values in the source comments.
  • A separate reimplementation of that reference reproduces all 26 expected values in CheckLog2ConsoleBits. Five of the six "UCRT differs" inputs are not correctly rounded (for example 0x3f3738a98e70dc5c → 0xc026ecdca3e646fc, where correct rounding gives ...46fd), so the test should also catch a revert on a correctly rounding host, not only on UCRT.
  • Small coordination note: #10274 says it lands last in the msun series, but its order list doesn't include this PR. The two conflict additively at the same GuestMath.cpp anchors.
  • It still merges cleanly onto current main, which still returns the host log2.

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

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5638357342 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/10317#pullrequestreview-5638357342). Originally posted by [harisibrar1](https://github.com/harisibrar1) on 2026-10-24T13:08:49Z. **Review:** APPROVED --- Checked against main 99feaf0eb8 and FreeBSD 59bc2f09 `lib/msun/src/e_log2.c` / `k_log.h`: - `log2_nid_postfix` and `KernelLog` match the cited fdlibm source line by line. `two54`, `ivln2hi`/`ivln2lo` and Lg1–Lg7 are bit-identical to the hex values in the source comments. - A separate reimplementation of that reference reproduces all 26 expected values in `CheckLog2ConsoleBits`. Five of the six "UCRT differs" inputs are not correctly rounded (for example `0x3f3738a98e70dc5c` → `0xc026ecdca3e646fc`, where correct rounding gives `...46fd`), so the test should also catch a revert on a correctly rounding host, not only on UCRT. - Small coordination note: #10274 says it lands last in the msun series, but its order list doesn't include this PR. The two conflict additively at the same `GuestMath.cpp` anchors. - It still merges cleanly onto current main, which still returns the host `log2`. Reviewed with AI assistance (Claude Code); the checks above were run locally on my machine.
MarcZX10 commented 2026-10-24 21:12:15 +00:00 (Migrated from github.com)

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

Review: CHANGES_REQUESTED


The prior source comparison and the current reported Linux/Windows exact-head runs provide good coverage of the math path. The remaining blockers are integration/order:

  • This branch and its required #10247 dependency are based on 1e20650, 6,822 commits behind current main. Please refresh #10247 and this dependent branch onto current main; then rerun guest_math and guest_dinkumware_internals on the final head. Hosted product jobs are skipped for these paths.
  • #10274 says it lands last, but its listed order omits #10317 even though #10317 depends on #10247 and both change shared math/test anchors. Please record the intended order there (or explain how the combined resolution preserves the shared kernel and both test calls) so the series can be integrated without dropping this port.
<!-- greyfinch-sync:boykopovar/AnyPS5:review:5640046717 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/10317#pullrequestreview-5640046717). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-24T21:12:15Z. **Review:** CHANGES_REQUESTED --- The prior source comparison and the current reported Linux/Windows exact-head runs provide good coverage of the math path. The remaining blockers are integration/order: - This branch and its required #10247 dependency are based on `1e20650`, 6,822 commits behind current `main`. Please refresh #10247 and this dependent branch onto current `main`; then rerun `guest_math` and `guest_dinkumware_internals` on the final head. Hosted product jobs are skipped for these paths. - #10274 says it lands last, but its listed order omits #10317 even though #10317 depends on #10247 and both change shared math/test anchors. Please record the intended order there (or explain how the combined resolution preserves the shared kernel and both test calls) so the series can be integrated without dropping this port.
MarcZX10 commented 2026-10-30 04:10:05 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-30T04:10:05Z.

Review: APPROVED


Re-checked — new head, looks good

The refreshed head includes its current #10247 prerequisite, resolves the declared #10274 ordering gap, and has focused exact-head Linux evidence; I found no remaining blocker.

What I ran

  • PR head: edceab45c77be9c8d66bef00a6ff15caa2844838; base: current upstream/main 5ecef095b61e7a406b279c97896f3a8a6fbd6353.
  • Merge preview: clean, tree 3245a52c4637f7847dbd2530d1f7ba14b945347c.
  • Confirmed current #10247 head 476bb9f96cb5f66b7bfba9de65143f5d2568d24 is an ancestor of this PR head. The refreshed branch includes main 08a10d225306ad102b57408e2ef7566bcfb829b2; I found no paths changed on current main since then that are also changed by this PR.
  • Commands:
git merge-tree --write-tree upstream/main upstream/pr/10317
git diff --check upstream/main...upstream/pr/10317
python3 tools/check_conventions.py --base upstream/main --head upstream/pr/10317
git merge-base --is-ancestor 476bb9f96cb5f66b7bfba9de65143f5d2568d24 upstream/pr/10317

Results

Check Result
Merge preview Pass; tree 3245a52c4637f7847dbd2530d1f7ba14b945347c.
Diff check Pass; no output.
Conventions Pass; All conventions checks passed.
Dependency and order Pass; the current #10247 head is included, and #10274 now lists #10317 immediately after #10247 in its declared sequence.
Focused Linux validation The author reports guest_math, guest_math_exact, and guest_dinkumware_internals passed three runs each, plus public_headers; the pinned main passed its selected suites and header audit. Exact-head report
Hosted CI Ubuntu/Windows relinker, ASan, register-context, Windows, and policy checks pass; macOS jobs remain queued; product Linux is skipped.
Unedited local command output

git merge-tree --write-tree upstream/main upstream/pr/10317

3245a52c4637f7847dbd2530d1f7ba14b945347c

git diff --check upstream/main...upstream/pr/10317 exited 0 and produced no output.

python3 tools/check_conventions.py --base upstream/main --head upstream/pr/10317

All conventions checks passed.

git merge-base --is-ancestor 476bb9f96cb5f66b7bfba9de65143f5d2568d24 upstream/pr/10317 exited 0.

Not verified

  • I did not build or run tests locally. The focused Linux suites are author-reported; I reviewed the exact pins and current-main delta.
  • macOS and console behavior were not verified in this review.
<!-- greyfinch-sync:boykopovar/AnyPS5:review:5707980387 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/10317#pullrequestreview-5707980387). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-30T04:10:05Z. **Review:** APPROVED --- # Re-checked — new head, looks good The refreshed head includes its current #10247 prerequisite, resolves the declared #10274 ordering gap, and has focused exact-head Linux evidence; I found no remaining blocker. ## What I ran - PR head: `edceab45c77be9c8d66bef00a6ff15caa2844838`; base: current `upstream/main` `5ecef095b61e7a406b279c97896f3a8a6fbd6353`. - Merge preview: clean, tree `3245a52c4637f7847dbd2530d1f7ba14b945347c`. - Confirmed current #10247 head `476bb9f96cb5f66b7bfba9de65143f5d2568d24` is an ancestor of this PR head. The refreshed branch includes main `08a10d225306ad102b57408e2ef7566bcfb829b2`; I found no paths changed on current main since then that are also changed by this PR. - Commands: ```sh git merge-tree --write-tree upstream/main upstream/pr/10317 git diff --check upstream/main...upstream/pr/10317 python3 tools/check_conventions.py --base upstream/main --head upstream/pr/10317 git merge-base --is-ancestor 476bb9f96cb5f66b7bfba9de65143f5d2568d24 upstream/pr/10317 ``` ## Results | Check | Result | |---|---| | Merge preview | Pass; tree `3245a52c4637f7847dbd2530d1f7ba14b945347c`. | | Diff check | Pass; no output. | | Conventions | Pass; `All conventions checks passed.` | | Dependency and order | Pass; the current #10247 head is included, and #10274 now lists #10317 immediately after #10247 in its declared sequence. | | Focused Linux validation | The author reports `guest_math`, `guest_math_exact`, and `guest_dinkumware_internals` passed three runs each, plus `public_headers`; the pinned main passed its selected suites and header audit. [Exact-head report](https://github.com/boykopovar/AnyPS5/pull/10317#issuecomment-6514583732) | | Hosted CI | Ubuntu/Windows relinker, ASan, register-context, Windows, and policy checks pass; macOS jobs remain queued; product Linux is skipped. | <details> <summary>Unedited local command output</summary> `git merge-tree --write-tree upstream/main upstream/pr/10317` ```text 3245a52c4637f7847dbd2530d1f7ba14b945347c ``` `git diff --check upstream/main...upstream/pr/10317` exited 0 and produced no output. `python3 tools/check_conventions.py --base upstream/main --head upstream/pr/10317` ```text All conventions checks passed. ``` `git merge-base --is-ancestor 476bb9f96cb5f66b7bfba9de65143f5d2568d24 upstream/pr/10317` exited 0. </details> ## Not verified - I did not build or run tests locally. The focused Linux suites are author-reported; I reviewed the exact pins and current-main delta. - macOS and console behavior were not verified in this review.
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!10317
No description provided.