feat(libc): export the std::__sce_v2 extended-precision helpers #15336

Merged
Danigamer05 merged 5 commits from upstream-pr/15336 into main 2026-11-17 00:47:26 +00:00
Danigamer05 commented 2026-11-03 00:29:38 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Danigamer05 on 2026-11-03T00:29:38Z.


What

Depends on #14955 and #15099; their commits are the first two here. Only the third commit belongs to this PR. Once those two merge, this branch will be rebased and only that commit will remain.

Export the nineteen std::__sce_v2 Dinkumware extended-precision helpers from libc. They hold a value as a short array of double or float parts.

Export NID Original RVA
_ZNSt8__sce_v28_Xp_setwEPdid 7-gzF0237vw 0xCA760
_ZNSt8__sce_v28_Xp_getwEPKdi 5fmNpHo4cr0 0xCA6E0
_ZNSt8__sce_v28_Xp_setnEPdil K9jt1tdtXvA 0xCAFA0
_ZNSt8__sce_v28_Xp_movxEPdiPKd QoFx93+IPMY 0xCAFC0
_ZNSt8__sce_v28_Xp_addhEPdid wb8ubEA1o7k 0xCA8A0
_ZNSt8__sce_v28_Xp_addxEPdiPKdi QgyliXfKe-A 0xCAFF0
_ZNSt8__sce_v28_Xp_mulhEPdid 3Ve0L5VKidg 0xCAD80
_ZNSt8__sce_v28_Xp_mulxEPdiPKdiS0_ PDE+YRqBekk 0xCB0C0
_ZNSt8__sce_v210_Xp_ldexpxEPdii EdDo9k1Fw2g 0xCB060
_ZNSt8__sce_v29_FXp_setwEPfif p81kEPUMxGc 0xCE4E0
_ZNSt8__sce_v29_FXp_getwEPKfi AXVguf0qb6k 0xCE460
_ZNSt8__sce_v29_FXp_setnEPfil Z9nLH6PFl24 0xCECB0
_ZNSt8__sce_v29_FXp_movxEPfiPKf 6m4z5Xb6DRo 0xCEDD0
_ZNSt8__sce_v29_FXp_addhEPfif u5NXv54Ux8U 0xCE5B0
_ZNSt8__sce_v29_FXp_addxEPfiPKfi 13URvVAuB7Y 0xCEE00
_ZNSt8__sce_v29_FXp_mulhEPfif jJgT41F2+sE 0xCEA90
_ZNSt8__sce_v29_FXp_mulxEPfiPKfiS0_ l9zhpgjwNzE 0xCEED0
_ZNSt8__sce_v211_FXp_ldexpxEPfii bqAsyZ97ux8 0xCEE70
_ZNSt8__sce_v28_FeraiseEi 6qSnCJLe0JE 0xCB600

The behavior comes from the libc.prx bundled with PPSA03671 v01.001.005 (J03848509, SHA-256 483961e086b8a1fffa8138b3c0badf798987fb5f35ec908d828946408be2d8a6).

VersionedExtendedPrecision.cpp follows that module's sequence of operations and calls:

  • Values are split into 26-bit (double) or 12-bit (float) parts with the versioned _Dunscale, _Dint and _Dscale. These come from #15099 and #14955, and are verified there against the same module.
  • _Xp_addh renormalizes the parts, _Xp_mulh buffers up to four partial products, and _Xp_setn for float splits the integer at 10,000.
  • Non-finite results use the unversioned _Dtest and the versioned _Feraise. That _Feraise only sets errno (EDOM for 0x5, ERANGE for 0x18) and raises no floating-point flag.
  • _Xp_ldexpx calls libc's ldexp, as the module does.

Additions and multiplications are issued with their operands in the module's order, because x86 returns the first operand's NaN when both are NaN. Both of _Xp_getw's final sums are computed, as the module computes both before it chooses one. _Xp_mulx reads the second term of its multiplier even when it is given one term, as the module does.

One known difference remains, and the debt entry records it. libc's ldexp uses the host function. It gives the module's values and errno, but raises other SSE and x87 flags than the module's Dinkumware ldexp, so _Xp_ldexpx inherits that difference. Fixing ldexp itself is a separate change; no open PR touches it.

Tested

Windows x86-64, WinLibs GCC 15.2.0, Release, BUILD_TESTING=ON, main 5cb015caaaaf83f8ee431414ee6a457b5b307d49. Exact tested commit: 23e00f1cc011c5c8aecef06c0240e7388345e428.

  • Built libc, libkernel, their NID-patched production libraries and the related tests. All 70 selected CTests pass, among them the new guest_sce_v2_extended_precision, plus guest_sce_v2_binary_scaling, guest_sce_v2_float_helpers, guest_math_exact, guest_dinkumware_float_bits and public_headers.

  • The new test checks 106 double and 105 float cases and eleven _Feraise arguments:

    • setw and getw of finite, extreme, subnormal, zero, infinite and NaN values at every length up to four;
    • setn of 64-bit integers, including both limits;
    • addh across the 26-bit and 12-bit part boundaries, of an infinity of either sign, and of an input recorded from the side-by-side run below;
    • mulh of finite values, NaN, zero and the largest value, including a product of two NaNs with different payloads;
    • addx, mulx with its scratch area, ldexpx with underflow and overflow, and movx.

    Every expected bit pattern and errno was taken from the original module, not from this implementation.

  • The original functions were loaded from the bundled module with its relocations applied. Its __error import was bound to this libc and __stack_chk_guard to a local value; every other import would have stopped the run, and none was called. MXCSR was reset to 0x1F80 and the x87 unit reinitialized before every call.

  • The originals then ran side by side with the patched production library on 18,000,768 calls: 500,000 per function and form for each of two seeds. The inputs were:

    • random and module-built part arrays of every length up to eight, with zeros, subnormals, infinities and NaNs among the parts;
    • random scalars over the whole exponent range;
    • multipliers of up to six parts;
    • exponents and integers over their whole ranges.

    The whole 320-byte work area, the return value, errno, the full MXCSR and the x87 control and status words agree for every call to 18 of the 19 exports. For _Xp_ldexpx, the parts and errno agree in every call, while about half the calls raise other SSE or x87 flags, from ldexp as described above.

  • Negative control: four lines were altered one at a time:

    • the addh part boundary was moved by one;
    • the operands of mulh's first product were swapped;
    • setw's second split used one bit less;
    • _Feraise's ERANGE mask lost one bit.

    The new CTest failed on each. With the four applied together, the side-by-side run flagged 11 of the 19 exports, beyond the known _Xp_ldexpx flags. The source was then restored byte for byte (SHA-256 checked) and rebuilt, and all 70 tests and all 18,000,768 calls passed again.

  • Code conventions and git diff --check pass.

  • tools/pr_overlap.py read 1,712 open PRs at the tested commit. It reports overlap only with #14955 and #15099, whose commits this branch contains. It keeps exit 2 for 24 branches that already conflict with main. None of their added lines contains these exports or names. Merging each with this branch and with main using git merge-tree gives the same conflict blocks, and no block contains a line of this change. The branch also merges cleanly with #15210.

Not tested: Linux, macOS, another SDK, a game, GPU or console. No game compatibility claim. No original module, extracted bytes, harness or log is committed or uploaded.

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: #14955, #15099
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5129685383 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/15336). Originally posted by [Danigamer05](https://github.com/Danigamer05) on 2026-11-03T00:29:38Z. --- ### What **Depends on #14955 and #15099; their commits are the first two here.** Only the third commit belongs to this PR. Once those two merge, this branch will be rebased and only that commit will remain. Export the nineteen `std::__sce_v2` Dinkumware extended-precision helpers from libc. They hold a value as a short array of `double` or `float` parts. | Export | NID | Original RVA | | --- | --- | --- | | `_ZNSt8__sce_v28_Xp_setwEPdid` | `7-gzF0237vw` | `0xCA760` | | `_ZNSt8__sce_v28_Xp_getwEPKdi` | `5fmNpHo4cr0` | `0xCA6E0` | | `_ZNSt8__sce_v28_Xp_setnEPdil` | `K9jt1tdtXvA` | `0xCAFA0` | | `_ZNSt8__sce_v28_Xp_movxEPdiPKd` | `QoFx93+IPMY` | `0xCAFC0` | | `_ZNSt8__sce_v28_Xp_addhEPdid` | `wb8ubEA1o7k` | `0xCA8A0` | | `_ZNSt8__sce_v28_Xp_addxEPdiPKdi` | `QgyliXfKe-A` | `0xCAFF0` | | `_ZNSt8__sce_v28_Xp_mulhEPdid` | `3Ve0L5VKidg` | `0xCAD80` | | `_ZNSt8__sce_v28_Xp_mulxEPdiPKdiS0_` | `PDE+YRqBekk` | `0xCB0C0` | | `_ZNSt8__sce_v210_Xp_ldexpxEPdii` | `EdDo9k1Fw2g` | `0xCB060` | | `_ZNSt8__sce_v29_FXp_setwEPfif` | `p81kEPUMxGc` | `0xCE4E0` | | `_ZNSt8__sce_v29_FXp_getwEPKfi` | `AXVguf0qb6k` | `0xCE460` | | `_ZNSt8__sce_v29_FXp_setnEPfil` | `Z9nLH6PFl24` | `0xCECB0` | | `_ZNSt8__sce_v29_FXp_movxEPfiPKf` | `6m4z5Xb6DRo` | `0xCEDD0` | | `_ZNSt8__sce_v29_FXp_addhEPfif` | `u5NXv54Ux8U` | `0xCE5B0` | | `_ZNSt8__sce_v29_FXp_addxEPfiPKfi` | `13URvVAuB7Y` | `0xCEE00` | | `_ZNSt8__sce_v29_FXp_mulhEPfif` | `jJgT41F2+sE` | `0xCEA90` | | `_ZNSt8__sce_v29_FXp_mulxEPfiPKfiS0_` | `l9zhpgjwNzE` | `0xCEED0` | | `_ZNSt8__sce_v211_FXp_ldexpxEPfii` | `bqAsyZ97ux8` | `0xCEE70` | | `_ZNSt8__sce_v28_FeraiseEi` | `6qSnCJLe0JE` | `0xCB600` | The behavior comes from the `libc.prx` bundled with PPSA03671 v01.001.005 (J03848509, SHA-256 `483961e086b8a1fffa8138b3c0badf798987fb5f35ec908d828946408be2d8a6`). `VersionedExtendedPrecision.cpp` follows that module's sequence of operations and calls: - Values are split into 26-bit (`double`) or 12-bit (`float`) parts with the versioned `_Dunscale`, `_Dint` and `_Dscale`. These come from #15099 and #14955, and are verified there against the same module. - `_Xp_addh` renormalizes the parts, `_Xp_mulh` buffers up to four partial products, and `_Xp_setn` for `float` splits the integer at 10,000. - Non-finite results use the unversioned `_Dtest` and the versioned `_Feraise`. That `_Feraise` only sets `errno` (`EDOM` for 0x5, `ERANGE` for 0x18) and raises no floating-point flag. - `_Xp_ldexpx` calls libc's `ldexp`, as the module does. Additions and multiplications are issued with their operands in the module's order, because x86 returns the first operand's NaN when both are NaN. Both of `_Xp_getw`'s final sums are computed, as the module computes both before it chooses one. `_Xp_mulx` reads the second term of its multiplier even when it is given one term, as the module does. One known difference remains, and the debt entry records it. libc's `ldexp` uses the host function. It gives the module's values and `errno`, but raises other SSE and x87 flags than the module's Dinkumware `ldexp`, so `_Xp_ldexpx` inherits that difference. Fixing `ldexp` itself is a separate change; no open PR touches it. ### 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. --> Windows x86-64, WinLibs GCC 15.2.0, Release, `BUILD_TESTING=ON`, main `5cb015caaaaf83f8ee431414ee6a457b5b307d49`. Exact tested commit: `23e00f1cc011c5c8aecef06c0240e7388345e428`. - Built libc, libkernel, their NID-patched production libraries and the related tests. All 70 selected CTests pass, among them the new `guest_sce_v2_extended_precision`, plus `guest_sce_v2_binary_scaling`, `guest_sce_v2_float_helpers`, `guest_math_exact`, `guest_dinkumware_float_bits` and `public_headers`. - The new test checks 106 `double` and 105 `float` cases and eleven `_Feraise` arguments: - `setw` and `getw` of finite, extreme, subnormal, zero, infinite and NaN values at every length up to four; - `setn` of 64-bit integers, including both limits; - `addh` across the 26-bit and 12-bit part boundaries, of an infinity of either sign, and of an input recorded from the side-by-side run below; - `mulh` of finite values, NaN, zero and the largest value, including a product of two NaNs with different payloads; - `addx`, `mulx` with its scratch area, `ldexpx` with underflow and overflow, and `movx`. Every expected bit pattern and `errno` was taken from the original module, not from this implementation. - The original functions were loaded from the bundled module with its relocations applied. Its `__error` import was bound to this libc and `__stack_chk_guard` to a local value; every other import would have stopped the run, and none was called. MXCSR was reset to `0x1F80` and the x87 unit reinitialized before every call. - The originals then ran side by side with the patched production library on 18,000,768 calls: 500,000 per function and form for each of two seeds. The inputs were: - random and module-built part arrays of every length up to eight, with zeros, subnormals, infinities and NaNs among the parts; - random scalars over the whole exponent range; - multipliers of up to six parts; - exponents and integers over their whole ranges. The whole 320-byte work area, the return value, `errno`, the full MXCSR and the x87 control and status words agree for every call to 18 of the 19 exports. For `_Xp_ldexpx`, the parts and `errno` agree in every call, while about half the calls raise other SSE or x87 flags, from `ldexp` as described above. - Negative control: four lines were altered one at a time: - the `addh` part boundary was moved by one; - the operands of `mulh`'s first product were swapped; - `setw`'s second split used one bit less; - `_Feraise`'s `ERANGE` mask lost one bit. The new CTest failed on each. With the four applied together, the side-by-side run flagged 11 of the 19 exports, beyond the known `_Xp_ldexpx` flags. The source was then restored byte for byte (SHA-256 checked) and rebuilt, and all 70 tests and all 18,000,768 calls passed again. - Code conventions and `git diff --check` pass. - `tools/pr_overlap.py` read 1,712 open PRs at the tested commit. It reports overlap only with #14955 and #15099, whose commits this branch contains. It keeps exit 2 for 24 branches that already conflict with main. None of their added lines contains these exports or names. Merging each with this branch and with main using `git merge-tree` gives the same conflict blocks, and no block contains a line of this change. The branch also merges cleanly with #15210. Not tested: Linux, macOS, another SDK, a game, GPU or console. No game compatibility claim. No original module, extracted bytes, harness or log is committed or uploaded. ### 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: #14955, #15099 - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes
MarcZX10 commented 2026-11-03 00:39:48 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-03T00:39:48Z.

Review: COMMENTED


Reviewed — no blocking findings

The new extended-precision helper implementation and its checked-in test vectors have no substantiated blocking source issue in this review; approval is withheld while required hosted checks remain queued.

What I ran

Reviewed the complete 8-file diff at head 23e00f1cc011c5c8aecef06c0240e7388345e428, based on 7feb37ee3e30e10139b483fb4df689d5b5b69ab8. The no-build merge preview onto that current main tip was clean. Environment: Debian Linux x86_64, Python 3.11.2, Git 2.39.5; GCC 12.2.0 is installed. No local compilation was performed.

git diff --check 7feb37ee3e30e10139b483fb4df689d5b5b69ab8...23e00f1cc011c5c8aecef06c0240e7388345e428
python3 tools/check_conventions.py --base 7feb37ee3e30e10139b483fb4df689d5b5b69ab8 --head 23e00f1cc011c5c8aecef06c0240e7388345e428
python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 15336 --output-dir /tmp/anyps5-pr-precheck/15336-session-20261103
python3 tools/pr_abi_audit.py --repo /marc/AnyPS5 --base 7feb37ee3e30e10139b483fb4df689d5b5b69ab8 --head 23e00f1cc011c5c8aecef06c0240e7388345e428 | grep -E '^(ABI audit:|libc___cxa_finalize:|longjmp_nid_postfix:|setjmp_nid_postfix:|_ZNSt8__sce_v2.*(_Xp_|_FXp_|Feraise))'
python3 tools/pr_test_quality.py --root /marc/AnyPS5 --json core/libs/tests/GuestSceV2BinaryScaling.cpp core/libs/tests/GuestSceV2ExtendedPrecision.cpp core/libs/tests/GuestSceV2FloatHelpers.cpp
gh pr checks 15336 --repo boykopovar/AnyPS5

Results

Check Result Note
Diff and conventions passed No whitespace, template, or convention issue.
Current-base merge preview passed Clean on the reviewed head.
Export declaration audit passed All 19 new exports have declarations and definitions; audit warnings concern unrelated symbols.
Test registration passed All three CTest targets are registered in CMake.
Test-quality heuristic failed Three registration warnings; manual CMake inspection cleared them as false positives.
No-build precheck failed Its isolated snapshot did not contain the workspace-only audit helpers; both were rerun directly.
Hosted checks not run All six applicable jobs were queued at final refresh.
Local build, CTest, negative control not run No exact-head binaries were built. The PR description reports Windows tests and differential runs.
Precheck table and unedited check output

The precheck report’s check table:

Check Status Command / reason
build_and_compile not_applicable The precheck deliberately does not configure, build, or compile AnyPS5.
diff_check passed git diff --check 7feb37ee3e30e10139b483fb4df689d5b5b69ab8...23e00f1cc011c5c8aecef06c0240e7388345e428
conventions_and_pr_template passed /usr/bin/python3 tools/check_conventions.py --base 7feb37ee3e30e10139b483fb4df689d5b5b69ab8 --head 23e00f1cc011c5c8aecef06c0240e7388345e428 --title feat(libc): export the std::__sce_v2 extended-precision helpers --body /tmp/anyps5-pr-precheck/15336-session-20261103/pr-body.md
changed_export_abi_audit failed /usr/bin/python3 tools/pr_abi_audit.py --base 7feb37ee3e30e10139b483fb4df689d5b5b69ab8 --head 23e00f1cc011c5c8aecef06c0240e7388345e428 --json
python_syntax not_applicable No changed Python implementation files.
related_python_unit_tests not_applicable No changed tools/ module has an existing sibling tools/tests/test_<module>.py suite.
python_test_registration not_applicable No changed test_*.py files.
live_dependency_and_mergeability_check passed /usr/bin/python3 /marc/AnyPS5/tools/pr_stack_check.py 15336 --repo boykopovar/AnyPS5 --output-dir /tmp/anyps5-pr-precheck/15336-session-20261103/stack
build_dependent_cpp_tests not_applicable Not run: C++ tests need exact-head binaries, which require a build; the precheck does not build.
test_quality_heuristics failed /usr/bin/python3 /tmp/anyps5-pr-precheck/15336-session-20261103/head-23e00f1cc011-381e9f64/tools/pr_test_quality.py --root /tmp/anyps5-pr-precheck/15336-session-20261103/head-23e00f1cc011-381e9f64 --json core/libs/prx/libc/CMakeLists.txt core/libs/prx/libc/include/Api.hpp core/libs/prx/libc/src/MathExact.cpp core/libs/prx/libc/src/VersionedExtendedPrecision.cpp core/libs/tests/GuestSceV2BinaryScaling.cpp core/libs/tests/GuestSceV2ExtendedPrecision.cpp core/libs/tests/GuestSceV2FloatHelpers.cpp docs/dev/debt/libc.md
negative_controls not_applicable No changed Python test module in tools/ can be run as a no-build base-source control.

The precheck command printed:

/tmp/anyps5-pr-precheck/15336-session-20261103/report.md
/tmp/anyps5-pr-precheck/15336-session-20261103/report.json
Conclusion: checks failed

The isolated helper errors were:

/usr/bin/python3: can't open file '/tmp/anyps5-pr-precheck/15336-session-20261103/head-23e00f1cc011-381e9f64/tools/pr_abi_audit.py': [Errno 2] No such file or directory
/usr/bin/python3: can't open file '/tmp/anyps5-pr-precheck/15336-session-20261103/head-23e00f1cc011-381e9f64/tools/pr_test_quality.py': [Errno 2] No such file or directory

Exact-head convention output:

All conventions checks passed.

Exact-head ABI audit output for the added exports (unrelated audit warnings are shown as printed):

ABI audit: passed_with_warnings
libc___cxa_finalize: nid-alias-differs-from-symbol-hash: Explicit NID H2e8t5ScQGc differs from computed symbol NID z5JcC5WSmyA; verify intentional aliasing.
longjmp_nid_postfix: definition-not-found: No APS5_VABI definition was found in the head tree; check assembly aliases, generated definitions, and platform guards.
setjmp_nid_postfix: definition-not-found: No APS5_VABI definition was found in the head tree; check assembly aliases, generated definitions, and platform guards.
_ZNSt8__sce_v210_Xp_ldexpxEPdii_nid_postfix: NID=EdDo9k1Fw2g declarations=1 definitions=1 aliases=0
_ZNSt8__sce_v211_FXp_ldexpxEPfii_nid_postfix: NID=bqAsyZ97ux8 declarations=1 definitions=1 aliases=0
_ZNSt8__sce_v28_FeraiseEi_nid_postfix: NID=6qSnCJLe0JE declarations=1 definitions=1 aliases=0
_ZNSt8__sce_v28_Xp_addhEPdid_nid_postfix: NID=wb8ubEA1o7k declarations=1 definitions=1 aliases=0
_ZNSt8__sce_v28_Xp_addxEPdiPKdi_nid_postfix: NID=QgyliXfKe-A declarations=1 definitions=1 aliases=0
_ZNSt8__sce_v28_Xp_getwEPKdi_nid_postfix: NID=5fmNpHo4cr0 declarations=1 definitions=1 aliases=0
_ZNSt8__sce_v28_Xp_movxEPdiPKd_nid_postfix: NID=QoFx93+IPMY declarations=1 definitions=1 aliases=0
_ZNSt8__sce_v28_Xp_mulhEPdid_nid_postfix: NID=3Ve0L5VKidg declarations=1 definitions=1 aliases=0
_ZNSt8__sce_v28_Xp_mulxEPdiPKdiS0__nid_postfix: NID=PDE+YRqBekk declarations=1 definitions=1 aliases=0
_ZNSt8__sce_v28_Xp_setnEPdil_nid_postfix: NID=K9jt1tdtXvA declarations=1 definitions=1 aliases=0
_ZNSt8__sce_v28_Xp_setwEPdid_nid_postfix: NID=7-gzF0237vw declarations=1 definitions=1 aliases=0
_ZNSt8__sce_v29_FXp_addhEPfif_nid_postfix: NID=u5NXv54Ux8U declarations=1 definitions=1 aliases=0
_ZNSt8__sce_v29_FXp_addxEPfiPKfi_nid_postfix: NID=13URvVAuB7Y declarations=1 definitions=1 aliases=0
_ZNSt8__sce_v29_FXp_getwEPKfi_nid_postfix: NID=AXVguf0qb6k declarations=1 definitions=1 aliases=0
_ZNSt8__sce_v29_FXp_movxEPfiPKf_nid_postfix: NID=6m4z5Xb6DRo declarations=1 definitions=1 aliases=0
_ZNSt8__sce_v29_FXp_mulhEPfif_nid_postfix: NID=jJgT41F2+sE declarations=1 definitions=1 aliases=0
_ZNSt8__sce_v29_FXp_mulxEPfiPKfiS0__nid_postfix: NID=l9zhpgjwNzE declarations=1 definitions=1 aliases=0
_ZNSt8__sce_v29_FXp_setnEPfil_nid_postfix: NID=Z9nLH6PFl24 declarations=1 definitions=1 aliases=0
_ZNSt8__sce_v29_FXp_setwEPfif_nid_postfix: NID=p81kEPUMxGc declarations=1 definitions=1 aliases=0

Exact-head test-quality heuristic output:

{
  "findings": [
    {"path": "core/libs/tests/GuestSceV2BinaryScaling.cpp", "line": 1, "kind": "possible-unregistered-cpp-test", "message": "Changed C++ test source path was not found literally in CMake files; inspect registration, generated source lists, and workflow coverage."},
    {"path": "core/libs/tests/GuestSceV2ExtendedPrecision.cpp", "line": 1, "kind": "possible-unregistered-cpp-test", "message": "Changed C++ test source path was not found literally in CMake files; inspect registration, generated source lists, and workflow coverage."},
    {"path": "core/libs/tests/GuestSceV2FloatHelpers.cpp", "line": 1, "kind": "possible-unregistered-cpp-test", "message": "Changed C++ test source path was not found literally in CMake files; inspect registration, generated source lists, and workflow coverage."}
  ],
  "negative_control_candidates": [],
  "limits": [
    "Heuristics can miss weak assertions and can flag valid tests; inspect every finding.",
    "A test that passes against base is not by itself proof that the PR test is inadequate.",
    "Negative controls are only candidates until the test actually runs against base and fails by assertion rather than import/setup error."
  ]
}

Hosted-check output at final refresh:

conventions\tpending\t0\thttps://github.com/boykopovar/AnyPS5/actions/runs/41553237486/job/125645770353
eligibility\tpending\t0\thttps://github.com/boykopovar/AnyPS5/actions/runs/41553237518/job/125645769280
intake\tpending\t0\thttps://github.com/boykopovar/AnyPS5/actions/runs/41553237430/job/125645770236
labels\tpending\t0\thttps://github.com/boykopovar/AnyPS5/actions/runs/41553237478/job/125645770306
library-portability\tpending\t0\thttps://github.com/boykopovar/AnyPS5/actions/runs/41553237584/job/125645769117
report\tpending\t0\thttps://github.com/boykopovar/AnyPS5/actions/runs/41553237579/job/125645769503

Negative control

Not run locally. The added C++ test requires an exact-head binary, which I did not build. The PR description reports four source-mutation controls and a restored-source run; those remain author-reported evidence here.

Findings

Blocking

None found in the reviewed head.

Non-blocking

  • The declared stack is #14955 → #15099 → #15336. Both dependencies remain open, and their current heads are not included in this branch; each PR has a clean independent preview onto current main. Keep this landing order and re-run the relevant checks after the dependencies merge and this branch is updated.
  • The PR description reports Windows build/CTest and 18,000,768 side-by-side calls against the bundled module at this exact head. I did not independently reproduce those runs or inspect the original module, harness or logs.

Sources

Not verified

No local build, CTest, negative-control run, Linux/Windows runtime, console run or independent original-module comparison was performed. All six hosted checks were queued at final refresh. The PR’s own detailed Windows test and differential-run report is not an independent run by this reviewer.

To get this to a good state

No source change is requested from this review. Let the six hosted checks complete, preserve the declared dependency order, and update this branch after #14955 and #15099 land. I will recheck the exact new head, rerun the no-build checks and assess the reported test evidence before considering approval.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5745454175 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/15336#pullrequestreview-5745454175). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-03T00:39:48Z. **Review:** COMMENTED --- # Reviewed — no blocking findings The new extended-precision helper implementation and its checked-in test vectors have no substantiated blocking source issue in this review; approval is withheld while required hosted checks remain queued. ## What I ran Reviewed the complete 8-file diff at head `23e00f1cc011c5c8aecef06c0240e7388345e428`, based on `7feb37ee3e30e10139b483fb4df689d5b5b69ab8`. The no-build merge preview onto that current `main` tip was clean. Environment: Debian Linux x86_64, Python 3.11.2, Git 2.39.5; GCC 12.2.0 is installed. No local compilation was performed. ```sh git diff --check 7feb37ee3e30e10139b483fb4df689d5b5b69ab8...23e00f1cc011c5c8aecef06c0240e7388345e428 python3 tools/check_conventions.py --base 7feb37ee3e30e10139b483fb4df689d5b5b69ab8 --head 23e00f1cc011c5c8aecef06c0240e7388345e428 python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 15336 --output-dir /tmp/anyps5-pr-precheck/15336-session-20261103 python3 tools/pr_abi_audit.py --repo /marc/AnyPS5 --base 7feb37ee3e30e10139b483fb4df689d5b5b69ab8 --head 23e00f1cc011c5c8aecef06c0240e7388345e428 | grep -E '^(ABI audit:|libc___cxa_finalize:|longjmp_nid_postfix:|setjmp_nid_postfix:|_ZNSt8__sce_v2.*(_Xp_|_FXp_|Feraise))' python3 tools/pr_test_quality.py --root /marc/AnyPS5 --json core/libs/tests/GuestSceV2BinaryScaling.cpp core/libs/tests/GuestSceV2ExtendedPrecision.cpp core/libs/tests/GuestSceV2FloatHelpers.cpp gh pr checks 15336 --repo boykopovar/AnyPS5 ``` ## Results | Check | Result | Note | |---|---|---| | Diff and conventions | passed | No whitespace, template, or convention issue. | | Current-base merge preview | passed | Clean on the reviewed head. | | Export declaration audit | passed | All 19 new exports have declarations and definitions; audit warnings concern unrelated symbols. | | Test registration | passed | All three CTest targets are registered in CMake. | | Test-quality heuristic | failed | Three registration warnings; manual CMake inspection cleared them as false positives. | | No-build precheck | failed | Its isolated snapshot did not contain the workspace-only audit helpers; both were rerun directly. | | Hosted checks | not run | All six applicable jobs were queued at final refresh. | | Local build, CTest, negative control | not run | No exact-head binaries were built. The PR description reports Windows tests and differential runs. | <details> <summary>Precheck table and unedited check output</summary> The precheck report’s check table: | Check | Status | Command / reason | |---|---|---| | build_and_compile | not_applicable | `The precheck deliberately does not configure, build, or compile AnyPS5.` | | diff_check | passed | `git diff --check 7feb37ee3e30e10139b483fb4df689d5b5b69ab8...23e00f1cc011c5c8aecef06c0240e7388345e428` | | conventions_and_pr_template | passed | `/usr/bin/python3 tools/check_conventions.py --base 7feb37ee3e30e10139b483fb4df689d5b5b69ab8 --head 23e00f1cc011c5c8aecef06c0240e7388345e428 --title feat(libc): export the std::__sce_v2 extended-precision helpers --body /tmp/anyps5-pr-precheck/15336-session-20261103/pr-body.md` | | changed_export_abi_audit | failed | `/usr/bin/python3 tools/pr_abi_audit.py --base 7feb37ee3e30e10139b483fb4df689d5b5b69ab8 --head 23e00f1cc011c5c8aecef06c0240e7388345e428 --json` | | python_syntax | not_applicable | `No changed Python implementation files.` | | related_python_unit_tests | not_applicable | `No changed tools/ module has an existing sibling tools/tests/test_<module>.py suite.` | | python_test_registration | not_applicable | `No changed test_*.py files.` | | live_dependency_and_mergeability_check | passed | `/usr/bin/python3 /marc/AnyPS5/tools/pr_stack_check.py 15336 --repo boykopovar/AnyPS5 --output-dir /tmp/anyps5-pr-precheck/15336-session-20261103/stack` | | build_dependent_cpp_tests | not_applicable | `Not run: C++ tests need exact-head binaries, which require a build; the precheck does not build.` | | test_quality_heuristics | failed | `/usr/bin/python3 /tmp/anyps5-pr-precheck/15336-session-20261103/head-23e00f1cc011-381e9f64/tools/pr_test_quality.py --root /tmp/anyps5-pr-precheck/15336-session-20261103/head-23e00f1cc011-381e9f64 --json core/libs/prx/libc/CMakeLists.txt core/libs/prx/libc/include/Api.hpp core/libs/prx/libc/src/MathExact.cpp core/libs/prx/libc/src/VersionedExtendedPrecision.cpp core/libs/tests/GuestSceV2BinaryScaling.cpp core/libs/tests/GuestSceV2ExtendedPrecision.cpp core/libs/tests/GuestSceV2FloatHelpers.cpp docs/dev/debt/libc.md` | | negative_controls | not_applicable | `No changed Python test module in tools/ can be run as a no-build base-source control.` | The precheck command printed: ```text /tmp/anyps5-pr-precheck/15336-session-20261103/report.md /tmp/anyps5-pr-precheck/15336-session-20261103/report.json Conclusion: checks failed ``` The isolated helper errors were: ```text /usr/bin/python3: can't open file '/tmp/anyps5-pr-precheck/15336-session-20261103/head-23e00f1cc011-381e9f64/tools/pr_abi_audit.py': [Errno 2] No such file or directory /usr/bin/python3: can't open file '/tmp/anyps5-pr-precheck/15336-session-20261103/head-23e00f1cc011-381e9f64/tools/pr_test_quality.py': [Errno 2] No such file or directory ``` Exact-head convention output: ```text All conventions checks passed. ``` Exact-head ABI audit output for the added exports (unrelated audit warnings are shown as printed): ```text ABI audit: passed_with_warnings libc___cxa_finalize: nid-alias-differs-from-symbol-hash: Explicit NID H2e8t5ScQGc differs from computed symbol NID z5JcC5WSmyA; verify intentional aliasing. longjmp_nid_postfix: definition-not-found: No APS5_VABI definition was found in the head tree; check assembly aliases, generated definitions, and platform guards. setjmp_nid_postfix: definition-not-found: No APS5_VABI definition was found in the head tree; check assembly aliases, generated definitions, and platform guards. _ZNSt8__sce_v210_Xp_ldexpxEPdii_nid_postfix: NID=EdDo9k1Fw2g declarations=1 definitions=1 aliases=0 _ZNSt8__sce_v211_FXp_ldexpxEPfii_nid_postfix: NID=bqAsyZ97ux8 declarations=1 definitions=1 aliases=0 _ZNSt8__sce_v28_FeraiseEi_nid_postfix: NID=6qSnCJLe0JE declarations=1 definitions=1 aliases=0 _ZNSt8__sce_v28_Xp_addhEPdid_nid_postfix: NID=wb8ubEA1o7k declarations=1 definitions=1 aliases=0 _ZNSt8__sce_v28_Xp_addxEPdiPKdi_nid_postfix: NID=QgyliXfKe-A declarations=1 definitions=1 aliases=0 _ZNSt8__sce_v28_Xp_getwEPKdi_nid_postfix: NID=5fmNpHo4cr0 declarations=1 definitions=1 aliases=0 _ZNSt8__sce_v28_Xp_movxEPdiPKd_nid_postfix: NID=QoFx93+IPMY declarations=1 definitions=1 aliases=0 _ZNSt8__sce_v28_Xp_mulhEPdid_nid_postfix: NID=3Ve0L5VKidg declarations=1 definitions=1 aliases=0 _ZNSt8__sce_v28_Xp_mulxEPdiPKdiS0__nid_postfix: NID=PDE+YRqBekk declarations=1 definitions=1 aliases=0 _ZNSt8__sce_v28_Xp_setnEPdil_nid_postfix: NID=K9jt1tdtXvA declarations=1 definitions=1 aliases=0 _ZNSt8__sce_v28_Xp_setwEPdid_nid_postfix: NID=7-gzF0237vw declarations=1 definitions=1 aliases=0 _ZNSt8__sce_v29_FXp_addhEPfif_nid_postfix: NID=u5NXv54Ux8U declarations=1 definitions=1 aliases=0 _ZNSt8__sce_v29_FXp_addxEPfiPKfi_nid_postfix: NID=13URvVAuB7Y declarations=1 definitions=1 aliases=0 _ZNSt8__sce_v29_FXp_getwEPKfi_nid_postfix: NID=AXVguf0qb6k declarations=1 definitions=1 aliases=0 _ZNSt8__sce_v29_FXp_movxEPfiPKf_nid_postfix: NID=6m4z5Xb6DRo declarations=1 definitions=1 aliases=0 _ZNSt8__sce_v29_FXp_mulhEPfif_nid_postfix: NID=jJgT41F2+sE declarations=1 definitions=1 aliases=0 _ZNSt8__sce_v29_FXp_mulxEPfiPKfiS0__nid_postfix: NID=l9zhpgjwNzE declarations=1 definitions=1 aliases=0 _ZNSt8__sce_v29_FXp_setnEPfil_nid_postfix: NID=Z9nLH6PFl24 declarations=1 definitions=1 aliases=0 _ZNSt8__sce_v29_FXp_setwEPfif_nid_postfix: NID=p81kEPUMxGc declarations=1 definitions=1 aliases=0 ``` Exact-head test-quality heuristic output: ```json { "findings": [ {"path": "core/libs/tests/GuestSceV2BinaryScaling.cpp", "line": 1, "kind": "possible-unregistered-cpp-test", "message": "Changed C++ test source path was not found literally in CMake files; inspect registration, generated source lists, and workflow coverage."}, {"path": "core/libs/tests/GuestSceV2ExtendedPrecision.cpp", "line": 1, "kind": "possible-unregistered-cpp-test", "message": "Changed C++ test source path was not found literally in CMake files; inspect registration, generated source lists, and workflow coverage."}, {"path": "core/libs/tests/GuestSceV2FloatHelpers.cpp", "line": 1, "kind": "possible-unregistered-cpp-test", "message": "Changed C++ test source path was not found literally in CMake files; inspect registration, generated source lists, and workflow coverage."} ], "negative_control_candidates": [], "limits": [ "Heuristics can miss weak assertions and can flag valid tests; inspect every finding.", "A test that passes against base is not by itself proof that the PR test is inadequate.", "Negative controls are only candidates until the test actually runs against base and fails by assertion rather than import/setup error." ] } ``` Hosted-check output at final refresh: ```text conventions\tpending\t0\thttps://github.com/boykopovar/AnyPS5/actions/runs/41553237486/job/125645770353 eligibility\tpending\t0\thttps://github.com/boykopovar/AnyPS5/actions/runs/41553237518/job/125645769280 intake\tpending\t0\thttps://github.com/boykopovar/AnyPS5/actions/runs/41553237430/job/125645770236 labels\tpending\t0\thttps://github.com/boykopovar/AnyPS5/actions/runs/41553237478/job/125645770306 library-portability\tpending\t0\thttps://github.com/boykopovar/AnyPS5/actions/runs/41553237584/job/125645769117 report\tpending\t0\thttps://github.com/boykopovar/AnyPS5/actions/runs/41553237579/job/125645769503 ``` </details> ## Negative control Not run locally. The added C++ test requires an exact-head binary, which I did not build. The PR description reports four source-mutation controls and a restored-source run; those remain author-reported evidence here. ## Findings ### Blocking None found in the reviewed head. ### Non-blocking - The declared stack is #14955 → #15099 → #15336. Both dependencies remain open, and their current heads are not included in this branch; each PR has a clean independent preview onto current `main`. Keep this landing order and re-run the relevant checks after the dependencies merge and this branch is updated. - The PR description reports Windows build/CTest and 18,000,768 side-by-side calls against the bundled module at this exact head. I did not independently reproduce those runs or inspect the original module, harness or logs. ## Sources - [Versioned helper implementations at this head](https://github.com/boykopovar/AnyPS5/blob/23e00f1cc011c5c8aecef06c0240e7388345e428/core/libs/prx/libc/src/VersionedExtendedPrecision.cpp#L346-L370) - [Extended-precision test vectors and assertions at this head](https://github.com/boykopovar/AnyPS5/blob/23e00f1cc011c5c8aecef06c0240e7388345e428/core/libs/tests/GuestSceV2ExtendedPrecision.cpp#L22-L60) - [CTest registration for the three new suites at this head](https://github.com/boykopovar/AnyPS5/blob/23e00f1cc011c5c8aecef06a3212abbfb8afc95a33c7c2/core/libs/prx/libc/CMakeLists.txt#L900-L907) - [Binary-scaling and extended-precision CTest registrations at this head](https://github.com/boykopovar/AnyPS5/blob/23e00f1cc011c5c8aecef06a3212abbfb8afc95a33c7c2/core/libs/prx/libc/CMakeLists.txt#L1167-L1183) ## Not verified No local build, CTest, negative-control run, Linux/Windows runtime, console run or independent original-module comparison was performed. All six hosted checks were queued at final refresh. The PR’s own detailed Windows test and differential-run report is not an independent run by this reviewer. ## To get this to a good state No source change is requested from this review. Let the six hosted checks complete, preserve the declared dependency order, and update this branch after #14955 and #15099 land. I will recheck the exact new head, rerun the no-build checks and assess the reported test evidence before considering approval.
MarcZX10 commented 2026-11-03 00:40:42 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-03T00:40:42Z.

Review: COMMENTED


Re-checked — same head, corrected citations

The prior #15336 review is tied to unchanged head 23e00f1cc011c5c8aecef06c0240e7388345e428; this correction fixes two malformed CMake permalinks and clarifies the test-quality result.

What I ran

Read the CMake file from the exact reviewed head using the GitHub contents API; no build or test was run for this correction.

gh api repos/boykopovar/AnyPS5/contents/core/libs/prx/libc/CMakeLists.txt?ref=23e00f1cc011c5c8aecef06c0240e7388345e428 --jq .content | base64 -d | nl -ba | sed -n '900,907p;1167,1184p'

Results

Check Result Note
CTest registration passed All three targets are registered in the exact-head CMake file.
Build and tests not run This correction checks citations and wording only.
Exact command output
   900	    add_test_executable(guest_sce_v2_float_helpers_tests ${LIBS_INCLUDE_DIR}/tests/GuestSceV2FloatHelpers.cpp)
   901	    target_include_directories(guest_sce_v2_float_helpers_tests PRIVATE ${LIBS_INCLUDE_DIR})
   902	    target_link_libraries(guest_sce_v2_float_helpers_tests PRIVATE libc)
   903	    configure_windows_unwind(guest_sce_v2_float_helpers_tests)
   904	    add_test(NAME guest_sce_v2_float_helpers COMMAND guest_sce_v2_float_helpers_tests)
   905	    if(WIN32)
   906	        set_tests_properties(guest_sce_v2_float_helpers PROPERTIES ENVIRONMENT_MODIFICATION
   907	            "PATH=path_list_prepend:$<TARGET_FILE_DIR:libc>")
  1167	    add_test_executable(guest_sce_v2_binary_scaling_tests ${LIBS_INCLUDE_DIR}/tests/GuestSceV2BinaryScaling.cpp)
  1168	    target_include_directories(guest_sce_v2_binary_scaling_tests PRIVATE ${LIBS_INCLUDE_DIR})
  1169	    target_link_libraries(guest_sce_v2_binary_scaling_tests PRIVATE libc)
  1170	    configure_windows_unwind(guest_sce_v2_binary_scaling_tests)
  1171	    add_test(NAME guest_sce_v2_binary_scaling COMMAND guest_sce_v2_binary_scaling_tests)
  1172	    if(WIN32)
  1173	        set_tests_properties(guest_sce_v2_binary_scaling PROPERTIES ENVIRONMENT_MODIFICATION
  1174	            "PATH=path_list_prepend:$<TARGET_FILE_DIR:libc>")
  1175	    endif()
  1176	    add_test_executable(guest_sce_v2_extended_precision_tests ${LIBS_INCLUDE_DIR}/tests/GuestSceV2ExtendedPrecision.cpp)
  1177	    target_include_directories(guest_sce_v2_extended_precision_tests PRIVATE ${LIBS_INCLUDE_DIR})
  1178	    target_link_libraries(guest_sce_v2_extended_precision_tests PRIVATE libc)
  1179	    configure_windows_unwind(guest_sce_v2_extended_precision_tests)
  1180	    add_test(NAME guest_sce_v2_extended_precision COMMAND guest_sce_v2_extended_precision_tests)
  1181	    if(WIN32)
  1182	        set_tests_properties(guest_sce_v2_extended_precision PROPERTIES ENVIRONMENT_MODIFICATION
  1183	            "PATH=path_list_prepend:$<TARGET_FILE_DIR:libc>")
  1184	    endif()

Findings

Blocking

No change to the prior finding: I found no substantiated blocking source issue, and approval remains withheld pending the required hosted checks.

Non-blocking

The earlier Results row's failed label was imprecise for the test-quality helper: it emitted three possible-registration warnings, but manual inspection confirms those CTest targets are registered. The isolated precheck itself did fail to start its helper because that script is absent from the exact-head snapshot; this is already shown in the original review's precheck output.

Sources

Not verified

No new compilation, CTest, negative control, or hosted-check run was performed for this correction.

To get this to a good state

No code change is requested based on this correction. The original review remains a COMMENTED result, not an approval.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5745459881 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/15336#pullrequestreview-5745459881). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-03T00:40:42Z. **Review:** COMMENTED --- # Re-checked — same head, corrected citations The prior #15336 review is tied to unchanged head `23e00f1cc011c5c8aecef06c0240e7388345e428`; this correction fixes two malformed CMake permalinks and clarifies the test-quality result. ## What I ran Read the CMake file from the exact reviewed head using the GitHub contents API; no build or test was run for this correction. ```sh gh api repos/boykopovar/AnyPS5/contents/core/libs/prx/libc/CMakeLists.txt?ref=23e00f1cc011c5c8aecef06c0240e7388345e428 --jq .content | base64 -d | nl -ba | sed -n '900,907p;1167,1184p' ``` ## Results | Check | Result | Note | |---|---|---| | CTest registration | passed | All three targets are registered in the exact-head CMake file. | | Build and tests | not run | This correction checks citations and wording only. | <details><summary>Exact command output</summary> ```text 900 add_test_executable(guest_sce_v2_float_helpers_tests ${LIBS_INCLUDE_DIR}/tests/GuestSceV2FloatHelpers.cpp) 901 target_include_directories(guest_sce_v2_float_helpers_tests PRIVATE ${LIBS_INCLUDE_DIR}) 902 target_link_libraries(guest_sce_v2_float_helpers_tests PRIVATE libc) 903 configure_windows_unwind(guest_sce_v2_float_helpers_tests) 904 add_test(NAME guest_sce_v2_float_helpers COMMAND guest_sce_v2_float_helpers_tests) 905 if(WIN32) 906 set_tests_properties(guest_sce_v2_float_helpers PROPERTIES ENVIRONMENT_MODIFICATION 907 "PATH=path_list_prepend:$<TARGET_FILE_DIR:libc>") 1167 add_test_executable(guest_sce_v2_binary_scaling_tests ${LIBS_INCLUDE_DIR}/tests/GuestSceV2BinaryScaling.cpp) 1168 target_include_directories(guest_sce_v2_binary_scaling_tests PRIVATE ${LIBS_INCLUDE_DIR}) 1169 target_link_libraries(guest_sce_v2_binary_scaling_tests PRIVATE libc) 1170 configure_windows_unwind(guest_sce_v2_binary_scaling_tests) 1171 add_test(NAME guest_sce_v2_binary_scaling COMMAND guest_sce_v2_binary_scaling_tests) 1172 if(WIN32) 1173 set_tests_properties(guest_sce_v2_binary_scaling PROPERTIES ENVIRONMENT_MODIFICATION 1174 "PATH=path_list_prepend:$<TARGET_FILE_DIR:libc>") 1175 endif() 1176 add_test_executable(guest_sce_v2_extended_precision_tests ${LIBS_INCLUDE_DIR}/tests/GuestSceV2ExtendedPrecision.cpp) 1177 target_include_directories(guest_sce_v2_extended_precision_tests PRIVATE ${LIBS_INCLUDE_DIR}) 1178 target_link_libraries(guest_sce_v2_extended_precision_tests PRIVATE libc) 1179 configure_windows_unwind(guest_sce_v2_extended_precision_tests) 1180 add_test(NAME guest_sce_v2_extended_precision COMMAND guest_sce_v2_extended_precision_tests) 1181 if(WIN32) 1182 set_tests_properties(guest_sce_v2_extended_precision PROPERTIES ENVIRONMENT_MODIFICATION 1183 "PATH=path_list_prepend:$<TARGET_FILE_DIR:libc>") 1184 endif() ``` </details> ## Findings ### Blocking No change to the prior finding: I found no substantiated blocking source issue, and approval remains withheld pending the required hosted checks. ### Non-blocking The earlier Results row's `failed` label was imprecise for the test-quality helper: it emitted three possible-registration warnings, but manual inspection confirms those CTest targets are registered. The isolated precheck itself did fail to start its helper because that script is absent from the exact-head snapshot; this is already shown in the original review's precheck output. ## Sources - [Float-helper CTest registration at the reviewed head](https://github.com/boykopovar/AnyPS5/blob/23e00f1cc011c5c8aecef06c0240e7388345e428/core/libs/prx/libc/CMakeLists.txt#L900-L907) - [Binary-scaling and extended-precision CTest registrations at the reviewed head](https://github.com/boykopovar/AnyPS5/blob/23e00f1cc011c5c8aecef06c0240e7388345e428/core/libs/prx/libc/CMakeLists.txt#L1167-L1184) ## Not verified No new compilation, CTest, negative control, or hosted-check run was performed for this correction. ## To get this to a good state No code change is requested based on this correction. The original review remains a COMMENTED result, not an approval.
MarcZX10 commented 2026-11-14 03:38:59 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-14T03:38:59Z.

Review: APPROVED


Reviewed — looks good

The reviewed change adds the extended precision exports and documents the known ldexp flag difference; the inspected code and submitted validation support merging.

What I ran

Reviewed head 834e0c156f5e6dcf44425073526ce629a3ab948e. I did not run commands or tests; build, CTest, and side-by-side comparison results below are author-reported.

Results

Check Result Note
Source review passed Changed files were inspected
Build and CTest not run 70 passes reported by author
Side-by-side comparison not run 18,000,768 calls reported by author
Negative control not run Four mutation failures reported by author

Findings

Blocking

None.

Non-blocking

None.

Not verified

The implementation’s execution, tests, and comparison were not independently verified. Linux, macOS, other SDKs, games, GPU behavior, and console execution were not tested per the description. Read all five changed files listed in the manifest: core/libs/prx/libc/CMakeLists.txt, core/libs/prx/libc/include/Api.hpp, core/libs/prx/libc/src/VersionedExtendedPrecision.cpp, core/libs/tests/GuestSceV2ExtendedPrecision.cpp, and docs/dev/debt/libc.md. The manifest marks all five included; no changed file was excluded.

To get this to a good state

Nothing is required.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5901347805 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/15336#pullrequestreview-5901347805). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-14T03:38:59Z. **Review:** APPROVED --- # Reviewed — looks good The reviewed change adds the extended precision exports and documents the known `ldexp` flag difference; the inspected code and submitted validation support merging. ## What I ran Reviewed head `834e0c156f5e6dcf44425073526ce629a3ab948e`. I did not run commands or tests; build, CTest, and side-by-side comparison results below are author-reported. ## Results | Check | Result | Note | | --- | --- | --- | | Source review | passed | Changed files were inspected | | Build and CTest | not run | 70 passes reported by author | | Side-by-side comparison | not run | 18,000,768 calls reported by author | | Negative control | not run | Four mutation failures reported by author | ## Findings ### Blocking None. ### Non-blocking None. ## Not verified The implementation’s execution, tests, and comparison were not independently verified. Linux, macOS, other SDKs, games, GPU behavior, and console execution were not tested per the description. Read all five changed files listed in the manifest: `core/libs/prx/libc/CMakeLists.txt`, `core/libs/prx/libc/include/Api.hpp`, `core/libs/prx/libc/src/VersionedExtendedPrecision.cpp`, `core/libs/tests/GuestSceV2ExtendedPrecision.cpp`, and `docs/dev/debt/libc.md`. The manifest marks all five included; no changed file was excluded. ## To get this to a good state Nothing is required.
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!15336
No description provided.