fix(libc): compute _FSinh as titles do #12053

Merged
JJenkx merged 6 commits from upstream-pr/12053 into main 2026-11-14 03:43:30 +00:00
JJenkx commented 2026-10-27 17:45:39 +00:00 (Migrated from github.com)

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


What

_FSinh(x, y) used the host's binary64 sinh and rounded the product to float. The libc.prx that titles ship computes it in float instead (PPSA07923, file offset 0x87440). With a = |x|:

range titles' _FSinh
a < 2^-12 a, or a * y when y != 1
a < 0x1.193ea8p-1 (0.549) (a + a·z·c3) / ((z·c1 + c2)·z + 1) · y, where z = a²
a < 4 (expm1f(−a)·(expm1f(a)·0.5) + expm1f(a)) · y
a < 7.7 ((expm1f(−a)·0.5 + 1) · expm1f(a)) · y
above _FExp(&a, y, −1)

The result is then negated for negative x. Special operands keep main's handling, which already followed the binary. _FCosh is unchanged.

8 of the 22 titles in my import audit import _FSinh: PPSA01546, PPSA01826, PPSA02630, PPSA04158, PPSA05106, PPSA06369, PPSA09614 and PPSA09809.

Tested

Current-main integration — 2026-11-04. Head 3e5969c5afee40cfda3b511820ba1a6b87cbeebe includes main b11c7bf84f5d2f636ff60166cc3371bd071e24d5 and preserves previous public commits and attribution/licence notices. Retains the measured _FSinh implementation and fixtures; the earlier #11262/#11266 overlap-order note remains cleared as already resolved.

Linux x86-64, GCC 16.2.1, Ninja Release, BUILD_TESTING=ON: rebuilt actual libc/Ampr and selected executables. guest_math, guest_math_exact, guest_dinkumware_internals each pass 3/3 (9 runtime passes, zero skips); public_headers, conventions and whitespace checks pass. Pinned main passes all 17 selected baseline groups 3/3 (51 passes) plus headers. Before/after dependency checks agree: 34 recursive trees and 31,551 tracked blobs, zero errors; the update=none QuickJS test262 corpus is explicitly excluded from these library inputs.

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

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

Current-head Linux verification: 69038db75f0ea94a864d8a0c8a9c6bbfab96179e, against main 4f41f4c375f5abb487dbd184fbc150f31994d762. Linux 7.2.11 x86-64, GCC 16.2.1, Release, ASan off, bundled dependencies.

Rebuilt guest_math_tests, guest_math_exact_tests and guest_dinkumware_internals_tests from this clean head in an isolated build. 3/3 CTest groups pass, zero skips/failures. Loader checks confirm all three use that build's freshly built unpatched libc.prx.

cmake --build build --target guest_math_tests guest_math_exact_tests guest_dinkumware_internals_tests -j4
ctest --test-dir build -R '^guest_(math|math_exact|dinkumware_internals)$' --output-on-failure

Current merge previews against main, #11262 and #11266 are clean. The reviewer confirmed the current function changes are disjoint; the old request for additional landing-order agreement is resolved. Both formerly listed prerequisites have merged; no open prerequisite remains. This follow-up verifies the library tests; console/title-module, Windows and performance comparisons retain their earlier tested pins.

Exact-head Linux results, JUnit and loader/merge evidence, SHA-256 7f58a115d8eefe406acd35fe08f3dec3341255aef03fa6b853b10109a25437f6.

Earlier Windows/module comparison, tested head 68e4e4e8df

Windows 11 Enterprise 10.0.22621, Ryzen 9 5950X, WinLibs GCC 15.2.0 UCRT r7, Ninja, Release, BUILD_TESTING=ON. The head is 68e4e4e8df, on main 228cd64b53 plus #10222 and #12037.

Comparison: a scratch loader runs the decrypted libc.prx of 11 titles natively. It calls their _FSinh by NID and compares the result bits and errno with this build's.

  • Inputs: 600,000 calls per title, a third each of random bit patterns, ±100 and ±1. One call in 50 uses 0, ±inf, NaN, a subnormal or a branch boundary.
  • Multipliers: 1, 0.5, −1, 2 and 3, plus 0, inf, NaN, 1e-30 and 1e30 on one call in 7.
titles main this PR
PPSA04158, PPSA05916, PPSA07923, PPSA20423 135,446 0, errno 0
PPSA09614, PPSA13934, PPSA25636, PPSA26528, PPSA33655, PPSA34008, PPSA35169 132,079 18,406, errno 0

The second group's libc.prx contracts multiply-adds to FMA, which portable C++ doesn't reproduce. Its remaining differences are one ulp, mostly in the expm1f range.

Tests in guest_math:

  • New check: CheckScaledSineBits pins titles' bits for 10 arguments where main was one ulp off. Each of the five branches gets at least one.
  • Changed check: CheckScaledHyperbolic requires _FSinh within 2 ulp of a long double reference. That rule is stricter than titles are. With a subnormal multiplier, _FExp rounds factor·y before scaling, so titles lose most of the mantissa. For example, _FSinh(10, 2^-149) is 0x00002000 where the reference is 0x00002b05. Near overflow, titles overflow early.
    • 28 distinct points of that grid (109 counting signs) fall outside the rule for both PPSA07923 and PPSA05916.
    • This build matches titles on all 970 grid points.
    • Those 28 points are now required to equal the measured bits exactly, with sign symmetry, and every other point keeps the 2-ulp rule.
    • The grid and its rule came from #8023, which was checked against a long double reference rather than titles. Its two headline cases still hold and match titles: _FSinh(90, 1e-20) is finite (0x5ea95d6f) and _FSinh(90, 0) is +0.

Results:

  • guest_math and guest_dinkumware_internals pass in each of 3 runs on the head.
  • Negative control: with the previous commit's Math.cpp and these tests, guest_math fails at _FSinh(0x1.9p+6, 0x1.16c2p-133).
  • python tools/check_conventions.py --base origin/main and git diff --check pass.

Scope of that earlier comparison: no console, Linux/macOS module comparison, or flush-to-zero modes. The debt entry keeps the earlier PS5 libSceLibcInternal note.

Earlier Linux source-preservation/control artifacts retain their original pins: October 28, October 30.

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
  • Generic behaviour, not specific to one title
  • Depends on: none (#10222 merged 2026-11-01; #12037 previously merged at f653b562a9a9)
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes

AI-assisted (Claude Code).

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5038543132 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/12053). Originally posted by [JJenkx](https://github.com/JJenkx) on 2026-10-27T17:45:39Z. --- ### What `_FSinh(x, y)` used the host's binary64 `sinh` and rounded the product to float. The `libc.prx` that titles ship computes it in float instead (PPSA07923, file offset 0x87440). With `a = |x|`: | range | titles' `_FSinh` | |---|---| | `a < 2^-12` | `a`, or `a * y` when `y != 1` | | `a < 0x1.193ea8p-1` (0.549) | `(a + a·z·c3) / ((z·c1 + c2)·z + 1) · y`, where `z = a²` | | `a < 4` | `(expm1f(−a)·(expm1f(a)·0.5) + expm1f(a)) · y` | | `a < 7.7` | `((expm1f(−a)·0.5 + 1) · expm1f(a)) · y` | | above | `_FExp(&a, y, −1)` | The result is then negated for negative `x`. Special operands keep `main`'s handling, which already followed the binary. `_FCosh` is unchanged. 8 of the 22 titles in my import audit import `_FSinh`: PPSA01546, PPSA01826, PPSA02630, PPSA04158, PPSA05106, PPSA06369, PPSA09614 and PPSA09809. ### Tested **Current-main integration — 2026-11-04.** Head `3e5969c5afee40cfda3b511820ba1a6b87cbeebe` includes main `b11c7bf84f5d2f636ff60166cc3371bd071e24d5` and preserves previous public commits and attribution/licence notices. Retains the measured _FSinh implementation and fixtures; the earlier #11262/#11266 overlap-order note remains cleared as already resolved. Linux x86-64, GCC 16.2.1, Ninja Release, BUILD_TESTING=ON: rebuilt actual libc/Ampr and selected executables. `guest_math`, `guest_math_exact`, `guest_dinkumware_internals` each pass 3/3 (**9 runtime passes, zero skips**); `public_headers`, conventions and whitespace checks pass. Pinned main passes all 17 selected baseline groups 3/3 (51 passes) plus headers. Before/after dependency checks agree: 34 recursive trees and 31,551 tracked blobs, zero errors; the update=none QuickJS test262 corpus is explicitly excluded from these library inputs. Source/parent/gitlink proofs, library/test hashes, raw logs/JUnit and head-leased push receipts: [qualification archive](https://github.com/JJenkx/AnyPS5/releases/download/linux-validation-20261023/math-libc10-mainb11c-linux-20261104.tar.gz), SHA-256 `7c347f620951ad6f39068740750949212c6412815da094a46a96eca1d15c8bbf` (download verified). Older platform, stress, negative-control and reference reports retain their original pins; no new Windows/macOS, full-suite, SDK-module, console, title/GPU or performance claim. AI-assisted: yes (Codex). Earlier dated qualifications below retain their original source/platform pins. **Current-head Linux verification:** `69038db75f0ea94a864d8a0c8a9c6bbfab96179e`, against main `4f41f4c375f5abb487dbd184fbc150f31994d762`. Linux 7.2.11 x86-64, GCC 16.2.1, Release, ASan off, bundled dependencies. Rebuilt `guest_math_tests`, `guest_math_exact_tests` and `guest_dinkumware_internals_tests` from this clean head in an isolated build. **3/3 CTest groups pass, zero skips/failures.** Loader checks confirm all three use that build's freshly built unpatched `libc.prx`. ```sh cmake --build build --target guest_math_tests guest_math_exact_tests guest_dinkumware_internals_tests -j4 ctest --test-dir build -R '^guest_(math|math_exact|dinkumware_internals)$' --output-on-failure ``` Current merge previews against main, #11262 and #11266 are clean. The reviewer confirmed the current function changes are disjoint; the old request for additional landing-order agreement is resolved. Both formerly listed prerequisites have merged; no open prerequisite remains. This follow-up verifies the library tests; console/title-module, Windows and performance comparisons retain their earlier tested pins. [Exact-head Linux results, JUnit and loader/merge evidence](https://github.com/JJenkx/AnyPS5/releases/download/linux-validation-20261023/pr12053-linux-exact69038-20261103.tar.gz), SHA-256 `7f58a115d8eefe406acd35fe08f3dec3341255aef03fa6b853b10109a25437f6`. <details> <summary>Earlier Windows/module comparison, tested head 68e4e4e8df</summary> Windows 11 Enterprise 10.0.22621, Ryzen 9 5950X, WinLibs GCC 15.2.0 UCRT r7, Ninja, Release, `BUILD_TESTING=ON`. The head is `68e4e4e8df`, on `main` `228cd64b53` plus #10222 and #12037. **Comparison:** a scratch loader runs the decrypted `libc.prx` of 11 titles natively. It calls their `_FSinh` by NID and compares the result bits and `errno` with this build's. - **Inputs:** 600,000 calls per title, a third each of random bit patterns, ±100 and ±1. One call in 50 uses 0, ±inf, NaN, a subnormal or a branch boundary. - **Multipliers:** 1, 0.5, −1, 2 and 3, plus 0, inf, NaN, 1e-30 and 1e30 on one call in 7. | titles | `main` | this PR | |---|---|---| | PPSA04158, PPSA05916, PPSA07923, PPSA20423 | 135,446 | **0**, `errno` 0 | | PPSA09614, PPSA13934, PPSA25636, PPSA26528, PPSA33655, PPSA34008, PPSA35169 | 132,079 | 18,406, `errno` 0 | The second group's `libc.prx` contracts multiply-adds to FMA, which portable C++ doesn't reproduce. Its remaining differences are one ulp, mostly in the `expm1f` range. **Tests in `guest_math`:** - **New check:** `CheckScaledSineBits` pins titles' bits for 10 arguments where `main` was one ulp off. Each of the five branches gets at least one. - **Changed check:** `CheckScaledHyperbolic` requires `_FSinh` within 2 ulp of a long double reference. That rule is stricter than titles are. With a subnormal multiplier, `_FExp` rounds `factor·y` before scaling, so titles lose most of the mantissa. For example, `_FSinh(10, 2^-149)` is `0x00002000` where the reference is `0x00002b05`. Near overflow, titles overflow early. - 28 distinct points of that grid (109 counting signs) fall outside the rule for both PPSA07923 and PPSA05916. - This build matches titles on all 970 grid points. - Those 28 points are now required to equal the measured bits exactly, with sign symmetry, and every other point keeps the 2-ulp rule. - The grid and its rule came from #8023, which was checked against a long double reference rather than titles. Its two headline cases still hold and match titles: `_FSinh(90, 1e-20)` is finite (`0x5ea95d6f`) and `_FSinh(90, 0)` is `+0`. **Results:** - `guest_math` and `guest_dinkumware_internals` pass in each of 3 runs on the head. - **Negative control:** with the previous commit's `Math.cpp` and these tests, `guest_math` fails at `_FSinh(0x1.9p+6, 0x1.16c2p-133)`. - `python tools/check_conventions.py --base origin/main` and `git diff --check` pass. **Scope of that earlier comparison:** no console, Linux/macOS module comparison, or flush-to-zero modes. The debt entry keeps the earlier PS5 `libSceLibcInternal` note. </details> Earlier Linux source-preservation/control artifacts retain their original pins: [October 28](https://github.com/JJenkx/AnyPS5/releases/download/linux-validation-20261023/cpu-http-qualified-linux-20261028.tar.gz), [October 30](https://github.com/JJenkx/AnyPS5/releases/download/linux-validation-20261023/owned-math9-maine471-linux-20261030-repeat2.tar.gz). ### 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 - [x] Generic behaviour, not specific to one title - [x] Depends on: none (#10222 merged 2026-11-01; #12037 previously merged at `f653b562a9a9`) - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes AI-assisted (Claude Code).
MarcZX10 commented 2026-10-27 18:36:51 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-27T18:36:51Z.

Review: DISMISSED


Reviewed head 68e4e4e8df2d367ae1fffd27ff620cf8eeb450c9. The algorithm is backed by substantial title-binary comparisons and focused tests in the description, but I did not rerun the numerical suite locally in this pass.\n\nThere is a repository-rule blocker: both open #11262 and #11266 modify core/libs/prx/libc/src/Math.cpp, and an exact pairwise git merge-tree against each current head reports a content conflict with this PR in that file. The checklist lists #10222 and #12037 as dependencies but does not mention either conflicting PR. Please coordinate merge order with those authors and record the agreed dependency/order on the checklist, then rebase and verify the combined changes/tests. This is required by CONTRIBUTING.md for overlapping PRs.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5672432758 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/12053#pullrequestreview-5672432758). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-27T18:36:51Z. **Review:** DISMISSED --- Reviewed head `68e4e4e8df2d367ae1fffd27ff620cf8eeb450c9`. The algorithm is backed by substantial title-binary comparisons and focused tests in the description, but I did not rerun the numerical suite locally in this pass.\n\nThere is a repository-rule blocker: both open #11262 and #11266 modify `core/libs/prx/libc/src/Math.cpp`, and an exact pairwise `git merge-tree` against each current head reports a content conflict with this PR in that file. The checklist lists #10222 and #12037 as dependencies but does not mention either conflicting PR. Please coordinate merge order with those authors and record the agreed dependency/order on the checklist, then rebase and verify the combined changes/tests. This is required by `CONTRIBUTING.md` for overlapping PRs.
MarcZX10 commented 2026-11-03 09:03:14 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-03T09:03:14Z.

Review: COMMENTED


Re-checked — new head, overlap blocker cleared

The current heads merge cleanly, and the three PRs change different math exports, so the earlier overlap/order blocker no longer applies; I am not approving while the current checks and exact-head test evidence are incomplete.

What I ran

Reviewed all three changed files at head 69038db75f0ea94a864d8a0c8a9c6bbfab96179e against base 4f41f4c375f5abb487dbd184fbc150f31994d762. I checked current main and pairwise previews against #11262 head 0ecffe5ca55fe9aaa55cc30056cee882ad4fac47 and #11266 head 4c1383e2645bf2143dc15dbb1467f6d3bf6cf708. Environment: Debian 12, Linux x86_64, Python 3.11.2, Git 2.39.5. No compiler or local test binary was used.

python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 12053 --output-dir /tmp/anyps5-pr-precheck/12053-20261103T-current
python3 tools/pr_abi_audit.py --repo /marc/AnyPS5 --base 4f41f4c375f5abb487dbd184fbc150f31994d762 --head 69038db75f0ea94a864d8a0c8a9c6bbfab96179e --json
git merge-tree --write-tree 4f41f4c375f5abb487dbd184fbc150f31994d762 refs/review/session-20261103T-current/11262
git merge-tree --write-tree 4f41f4c375f5abb487dbd184fbc150f31994d762 refs/review/session-20261103T-current/11266
git merge-tree --write-tree refs/review/session-20261103T-current/12053 refs/review/session-20261103T-current/11262
git merge-tree --write-tree refs/review/session-20261103T-current/12053 refs/review/session-20261103T-current/11266
gh pr checks 12053 --repo boykopovar/AnyPS5

Results

Check Result Note
Diff and conventions passed Whitespace and repository convention checks passed.
ABI audit passed No lexical findings; ABI correctness is not certified.
Merge previews passed Current main and both pairwise previews are clean.
Test registration passed CMake registers GuestMath.cpp as guest_math.
Applicable hosted checks not run Library portability passed; conventions, eligibility, labels and report are pending.
Exact-head math tests not run No local build; the PR's latest reported runs predate head 69038db.
Unedited check output

Precheck summary:

diff_check: passed
conventions_and_pr_template: passed
changed_export_abi_audit: failed — tools/pr_abi_audit.py is absent from the isolated PR snapshot
live_dependency_and_mergeability_check: passed
test_quality_heuristics: failed — tools/pr_test_quality.py is absent from the isolated PR snapshot

The two helper-script failures above are from missing workspace-only scripts in the isolated snapshot. I ran the ABI audit directly; it returned "status": "passed" and "findings": []. The test-quality helper warning for GuestMath.cpp was manually checked against the exact-head core/libs/prx/libc/CMakeLists.txt, which registers it as guest_math.

Merge preview outputs (exit=0 means clean):

current-main + #11262: 112edc3f49115dbcc5bb157f57da8af5e7bb80e0; exit=0
current-main + #11266: 809d6f4e7016b405a3ced4b11613d1e3fa73ad5d; exit=0
#12053 + #11262: 8ec882f320504db9fa219939159773a5591598fb; exit=0
#12053 + #11266: cd34a5c764d048768703d189852cc54d12a59c07; exit=0

Exact-head CMake registration:

add_test_executable(guest_math_tests ${LIBS_INCLUDE_DIR}/tests/GuestMath.cpp)
target_include_directories(guest_math_tests PRIVATE ${LIBS_INCLUDE_DIR})
target_link_libraries(guest_math_tests PRIVATE libc)
configure_windows_unwind(guest_math_tests)
add_test(NAME guest_math COMMAND guest_math_tests)

Hosted status at the final refresh:

library-portability	pass	1m42s	https://github.com/boykopovar/AnyPS5/actions/runs/41605087828/job/125812806853
conventions	pending	0	https://github.com/boykopovar/AnyPS5/actions/runs/41605083066/job/125812793226
eligibility	pending	0	https://github.com/boykopovar/AnyPS5/actions/runs/41605087846/job/125812807743
labels	pending	0	https://github.com/boykopovar/AnyPS5/actions/runs/41605083083/job/125812793248
report	pending	0	https://github.com/boykopovar/AnyPS5/actions/runs/41605087830/job/125812806364

Negative control

Not run; this follow-up changes no code and no test. I did not independently rerun the numeric comparisons or the test's baseline control.

Findings

Blocking

None found in the current three-file source diff or the tested merge previews.

Non-blocking

  • The prior conflict with #11262 and #11266 is no longer present on their current heads. The current changes are to _FSinh, atanl and exp2l; the latter PR already includes #11262. Because no changed lines or exports overlap and the pairwise previews are clean, no additional landing-order confirmation is required under the repository's overlap rule.
  • The PR description still says that merge-order agreement with #11262/#11266 is pending. Please update that stale note. The current exact-head numerical runs have not been reported; the latest test qualification names earlier head 340d12e.
  • Four applicable hosted checks remain pending. I will not approve until they complete successfully.

Sources

Not verified

I did not build or run guest_math, guest_math_exact or guest_dinkumware_internals on 69038db; I did not run the numeric comparison against title binaries, a console, or non-default flush-to-zero modes. The PR's earlier reported test runs are author-provided and do not cover this current head.

To get this to a good state

Please update the stale merge-order note and provide exact-head results for the focused math tests, then let the pending checks finish. I will re-check the head and statuses before deciding whether approval is warranted.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5749449035 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/12053#pullrequestreview-5749449035). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-03T09:03:14Z. **Review:** COMMENTED --- # Re-checked — new head, overlap blocker cleared The current heads merge cleanly, and the three PRs change different math exports, so the earlier overlap/order blocker no longer applies; I am not approving while the current checks and exact-head test evidence are incomplete. ## What I ran Reviewed all three changed files at head `69038db75f0ea94a864d8a0c8a9c6bbfab96179e` against base `4f41f4c375f5abb487dbd184fbc150f31994d762`. I checked current `main` and pairwise previews against #11262 head `0ecffe5ca55fe9aaa55cc30056cee882ad4fac47` and #11266 head `4c1383e2645bf2143dc15dbb1467f6d3bf6cf708`. Environment: Debian 12, Linux x86_64, Python 3.11.2, Git 2.39.5. No compiler or local test binary was used. ```sh python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 12053 --output-dir /tmp/anyps5-pr-precheck/12053-20261103T-current python3 tools/pr_abi_audit.py --repo /marc/AnyPS5 --base 4f41f4c375f5abb487dbd184fbc150f31994d762 --head 69038db75f0ea94a864d8a0c8a9c6bbfab96179e --json git merge-tree --write-tree 4f41f4c375f5abb487dbd184fbc150f31994d762 refs/review/session-20261103T-current/11262 git merge-tree --write-tree 4f41f4c375f5abb487dbd184fbc150f31994d762 refs/review/session-20261103T-current/11266 git merge-tree --write-tree refs/review/session-20261103T-current/12053 refs/review/session-20261103T-current/11262 git merge-tree --write-tree refs/review/session-20261103T-current/12053 refs/review/session-20261103T-current/11266 gh pr checks 12053 --repo boykopovar/AnyPS5 ``` ## Results | Check | Result | Note | |---|---|---| | Diff and conventions | passed | Whitespace and repository convention checks passed. | | ABI audit | passed | No lexical findings; ABI correctness is not certified. | | Merge previews | passed | Current main and both pairwise previews are clean. | | Test registration | passed | CMake registers `GuestMath.cpp` as `guest_math`. | | Applicable hosted checks | not run | Library portability passed; conventions, eligibility, labels and report are pending. | | Exact-head math tests | not run | No local build; the PR's latest reported runs predate head `69038db`. | <details> <summary>Unedited check output</summary> Precheck summary: ```text diff_check: passed conventions_and_pr_template: passed changed_export_abi_audit: failed — tools/pr_abi_audit.py is absent from the isolated PR snapshot live_dependency_and_mergeability_check: passed test_quality_heuristics: failed — tools/pr_test_quality.py is absent from the isolated PR snapshot ``` The two helper-script failures above are from missing workspace-only scripts in the isolated snapshot. I ran the ABI audit directly; it returned `"status": "passed"` and `"findings": []`. The test-quality helper warning for `GuestMath.cpp` was manually checked against the exact-head `core/libs/prx/libc/CMakeLists.txt`, which registers it as `guest_math`. Merge preview outputs (`exit=0` means clean): ```text current-main + #11262: 112edc3f49115dbcc5bb157f57da8af5e7bb80e0; exit=0 current-main + #11266: 809d6f4e7016b405a3ced4b11613d1e3fa73ad5d; exit=0 #12053 + #11262: 8ec882f320504db9fa219939159773a5591598fb; exit=0 #12053 + #11266: cd34a5c764d048768703d189852cc54d12a59c07; exit=0 ``` Exact-head CMake registration: ```text add_test_executable(guest_math_tests ${LIBS_INCLUDE_DIR}/tests/GuestMath.cpp) target_include_directories(guest_math_tests PRIVATE ${LIBS_INCLUDE_DIR}) target_link_libraries(guest_math_tests PRIVATE libc) configure_windows_unwind(guest_math_tests) add_test(NAME guest_math COMMAND guest_math_tests) ``` Hosted status at the final refresh: ```text library-portability pass 1m42s https://github.com/boykopovar/AnyPS5/actions/runs/41605087828/job/125812806853 conventions pending 0 https://github.com/boykopovar/AnyPS5/actions/runs/41605083066/job/125812793226 eligibility pending 0 https://github.com/boykopovar/AnyPS5/actions/runs/41605087846/job/125812807743 labels pending 0 https://github.com/boykopovar/AnyPS5/actions/runs/41605083083/job/125812793248 report pending 0 https://github.com/boykopovar/AnyPS5/actions/runs/41605087830/job/125812806364 ``` </details> ## Negative control Not run; this follow-up changes no code and no test. I did not independently rerun the numeric comparisons or the test's baseline control. ## Findings ### Blocking None found in the current three-file source diff or the tested merge previews. ### Non-blocking - The prior conflict with #11262 and #11266 is no longer present on their current heads. The current changes are to `_FSinh`, `atanl` and `exp2l`; the latter PR already includes #11262. Because no changed lines or exports overlap and the pairwise previews are clean, no additional landing-order confirmation is required under the repository's overlap rule. - The PR description still says that merge-order agreement with #11262/#11266 is pending. Please update that stale note. The current exact-head numerical runs have not been reported; the latest test qualification names earlier head `340d12e`. - Four applicable hosted checks remain pending. I will not approve until they complete successfully. ## Sources - [`_FSinh` implementation at the reviewed head](https://github.com/boykopovar/AnyPS5/blob/69038db75f0ea94a864d8a0c8a9c6bbfab96179e/core/libs/prx/libc/src/Math.cpp#L370-L429) - [Measured `_FSinh` cases at the reviewed head](https://github.com/boykopovar/AnyPS5/blob/69038db75f0ea94a864d8a0c8a9c6bbfab96179e/core/libs/tests/GuestMath.cpp#L1939-L2025) - [Test registration at the reviewed head](https://github.com/boykopovar/AnyPS5/blob/69038db75f0ea94a864d8a0c8a9c6bbfab96179e/core/libs/prx/libc/CMakeLists.txt#L701-L705) - [Repository overlap rule at the reviewed base](https://github.com/boykopovar/AnyPS5/blob/4f41f4c375f5abb487dbd184fbc150f31994d762/CONTRIBUTING.md#L71-L72) - [Current #11262 head](https://github.com/boykopovar/AnyPS5/commit/0ecffe5ca55fe9aaa55cc30056cee882ad4fac47) and [current #11266 head](https://github.com/boykopovar/AnyPS5/commit/4c1383e2645bf2143dc15dbb1467f6d3bf6cf708) ## Not verified I did not build or run `guest_math`, `guest_math_exact` or `guest_dinkumware_internals` on `69038db`; I did not run the numeric comparison against title binaries, a console, or non-default flush-to-zero modes. The PR's earlier reported test runs are author-provided and do not cover this current head. ## To get this to a good state Please update the stale merge-order note and provide exact-head results for the focused math tests, then let the pending checks finish. I will re-check the head and statuses before deciding whether approval is warranted.
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!12053
No description provided.