fix(libc): compute exp2l with FreeBSD msun's ld80 code as the bundled libc.prx does #11266

Merged
AlexFigas merged 7 commits from upstream-pr/11266 into main 2026-11-13 15:11:24 +00:00
AlexFigas commented 2026-10-25 23:07:51 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by AlexFigas on 2026-10-25T23:07:51Z.


What

exp2l called the host std::exp2, which differed from the console's result on 7,539,279 of 20 million random arguments, about 38%. This PR replaces it with FreeBSD msun's ld80 s_exp2l.c, the exp2l of the libc.prx that PPSA21564 bundles (0x46a50, the library's own code). The binary follows s_exp2l.c step by step:

  • Special exponents. An exponent of 0x7fff gives 0 for −∞ (sign set, mantissa 1 << 63) and x + x otherwise. From 0x400d, x ≥ 16384 returns +∞. x ≤ -16446 returns twom10000 * twom10000, with twom10000 read from .data at run time.
  • Near zero. At exponent 0x3fbd and below, the result is 1 + x.
  • Reduction. x + redux uses redux = 0x1.8p63/128 (the float 0x5bc00000). The low mantissa word plus 64 gives the 7-bit table index and k = (int)i0 >> 7. Then z = x - ((x + redux) - redux).
  • Result. r = t_lo + (t_hi + t_lo)*z*(P1 + z*(P2 + … + z*P6)) + t_hi, where t_hi/t_lo come from the 256-double tbl at 0x1622a0 and P1–P6 are doubles. It is scaled by 2^k, by r*2*2^16383 for k == 16384, or by 2^(k+10000) * twom10000 below k == -16381.

The table and coefficients are taken from the binary as exact hex-float literals. The table and P2–P6 are the s_exp2l.c values; P1 is not. The source has the long double P1 = LD80C(0xb17217f7d1cf79ac, -1, …), while the binary holds the double 0x1.62e42fefa39efp-1, and the port uses the binary's. Two behaviours follow the binary rather than the source's intent:

  • The overflow path returns a constant +∞. The compiler folded huge * huge, so FE_OVERFLOW is not raised.
  • No path sets errno.

x87 precision. s_exp2l.c wraps the computation in ENTERI()/RETURNI(), but those set the precision only on i386 and are empty on amd64 (math_private.h). The binary's exp2l accordingly has no instruction that reads or sets the x87 control word, so it computes at the caller's precision, as the port already did: it needed no change for 53 bits.

exp2l gets a debt entry like acosl's and atanl's. The remaining host-computed entry now records what I found in that binary: expl, logl, log10l, sinhl and coshl there are thin wrappers over Dinkumware's _LExp, _LLog, _LSinh and _LCosh, not msun code.

Licence. ld80/s_exp2l.c's notice is copied verbatim directly above its table, which moved next to exp2l so that one notice covers both, as Math.cpp already does for the msun code of sinh.

Tested

Head 1d907ed73b merges current main a221a742da, which has #11262 (and #11260), into the approved branch without a conflict, so this PR is now only the exp2l commit. The PR's diff of Math.cpp, GuestMath.cpp and libc.md against main is line for line the same as 3d2cd44d81's against #11262's head 1dfac78f90.

  • Windows, this head. Windows 11, WinLibs GCC 15.2.0 (x86_64-ucrt-posix-seh, r7), Release, BUILD_TESTING=ON, Ninja: guest_math, guest_math_elementary and guest_math_exact pass 3 runs each.
  • Conventions, this head. python3 tools/check_conventions.py --base origin/main passes, and git diff --check is clean.

The runs below are on Ubuntu 24.04 under WSL2 (GCC 13.3, Release), head 3d2cd44d81, which merges #11262's head 1dfac78f90 (with main 813f46cd68) into the previous head 4c1383e264, without a conflict. 4c1383e264 had merged #11262's head 0ecffe5ca5 (with main a4eca2a056) into f8a43f4245, without a conflict either. f8a43f4245 had merged #11262's head 6479c72ac1 (with main e0caf13600) into 7116579fc3:

  • This head's libc.prx. Against the binary, 5,000,000 arguments of every kind (overflow, the subnormal range, ±∞, NaNs and non-canonical encodings included) at each of 64, 53 and 24 bits, under each rounding mode, give the same result, NaN bits, errno and flags, and the control word is unchanged after every call (60,000,000 in all).
  • Native comparison (the port's code compiled into the harness, before this head). I used the harness from #11260, this time also mapping the .data segment, because twom10000 lives there. It ran 20,000,000 random arguments of either sign with magnitudes from 2^-79 to 2^15, weighted towards the overflow and denormal ranges, plus the exponent edges 0x3fbc–0x3fbe, 0x3ffe–0x4000, 0x400b–0x400e, 0x7ffe and 0x7fff. The port gives the same 80 bits as that binary on all of them (0 mismatches) at each of 64-, 53- and 24-bit precision (control words 0x37f, 0x27f and 0x07f). wachi35676 found that swapping only P1 for the source's long double changes 1,442,132 of 10,000,000 random results, so this run is also what shows the binary's P1 is the double.
  • guest_math passes (3 runs). It gains CheckExp2l, 24 known-answer pairs from that binary. They cover ±0, the 1 + x cutoff, both table halves, 2^16383.99…, overflow, the subnormal tail down to 0, ±∞, NaN, and four arguments the host gets wrong, for example 0xf30567547a34c162:3ffe → 0xf728f2c7a229ee69:3fff where the host gives …67. Nine arguments, including exp2l(0.75), π, 2^16383.99… and a subnormal result, also run at 53 bits through #11260's ExtendedBitsAt53Bits; each must give the binary's 53-bit result and leave the control word unchanged. At 53 bits the reduction is coarser and the binary's results move far from the 64-bit ones (exp2l(0.75) is 0xd744ea8956fc0000:3fff instead of 0xd744fccad69d6af4:3fff), which the port reproduces. The existing exp2l checks still pass.
  • Conventions. python3 tools/check_conventions.py --base origin/main passes, and git diff --check is clean.
  • Overlap. On 1d907ed73b, python3 tools/pr_overlap.py --branch fix/libc-exp2l-msun-ld80 reports only #18110 (opened on November 10, after this PR), which replaces the host logl and log10l lines next to the exp2l line this PR replaces in Math.cpp and edits the same host-computed entry in libc.md (L89). The two do not change the same functions; whichever lands second keeps the other's lines. This PR was opened and approved first, so I have not added a dependency. oberonlift's #15802 stack has been closed. The other pull requests the tool could not compare conflict with main already.

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
  • Generic behaviour, not specific to one title
  • Depends on: none (#11262 has merged)
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5009620513 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11266). Originally posted by [AlexFigas](https://github.com/AlexFigas) on 2026-10-25T23:07:51Z. --- ### What `exp2l` called the host `std::exp2`, which differed from the console's result on 7,539,279 of 20 million random arguments, about 38%. This PR replaces it with FreeBSD msun's ld80 [`s_exp2l.c`](https://github.com/freebsd/freebsd-src/blob/9f0432041b8fb69832f10c32da50a67f34feeb61/lib/msun/ld80/s_exp2l.c), the `exp2l` of the `libc.prx` that PPSA21564 bundles (0x46a50, the library's own code). The binary follows `s_exp2l.c` step by step: - **Special exponents.** An exponent of 0x7fff gives 0 for −∞ (sign set, mantissa `1 << 63`) and `x + x` otherwise. From 0x400d, `x ≥ 16384` returns +∞. `x ≤ -16446` returns `twom10000 * twom10000`, with `twom10000` read from `.data` at run time. - **Near zero.** At exponent `0x3fbd` and below, the result is `1 + x`. - **Reduction.** `x + redux` uses `redux` = `0x1.8p63/128` (the float `0x5bc00000`). The low mantissa word plus 64 gives the 7-bit table index and `k = (int)i0 >> 7`. Then `z = x - ((x + redux) - redux)`. - **Result.** `r = t_lo + (t_hi + t_lo)*z*(P1 + z*(P2 + … + z*P6)) + t_hi`, where `t_hi`/`t_lo` come from the 256-double `tbl` at 0x1622a0 and `P1`–`P6` are `double`s. It is scaled by `2^k`, by `r*2*2^16383` for `k == 16384`, or by `2^(k+10000) * twom10000` below `k == -16381`. The table and coefficients are taken from the binary as exact hex-float literals. The table and `P2`–`P6` are the `s_exp2l.c` values; `P1` is not. The source has the long double `P1 = LD80C(0xb17217f7d1cf79ac, -1, …)`, while the binary holds the `double` `0x1.62e42fefa39efp-1`, and the port uses the binary's. Two behaviours follow the binary rather than the source's intent: - The overflow path returns a constant +∞. The compiler folded `huge * huge`, so `FE_OVERFLOW` is not raised. - No path sets `errno`. **x87 precision.** `s_exp2l.c` wraps the computation in `ENTERI()`/`RETURNI()`, but those set the precision only on i386 and are empty on amd64 ([`math_private.h`](https://github.com/freebsd/freebsd-src/blob/9f0432041b8fb69832f10c32da50a67f34feeb61/lib/msun/src/math_private.h#L335-L362)). The binary's `exp2l` accordingly has no instruction that reads or sets the x87 control word, so it computes at the caller's precision, as the port already did: it needed no change for 53 bits. `exp2l` gets a debt entry like `acosl`'s and `atanl`'s. The remaining host-computed entry now records what I found in that binary: `expl`, `logl`, `log10l`, `sinhl` and `coshl` there are thin wrappers over Dinkumware's `_LExp`, `_LLog`, `_LSinh` and `_LCosh`, not msun code. **Licence.** `ld80/s_exp2l.c`'s notice is copied verbatim directly above its table, which moved next to `exp2l` so that one notice covers both, as `Math.cpp` already does for the msun code of `sinh`. ### Tested <!-- OS, title or homebrew, what was checked. "Not tested" is a valid answer. A performance change: the summary lines of main and of this PR from the same machine and scene, with the traces attached, captured as the Performance report issue form describes. --> Head 1d907ed73b merges current `main` a221a742da, which has #11262 (and #11260), into the approved branch without a conflict, so this PR is now only the `exp2l` commit. The PR's diff of `Math.cpp`, `GuestMath.cpp` and `libc.md` against `main` is line for line the same as 3d2cd44d81's against #11262's head 1dfac78f90. - **Windows, this head.** Windows 11, WinLibs GCC 15.2.0 (x86_64-ucrt-posix-seh, r7), Release, `BUILD_TESTING=ON`, Ninja: `guest_math`, `guest_math_elementary` and `guest_math_exact` pass 3 runs each. - **Conventions, this head.** `python3 tools/check_conventions.py --base origin/main` passes, and `git diff --check` is clean. The runs below are on Ubuntu 24.04 under WSL2 (GCC 13.3, Release), head 3d2cd44d81, which merges #11262's head 1dfac78f90 (with `main` 813f46cd68) into the previous head 4c1383e264, without a conflict. 4c1383e264 had merged #11262's head 0ecffe5ca5 (with `main` a4eca2a056) into f8a43f4245, without a conflict either. f8a43f4245 had merged #11262's head 6479c72ac1 (with `main` e0caf13600) into 7116579fc3: - **This head's `libc.prx`.** Against the binary, 5,000,000 arguments of every kind (overflow, the subnormal range, ±∞, NaNs and non-canonical encodings included) at each of 64, 53 and 24 bits, under each rounding mode, give the same result, NaN bits, `errno` and flags, and the control word is unchanged after every call (60,000,000 in all). - **Native comparison** (the port's code compiled into the harness, before this head). I used the harness from #11260, this time also mapping the `.data` segment, because `twom10000` lives there. It ran 20,000,000 random arguments of either sign with magnitudes from 2^-79 to 2^15, weighted towards the overflow and denormal ranges, plus the exponent edges `0x3fbc`–`0x3fbe`, `0x3ffe`–`0x4000`, `0x400b`–`0x400e`, `0x7ffe` and `0x7fff`. The port gives the same 80 bits as that binary on all of them (0 mismatches) at each of 64-, 53- and 24-bit precision (control words 0x37f, 0x27f and 0x07f). wachi35676 found that swapping only `P1` for the source's long double changes 1,442,132 of 10,000,000 random results, so this run is also what shows the binary's `P1` is the double. - **`guest_math` passes** (3 runs). It gains `CheckExp2l`, 24 known-answer pairs from that binary. They cover ±0, the `1 + x` cutoff, both table halves, `2^16383.99…`, overflow, the subnormal tail down to 0, ±∞, NaN, and four arguments the host gets wrong, for example `0xf30567547a34c162:3ffe → 0xf728f2c7a229ee69:3fff` where the host gives `…67`. Nine arguments, including `exp2l(0.75)`, π, `2^16383.99…` and a subnormal result, also run at 53 bits through #11260's `ExtendedBitsAt53Bits`; each must give the binary's 53-bit result and leave the control word unchanged. At 53 bits the reduction is coarser and the binary's results move far from the 64-bit ones (`exp2l(0.75)` is `0xd744ea8956fc0000:3fff` instead of `0xd744fccad69d6af4:3fff`), which the port reproduces. The existing `exp2l` checks still pass. - **Conventions.** `python3 tools/check_conventions.py --base origin/main` passes, and `git diff --check` is clean. - **Overlap.** On 1d907ed73b, `python3 tools/pr_overlap.py --branch fix/libc-exp2l-msun-ld80` reports only #18110 (opened on November 10, after this PR), which replaces the host `logl` and `log10l` lines next to the `exp2l` line this PR replaces in `Math.cpp` and edits the same host-computed entry in `libc.md` (L89). The two do not change the same functions; whichever lands second keeps the other's lines. This PR was opened and approved first, so I have not added a dependency. oberonlift's #15802 stack has been closed. The other pull requests the tool could not compare conflict with `main` already. ### 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 - [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 - [x] Generic behaviour, not specific to one title - [x] Depends on: none (#11262 has merged) - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes
MarcZX10 commented 2026-10-25 23:14:53 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-25T23:14:53Z.

Review: CHANGES_REQUESTED


The implementation follows the cited s_exp2l.c reduction and polynomial, but it omits the source's ENTERI()/RETURNI() floating-point environment scope around the computation. In FreeBSD's ld80 implementation those macros ensure the calculation runs with the expected x87 precision control and restores the caller's state. This matters here: the repository's libc debt entry documents that guest threads can enter with 53-bit x87 precision (0x27f), while the algorithm needs 64-bit precision for its advertised bit-for-bit match; inputs such as exp2l(0.75) can therefore diverge even though the reported native comparison ran under the harness's default environment. The new CheckExp2l cases do not set a non-default control word or verify it is restored. Please add a scoped precision-control implementation with a regression test that runs representative cases under 53-bit precision and checks the original control word is restored, or document evidence that all callers are guaranteed 64-bit precision. The hosted checks are passing, but the macOS relinker, Windows relinker and macOS Intel write-watch jobs are still pending; Linux and Windows product jobs are skipped. I have not independently run the author's local comparison.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5645833673 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11266#pullrequestreview-5645833673). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-25T23:14:53Z. **Review:** CHANGES_REQUESTED --- The implementation follows the cited `s_exp2l.c` reduction and polynomial, but it omits the source's `ENTERI()`/`RETURNI()` floating-point environment scope around the computation. In FreeBSD's ld80 implementation those macros ensure the calculation runs with the expected x87 precision control and restores the caller's state. This matters here: the repository's libc debt entry documents that guest threads can enter with 53-bit x87 precision (`0x27f`), while the algorithm needs 64-bit precision for its advertised bit-for-bit match; inputs such as `exp2l(0.75)` can therefore diverge even though the reported native comparison ran under the harness's default environment. The new `CheckExp2l` cases do not set a non-default control word or verify it is restored. Please add a scoped precision-control implementation with a regression test that runs representative cases under 53-bit precision and checks the original control word is restored, or document evidence that all callers are guaranteed 64-bit precision. The hosted checks are passing, but the macOS relinker, Windows relinker and macOS Intel write-watch jobs are still pending; Linux and Windows product jobs are skipped. I have not independently run the author's local comparison.
MarcZX10 commented 2026-10-27 11:00:48 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-27T11:00:48Z.

Review: CHANGES_REQUESTED


The PR includes a broad comparison against the bundled libc.prx, with overflow/denormal edges, multiple precision settings and known-answer test cases. I am not approving this submitted head yet: its merge-base is 68cc9d4e75, whereas current main is 3fea2a937b. Main has changed Math.cpp, GuestMath.cpp and docs/dev/debt/libc.md since that base, and the Tested section names main 5b5d24cb22 rather than the submitted head's base.

This PR is stacked on #11262 and declares that dependency. Please rebase the stack onto current main after #11262 (and its dependencies) is integrated, rerun guest_math on the updated head, and align the test report with that exact commit. I found no independent arithmetic regression in the reviewed portion; current-tree integration is still unverified.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5665960338 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11266#pullrequestreview-5665960338). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-27T11:00:48Z. **Review:** CHANGES_REQUESTED --- The PR includes a broad comparison against the bundled libc.prx, with overflow/denormal edges, multiple precision settings and known-answer test cases. I am not approving this submitted head yet: its merge-base is 68cc9d4e754d533e63a2eaab17ff80de18918269, whereas current main is 3fea2a937ba9fbab2f06c51691fe0c5763659aa3. Main has changed Math.cpp, GuestMath.cpp and docs/dev/debt/libc.md since that base, and the Tested section names main 5b5d24cb22 rather than the submitted head's base. This PR is stacked on #11262 and declares that dependency. Please rebase the stack onto current main after #11262 (and its dependencies) is integrated, rerun guest_math on the updated head, and align the test report with that exact commit. I found no independent arithmetic regression in the reviewed portion; current-tree integration is still unverified.
MarcZX10 commented 2026-10-27 15:24:03 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-27T15:24:03Z.

Review: CHANGES_REQUESTED


I reviewed the current head d85d265eb824dec162c8b92eab3bf47d272c8d89. The reduction/table path and documented differences from FreeBSD source are explicit and are backed by the bundled-binary comparisons in the PR. I found no separate arithmetic defect.

Independent focused check: with #11260, #11262, and #11266 changes applied to the clean #11213-based Release checkout, guest_math_tests built and guest_math passed three runs. This is focused Linux validation on the stack's 1089f2b base plus unrelated #11213 exception changes, not a build of the current integrated main tree.

The Windows relinker check is red. Its CTest log reports five timeouts: check_compile_modes_test_library_directory_values_can_look_like_modes, conventions_bom_shebang, and three conventions_env_reference tests. The relinker-specific tests in that same job passed; these failures are in unrelated tooling/conventions tests, but the check still needs a clean rerun. The stack is also based on 1089f2b while current main is 2ee8e97 (30 commits ahead), with #11260/#11262 and their declared dependencies still open. Please rerun the failed Windows job and update/retest the stack after its dependencies land before approval.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5669696342 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11266#pullrequestreview-5669696342). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-27T15:24:03Z. **Review:** CHANGES_REQUESTED --- I reviewed the current head d85d265eb824dec162c8b92eab3bf47d272c8d89. The reduction/table path and documented differences from FreeBSD source are explicit and are backed by the bundled-binary comparisons in the PR. I found no separate arithmetic defect. Independent focused check: with #11260, #11262, and #11266 changes applied to the clean #11213-based Release checkout, guest_math_tests built and guest_math passed three runs. This is focused Linux validation on the stack's 1089f2b base plus unrelated #11213 exception changes, not a build of the current integrated main tree. The Windows relinker check is red. Its CTest log reports five timeouts: check_compile_modes_test_library_directory_values_can_look_like_modes, conventions_bom_shebang, and three conventions_env_reference tests. The relinker-specific tests in that same job passed; these failures are in unrelated tooling/conventions tests, but the check still needs a clean rerun. The stack is also based on 1089f2b while current main is 2ee8e97 (30 commits ahead), with #11260/#11262 and their declared dependencies still open. Please rerun the failed Windows job and update/retest the stack after its dependencies land before approval.
MarcZX10 commented 2026-10-27 15:26:06 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-27T15:26:06Z.

Review: CHANGES_REQUESTED


I reviewed the current head d85d265eb824dec162c8b92eab3bf47d272c8d89. The reduction/table path and the documented differences from the FreeBSD source are explicit and supported by the bundled-binary evidence. I found no arithmetic defect.

Independent focused check: applied the #11260, #11262, and #11266 Math.cpp, GuestMath.cpp, and debt changes to a clean #11213-based Release checkout, built guest_math_tests, and ran guest_math three times; all passed. I did not rerun the author's differential harness. Current main merges cleanly, and the paths this stack edits have not changed since its 1089f2b base; the earlier branch-currency concern is resolved.

The Windows relinker check remains red. Its completed CTest log shows five timeouts in check_compile_modes_test_library_directory_values_can_look_like_modes and unrelated conventions tests (conventions_bom_shebang plus three conventions_env_reference cases); the relinker tests passed. Please rerun this Windows job and confirm the timeout failures clear before approval. The PR's declared stack/dependencies should land in the stated order.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5669736527 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11266#pullrequestreview-5669736527). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-27T15:26:06Z. **Review:** CHANGES_REQUESTED --- I reviewed the current head d85d265eb824dec162c8b92eab3bf47d272c8d89. The reduction/table path and the documented differences from the FreeBSD source are explicit and supported by the bundled-binary evidence. I found no arithmetic defect. Independent focused check: applied the #11260, #11262, and #11266 Math.cpp, GuestMath.cpp, and debt changes to a clean #11213-based Release checkout, built guest_math_tests, and ran guest_math three times; all passed. I did not rerun the author's differential harness. Current main merges cleanly, and the paths this stack edits have not changed since its 1089f2b base; the earlier branch-currency concern is resolved. The Windows relinker check remains red. Its completed CTest log shows five timeouts in check_compile_modes_test_library_directory_values_can_look_like_modes and unrelated conventions tests (conventions_bom_shebang plus three conventions_env_reference cases); the relinker tests passed. Please rerun this Windows job and confirm the timeout failures clear before approval. The PR's declared stack/dependencies should land in the stated order.
MarcZX10 commented 2026-10-27 19:10:37 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-27T19:10:37Z.

Review: APPROVED


The Windows rerun on the unchanged head d85d265eb824dec162c8b92eab3bf47d272c8d89 resolves the prior CI blocker: the relinker job now passes 370/370 tests, including the earlier timeouts, and the Windows job passes. The macOS and Ubuntu test jobs also pass; Linux product is skipped by this PR's job filters. My focused local guest_math build and repeated runs passed in the earlier review, and the current-main merge preview is clean.

I found no arithmetic defect in the exp2l implementation. Approved; keep the declared dependency on #11262 and land this stack in order.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5672844776 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11266#pullrequestreview-5672844776). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-27T19:10:37Z. **Review:** APPROVED --- The Windows rerun on the unchanged head d85d265eb824dec162c8b92eab3bf47d272c8d89 resolves the prior CI blocker: the relinker job now passes 370/370 tests, including the earlier timeouts, and the Windows job passes. The macOS and Ubuntu test jobs also pass; Linux product is skipped by this PR's job filters. My focused local guest_math build and repeated runs passed in the earlier review, and the current-main merge preview is clean. I found no arithmetic defect in the exp2l implementation. Approved; keep the declared dependency on #11262 and land this stack in order.
MarcZX10 commented 2026-10-28 16:51:54 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-28T16:51:54Z.

Review: APPROVED


Re-reviewed exact current head 394be8ce3e9042cfd9ea42729e083839e8decb8d. The rebase moves the already-reviewed atan/exp2 tables next to their functions and adds the FreeBSD invtrig.c, s_atanl.c and s_exp2l.c copyright/license notices; the notices match release/11.4.0 and the table values/algorithm remain intact. The declared #11262 dependency is preserved. Hosted Ubuntu, Windows, macOS, ASan, register-context and write-watch checks pass; Linux product is skipped by workflow filters. The author reports three exact-head guest_math runs plus title-binary differential results. No PS5 title run is claimed.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5686450824 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11266#pullrequestreview-5686450824). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-28T16:51:54Z. **Review:** APPROVED --- Re-reviewed exact current head `394be8ce3e9042cfd9ea42729e083839e8decb8d`. The rebase moves the already-reviewed atan/exp2 tables next to their functions and adds the FreeBSD `invtrig.c`, `s_atanl.c` and `s_exp2l.c` copyright/license notices; the notices match release/11.4.0 and the table values/algorithm remain intact. The declared #11262 dependency is preserved. Hosted Ubuntu, Windows, macOS, ASan, register-context and write-watch checks pass; Linux product is skipped by workflow filters. The author reports three exact-head `guest_math` runs plus title-binary differential results. No PS5 title run is claimed.
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!11266
No description provided.