feat(libc): implement signed 64-bit maximum #11302

Merged
Danigamer05 merged 1 commit from upstream-pr/11302 into main 2026-10-27 21:26:30 +00:00
Danigamer05 commented 2026-10-26 01:36:06 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Danigamer05 on 2026-10-26T01:36:06Z.


What

Add the missing libc export __std_max_8i (oLoo17ObE4A): take a nonempty range of signed 64-bit elements and return the maximum value. The existing memcpy read helper accepts unaligned ranges and leaves input unchanged. Declare the export once in the public Api.hpp; tests use that header. Null, empty, reversed and partial-element ranges call NotImplemented_nid_no_patch; their native failure behavior remains unimplemented and is recorded in debt. Tests cover valid ranges without asserting those unsupported paths.

The contract comes from PPSA03671 v01.001.005's bundled libc.prx: RVA 0x63790, size 0x1f4, ELF SHA256 483961e086b8a1fffa8138b3c0badf798987fb5f35ec908d828946408be2d8a6. The original receives range pointers in rdi/rsi, reads 8-byte elements, compares them as signed values (vpcmpgtq at 0x637d9, cmovg %rdx,%rax at 0x637f7) and returns the value in rax. It has no calls or image-relative data references. The isolated original function was also run directly on this Windows host from its mapped load segments, without relocations, module initialization or other module exports. This is a host differential, not a console measurement. Microsoft STL's public implementation independently corroborates the signed 64-bit value-returning signature. Implementation is a generic scalar scan written from this contract.

Before implementation, main and all 1,393 open PR heads were scanned for the function name and raw NID: no matches. No third-party code, module bytes or title files are added. No current title dependency, title unblock or performance improvement is claimed.

Tested

Current-main synchronization (27 October 2026). Exact tested/published head: 4b911d7bae592ac57251b0b1b393b68cea830325. Main base: cb45ae2ddf6e113a4619e8fed91fe7b9333c5c0f.

  • Rebased from 6907bd899307b0791132387d598c33ab2c1e435d onto the two newer main commits. Main changed only the windows_crash_stack_words test regex in core/libs/prx/libc/CMakeLists.txt (#11633). The entire four-file contribution patch is byte-identical before and after the rebase; no implementation or regression assertion changed.
  • On this exact head, rebuilt libc and guest_vector_algorithms_tests in the existing full-project Release configurations. guest_vector_algorithms and public_headers pass 2/2 on Windows 11 / WinLibs GCC 15.2.0 and 2/2 on Ubuntu 24.04 WSL / GCC 13.3.0.
  • All seven synchronized helper PRs still merge cleanly in forward and reverse order, producing the same tree. Their new combined revision 7da0577e45f238c6bfa01a818bd7e27f727ebeff also builds and passes both focused tests on Windows and Ubuntu. This synchronization ran 32 focused checks in total across the seven individual heads and the combined head.
  • Conventions, whitespace and strict main-sync checks pass: one commit ahead and zero behind the main base above.
  • The combined production sources, headers and regression sources are byte-identical to the previous combined revision a27d73c1f43135378c54ed6477af71273135ec42; only the unrelated upstream CMake regex differs. The previous original-module differential, standalone-header and AddressSanitizer evidence below retains its stated revisions and was not rerun for this synchronization.
  • The full CTest suite and all 64 general standalone-header batches were not run. No console, title or GPU run and no performance claim.
Earlier implementation validation and provenance

Current-main refresh (27 October 2026). Exact tested/published head: 6907bd899307b0791132387d598c33ab2c1e435d. Fetched main base: 74acfad65b3f0fd4eab653f3a3989d298fba1157.

  • Rebased from 84ea652b162755396e5f2522ca86d500461c4462. The __std_max_8i production body is byte-identical to that head. Every existing main declaration and debt entry is preserved; the patch still changes only the implementation, public declaration, regression cases and debt entry.
  • Windows 11 x64, WinLibs GCC 15.2.0, Release, full-project configuration: rebuilt production libc and guest_vector_algorithms_tests; ctest --test-dir build -R "^(guest_vector_algorithms|public_headers)$" -V --output-on-failure passed 2/2 on this exact head (19.41 s).
  • Ubuntu 24.04 under WSL, GCC 13.3.0 and CMake 3.28.3, Release, full-project configuration in a separate native Linux checkout: rebuilt production libc and the focused executable; the same checks passed 2/2 on this exact head (14.66 s). The runtime uses its existing memory-comparison fallback when asynchronous userfaultfd write watching is unavailable.
  • The same focused checks also pass on the unmodified main base on both platforms. All seven remaining vector-helper PRs (#10460, #11295, #11300, #11302, #11304, #11309 and #11333), together with #11289 already in main, merge without content conflicts. Merging the seven in forward and reverse order produces the same tree. That combined revision a27d73c1f43135378c54ed6477af71273135ec42 also builds and passes both focused checks on Windows and Ubuntu.
  • The current #10788 head 92db947130efc9e7e12c492683329f2ebc3e1996 merges cleanly with the main base, each individual helper and the seven-helper composition. This is a content-merge check for #10788; its implementation was not part of the combined runtime run.
  • Conventions, whitespace and tools/check_main_sync.py --base origin/main --head 6907bd899307b0791132387d598c33ab2c1e435d --strict pass. The sync check is one ahead and zero behind the fetched main base above. Bundled dependencies use that base's pinned revisions; no contribution dependency was introduced.
  • public_headers audits unique declarations and umbrella coverage. Its current upstream 90-second timeout is unchanged. The full set of 64 standalone-header batches and the full CTest suite were not run; the targeted header checks below were added afterward.

Additional validation on 27 October 2026, combined revision a27d73c1f43135378c54ed6477af71273135ec42 (the same seven-helper composition described above):

  • The five standalone public libc headers (include/Api.hpp, include/exceptions/Runtime.hpp, include/exceptions/Unwind.hpp, include/SonyCrt.hpp, and libc.hpp), plus a compilation unit including all 368 library umbrellas together, pass with C++20 and -Werror on Windows/WinLibs GCC 15.2.0 and Ubuntu/GCC 13.3.0. Every header is included twice, and the existing checker also rejects third-party header dependencies: 6 compilation units per platform, all pass. This is targeted coverage, not the full 64-batch matrix.
  • A separate Ubuntu full-project configuration with ANYPS5_ENABLE_ASAN=ON, RelWithDebInfo, rebuilt libc and guest_vector_algorithms_tests. ASAN_OPTIONS=halt_on_error=1:detect_leaks=1 ctest --test-dir build-asan-libc-followup-20261027-a -R '^guest_vector_algorithms$' -V --output-on-failure passed 1/1, with no AddressSanitizer or LeakSanitizer finding.
  • These added checks ran on the combined revision, not on seven additional individual builds. The individual Windows/Ubuntu Release results above remain associated with their exact published heads.

The earlier differential and negative-control results below belong to their stated heads. The original-module differential was not rerun for this refresh. No console, title or GPU execution and no performance claim.

Earlier implementation validation and provenance

Current-main refresh (26 October 2026), exact published/tested head 84ea652b162755396e5f2522ca86d500461c4462, main base bf77a9e9cba4b02c358779b35295176dd9cae164:

  • Rebased from 0c1acef23e5da18917693bb7b4156d64a02ea5ee onto the main base above. All existing main declarations and debt entries are retained. The __std_max_8i production function body is byte-identical to the previously reviewed head; the patch still changes only its implementation, public declaration, regression cases and debt entry.
  • Windows 11 x64, WinLibs GCC 15.2.0, Release, full-project configuration: rebuilt libc and guest_vector_algorithms_tests; ctest --test-dir build -R "^(guest_vector_algorithms|public_headers)$" -V --output-on-failure passed 2/2 on this exact head (19.11 s).
  • Ubuntu 24.04 under WSL, GCC 13.3.0 and CMake 3.28.3, Release, full-project configuration in a separate Linux checkout: rebuilt libc and the focused executable, and the same two tests passed 2/2 on this exact head (14.16 s). The runtime reports the existing unavailable asynchronous userfaultfd write-watch path and uses its memory-comparison fallback.
  • The two header audits ran separately after both platform builds completed, with the existing 30-second limit unchanged. public_headers is the unique-declaration and umbrella-coverage audit; standalone-header compilation batches and the full CTest suite were not run in this refresh.
  • tools/check_conventions.py --base origin/main, PR-diff whitespace checks and tools/check_main_sync.py --base origin/main --head 84ea652b162755396e5f2522ca86d500461c4462 --strict pass. The sync check reports one commit ahead and zero behind the fetched main base above.
  • A trial merge of all six refreshed PRs together with independent #10460 and #11289 is clean. That composition was checked for content conflicts; the runtime results above are the individual PR runs.

The previous baseline, differential and negative-control evidence below belongs to the earlier heads stated there. The original-module comparison was not rerun for this rebase-only refresh, and no console measurement was made.

Earlier implementation validation and provenance

Base: 1c9064435d8e365064b19a1f0560c6498cf23987. Published head: 0c1acef23e5da18917693bb7b4156d64a02ea5ee.

Final builds and runtime tests used 232a19698f1432e38b51982f7674adcf9bda4ef2. The only subsequent change moved the debt entry to avoid documentation conflicts; every executable, test and build source is byte-for-byte identical at the published head.

  • Windows 11, AMD Ryzen 7 3700X, WinLibs MinGW-w64 GCC 15.2.0 r7, CMake 4.3.1, Release, bundled dependencies, BUILD_TESTING=ON, full-project configuration: production libs, relinker and guest_vector_algorithms_tests build. Both guest_vector_algorithms and public_headers pass with ctest --test-dir build -R "^(guest_vector_algorithms|public_headers)$" -V --output-on-failure. The differential is repeated against the final NID-patched production library.
  • The existing guest_vector_algorithms and public_headers pass on unmodified base 5b85225ef3. Added cases cover single values, all pairs of twelve signed edge values, negative/zero/positive and 32/64-bit boundaries, 20 lengths through 257 elements, offsets 0–31, unchanged input/canaries, repeated negative maxima, all-minimum ranges and a unique wide negative maximum at every position.
  • Three independently rebuilt negative controls fail as expected: unsigned comparison, truncating later reads to signed 32 bits, and skipping the last element. Exact sources and binaries were restored afterward.
  • Original / NID-patched production candidate / independent signed-maximum reference: 8,689 cases, zero mismatches, including lengths 1–257 at offsets 0–31, 256 guard-page cases, each bit position, INT64_MIN/INT64_MAX and all 144 pairs of twelve edge values. Inputs remain unchanged.
  • Ubuntu 24.04 under WSL2, GCC 13.3.0, CMake 3.28.3, Release, bundled dependencies: full-project configuration; production libc and the focused executable build. The same two CTest tests pass in a separate Linux checkout at the tested commit, clean for tested sources before and after the run. The runtime reports unavailable asynchronous userfaultfd write protection and uses its memory-comparison fallback.
  • Conventions and PR-diff whitespace checks pass. The public-header test is the unique-declaration/umbrella audit; standalone-header compilation batches and the full CTest suite were not run. No PS5 console, title, macOS or GPU execution; no performance claim.

Overlap: the required tools/pr_overlap.py --branch feat/libc-signed-max64 --repo boykopovar/AnyPS5 run against 3b252b44fea9e7dde1295cf23031d8d6675870d9 reports no confirmed overlap. Manually inspected all 36 stale shared-file patches against their merge bases: #5021, #5303, #6713, #7081, #7386, #7447, #7544, #7648, #7715, #8150, #8417, #9087, #9269, #9371, #9447, #9526, #9669, #9771, #9863, #9873, #9929, #10007, #10113, #10158, #10200, #10222, #10226, #10229, #10283, #10349, #10405, #10467, #10610, #10742, #10788, #10898. They change other debt entries and unrelated public exports; none changes this function or its neighboring vector declarations/debt entry. Those stale branches are not claimed merge-clean. Trial merges with our independent #10460, #11289, #11295 and #11300 all succeed without content conflicts; no dependency on them.

The full checker snapshot was retained. After relocating the debt entry, the branch comparison was rerun with the same checker against that unchanged snapshot.

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
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5010703364 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11302). Originally posted by [Danigamer05](https://github.com/Danigamer05) on 2026-10-26T01:36:06Z. --- ### What Add the missing libc export `__std_max_8i` (`oLoo17ObE4A`): take a nonempty range of signed 64-bit elements and return the maximum value. The existing `memcpy` read helper accepts unaligned ranges and leaves input unchanged. Declare the export once in the public `Api.hpp`; tests use that header. Null, empty, reversed and partial-element ranges call `NotImplemented_nid_no_patch`; their native failure behavior remains unimplemented and is recorded in debt. Tests cover valid ranges without asserting those unsupported paths. The contract comes from PPSA03671 v01.001.005's bundled `libc.prx`: RVA `0x63790`, size `0x1f4`, ELF SHA256 `483961e086b8a1fffa8138b3c0badf798987fb5f35ec908d828946408be2d8a6`. The original receives range pointers in `rdi`/`rsi`, reads 8-byte elements, compares them as signed values (`vpcmpgtq` at `0x637d9`, `cmovg %rdx,%rax` at `0x637f7`) and returns the value in `rax`. It has no calls or image-relative data references. The isolated original function was also run directly on this Windows host from its mapped load segments, without relocations, module initialization or other module exports. This is a host differential, not a console measurement. [Microsoft STL's public implementation](https://github.com/microsoft/STL/blob/b6f01e438b68ee497f9c08313e49d12bb2f0d8e0/stl/src/vector_algorithms.cpp#L3950-L3952) independently corroborates the signed 64-bit value-returning signature. Implementation is a generic scalar scan written from this contract. Before implementation, main and all 1,393 open PR heads were scanned for the function name and raw NID: no matches. No third-party code, module bytes or title files are added. No current title dependency, title unblock or performance improvement is claimed. ### Tested Current-main synchronization (27 October 2026). Exact tested/published head: `4b911d7bae592ac57251b0b1b393b68cea830325`. Main base: `cb45ae2ddf6e113a4619e8fed91fe7b9333c5c0f`. - Rebased from `6907bd899307b0791132387d598c33ab2c1e435d` onto the two newer main commits. Main changed only the `windows_crash_stack_words` test regex in `core/libs/prx/libc/CMakeLists.txt` (#11633). The entire four-file contribution patch is byte-identical before and after the rebase; no implementation or regression assertion changed. - On this exact head, rebuilt libc and `guest_vector_algorithms_tests` in the existing full-project Release configurations. `guest_vector_algorithms` and `public_headers` pass **2/2 on Windows 11 / WinLibs GCC 15.2.0** and **2/2 on Ubuntu 24.04 WSL / GCC 13.3.0**. - All seven synchronized helper PRs still merge cleanly in forward and reverse order, producing the same tree. Their new combined revision `7da0577e45f238c6bfa01a818bd7e27f727ebeff` also builds and passes both focused tests on Windows and Ubuntu. This synchronization ran 32 focused checks in total across the seven individual heads and the combined head. - Conventions, whitespace and strict main-sync checks pass: one commit ahead and zero behind the main base above. - The combined production sources, headers and regression sources are byte-identical to the previous combined revision `a27d73c1f43135378c54ed6477af71273135ec42`; only the unrelated upstream CMake regex differs. The previous original-module differential, standalone-header and AddressSanitizer evidence below retains its stated revisions and was not rerun for this synchronization. - The full CTest suite and all 64 general standalone-header batches were not run. No console, title or GPU run and no performance claim. <details> <summary>Earlier implementation validation and provenance</summary> Current-main refresh (27 October 2026). Exact tested/published head: `6907bd899307b0791132387d598c33ab2c1e435d`. Fetched main base: `74acfad65b3f0fd4eab653f3a3989d298fba1157`. - Rebased from `84ea652b162755396e5f2522ca86d500461c4462`. The `__std_max_8i` production body is byte-identical to that head. Every existing main declaration and debt entry is preserved; the patch still changes only the implementation, public declaration, regression cases and debt entry. - Windows 11 x64, WinLibs GCC 15.2.0, Release, full-project configuration: rebuilt production libc and `guest_vector_algorithms_tests`; `ctest --test-dir build -R "^(guest_vector_algorithms|public_headers)$" -V --output-on-failure` passed **2/2** on this exact head (19.41 s). - Ubuntu 24.04 under WSL, GCC 13.3.0 and CMake 3.28.3, Release, full-project configuration in a separate native Linux checkout: rebuilt production libc and the focused executable; the same checks passed **2/2** on this exact head (14.66 s). The runtime uses its existing memory-comparison fallback when asynchronous userfaultfd write watching is unavailable. - The same focused checks also pass on the unmodified main base on both platforms. All seven remaining vector-helper PRs (#10460, #11295, #11300, #11302, #11304, #11309 and #11333), together with #11289 already in main, merge without content conflicts. Merging the seven in forward and reverse order produces the same tree. That combined revision `a27d73c1f43135378c54ed6477af71273135ec42` also builds and passes both focused checks on Windows and Ubuntu. - The current #10788 head `92db947130efc9e7e12c492683329f2ebc3e1996` merges cleanly with the main base, each individual helper and the seven-helper composition. This is a content-merge check for #10788; its implementation was not part of the combined runtime run. - Conventions, whitespace and `tools/check_main_sync.py --base origin/main --head 6907bd899307b0791132387d598c33ab2c1e435d --strict` pass. The sync check is one ahead and zero behind the fetched main base above. Bundled dependencies use that base's pinned revisions; no contribution dependency was introduced. - `public_headers` audits unique declarations and umbrella coverage. Its current upstream 90-second timeout is unchanged. The full set of 64 standalone-header batches and the full CTest suite were not run; the targeted header checks below were added afterward. Additional validation on 27 October 2026, combined revision `a27d73c1f43135378c54ed6477af71273135ec42` (the same seven-helper composition described above): - The five standalone public libc headers (`include/Api.hpp`, `include/exceptions/Runtime.hpp`, `include/exceptions/Unwind.hpp`, `include/SonyCrt.hpp`, and `libc.hpp`), plus a compilation unit including all 368 library umbrellas together, pass with C++20 and `-Werror` on Windows/WinLibs GCC 15.2.0 and Ubuntu/GCC 13.3.0. Every header is included twice, and the existing checker also rejects third-party header dependencies: **6 compilation units per platform**, all pass. This is targeted coverage, not the full 64-batch matrix. - A separate Ubuntu full-project configuration with `ANYPS5_ENABLE_ASAN=ON`, RelWithDebInfo, rebuilt libc and `guest_vector_algorithms_tests`. `ASAN_OPTIONS=halt_on_error=1:detect_leaks=1 ctest --test-dir build-asan-libc-followup-20261027-a -R '^guest_vector_algorithms$' -V --output-on-failure` passed **1/1**, with no AddressSanitizer or LeakSanitizer finding. - These added checks ran on the combined revision, not on seven additional individual builds. The individual Windows/Ubuntu Release results above remain associated with their exact published heads. The earlier differential and negative-control results below belong to their stated heads. The original-module differential was not rerun for this refresh. No console, title or GPU execution and no performance claim. <details> <summary>Earlier implementation validation and provenance</summary> Current-main refresh (26 October 2026), exact published/tested head `84ea652b162755396e5f2522ca86d500461c4462`, main base `bf77a9e9cba4b02c358779b35295176dd9cae164`: - Rebased from `0c1acef23e5da18917693bb7b4156d64a02ea5ee` onto the main base above. All existing main declarations and debt entries are retained. The `__std_max_8i` production function body is byte-identical to the previously reviewed head; the patch still changes only its implementation, public declaration, regression cases and debt entry. - Windows 11 x64, WinLibs GCC 15.2.0, Release, full-project configuration: rebuilt libc and `guest_vector_algorithms_tests`; `ctest --test-dir build -R "^(guest_vector_algorithms|public_headers)$" -V --output-on-failure` passed **2/2** on this exact head (19.11 s). - Ubuntu 24.04 under WSL, GCC 13.3.0 and CMake 3.28.3, Release, full-project configuration in a separate Linux checkout: rebuilt libc and the focused executable, and the same two tests passed **2/2** on this exact head (14.16 s). The runtime reports the existing unavailable asynchronous userfaultfd write-watch path and uses its memory-comparison fallback. - The two header audits ran separately after both platform builds completed, with the existing 30-second limit unchanged. `public_headers` is the unique-declaration and umbrella-coverage audit; standalone-header compilation batches and the full CTest suite were not run in this refresh. - `tools/check_conventions.py --base origin/main`, PR-diff whitespace checks and `tools/check_main_sync.py --base origin/main --head 84ea652b162755396e5f2522ca86d500461c4462 --strict` pass. The sync check reports one commit ahead and zero behind the fetched main base above. - A trial merge of all six refreshed PRs together with independent #10460 and #11289 is clean. That composition was checked for content conflicts; the runtime results above are the individual PR runs. The previous baseline, differential and negative-control evidence below belongs to the earlier heads stated there. The original-module comparison was not rerun for this rebase-only refresh, and no console measurement was made. <details> <summary>Earlier implementation validation and provenance</summary> Base: `1c9064435d8e365064b19a1f0560c6498cf23987`. Published head: `0c1acef23e5da18917693bb7b4156d64a02ea5ee`. Final builds and runtime tests used `232a19698f1432e38b51982f7674adcf9bda4ef2`. The only subsequent change moved the debt entry to avoid documentation conflicts; every executable, test and build source is byte-for-byte identical at the published head. - Windows 11, AMD Ryzen 7 3700X, WinLibs MinGW-w64 GCC 15.2.0 r7, CMake 4.3.1, Release, bundled dependencies, `BUILD_TESTING=ON`, full-project configuration: production `libs`, `relinker` and `guest_vector_algorithms_tests` build. Both `guest_vector_algorithms` and `public_headers` pass with `ctest --test-dir build -R "^(guest_vector_algorithms|public_headers)$" -V --output-on-failure`. The differential is repeated against the final NID-patched production library. - The existing `guest_vector_algorithms` and `public_headers` pass on unmodified base `5b85225ef3`. Added cases cover single values, all pairs of twelve signed edge values, negative/zero/positive and 32/64-bit boundaries, 20 lengths through 257 elements, offsets 0–31, unchanged input/canaries, repeated negative maxima, all-minimum ranges and a unique wide negative maximum at every position. - Three independently rebuilt negative controls fail as expected: unsigned comparison, truncating later reads to signed 32 bits, and skipping the last element. Exact sources and binaries were restored afterward. - Original / NID-patched production candidate / independent signed-maximum reference: **8,689 cases, zero mismatches**, including lengths 1–257 at offsets 0–31, 256 guard-page cases, each bit position, `INT64_MIN`/`INT64_MAX` and all 144 pairs of twelve edge values. Inputs remain unchanged. - Ubuntu 24.04 under WSL2, GCC 13.3.0, CMake 3.28.3, Release, bundled dependencies: full-project configuration; production libc and the focused executable build. The same two CTest tests pass in a separate Linux checkout at the tested commit, clean for tested sources before and after the run. The runtime reports unavailable asynchronous userfaultfd write protection and uses its memory-comparison fallback. - Conventions and PR-diff whitespace checks pass. The public-header test is the unique-declaration/umbrella audit; standalone-header compilation batches and the full CTest suite were not run. No PS5 console, title, macOS or GPU execution; no performance claim. Overlap: the required `tools/pr_overlap.py --branch feat/libc-signed-max64 --repo boykopovar/AnyPS5` run against `3b252b44fea9e7dde1295cf23031d8d6675870d9` reports **no confirmed overlap**. Manually inspected all 36 stale shared-file patches against their merge bases: #5021, #5303, #6713, #7081, #7386, #7447, #7544, #7648, #7715, #8150, #8417, #9087, #9269, #9371, #9447, #9526, #9669, #9771, #9863, #9873, #9929, #10007, #10113, #10158, #10200, #10222, #10226, #10229, #10283, #10349, #10405, #10467, #10610, #10742, #10788, #10898. They change other debt entries and unrelated public exports; none changes this function or its neighboring vector declarations/debt entry. Those stale branches are not claimed merge-clean. Trial merges with our independent #10460, #11289, #11295 and #11300 all succeed without content conflicts; no dependency on them. The full checker snapshot was retained. After relocating the debt entry, the branch comparison was rerun with the same checker against that unchanged snapshot. </details> </details> </details> <!-- 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. --> ### 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: <!-- #PR, or none --> none - [x] Fixes: <!-- issue it closes as Fixes #N, or none --> none - [x] Unblocks: <!-- title ID and Game bring-up discussion, e.g. PPSA01325 #3232, or none --> none - [x] GPUs tested: <!-- for AGC, shader recompiler or VideoOut changes: vendor, model, driver and OS of each GPU the GPU tests ran on; otherwise n/a --> n/a - [x] AI-assisted: <!-- yes / no --> yes
MarcZX10 commented 2026-10-26 04:44:25 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-26T04:44:25Z.

Review: CHANGES_REQUESTED


The signed scan, Read<std::int64_t> use, range validation and boundary/unaligned/immutability cases look consistent with the cited export evidence. The PR also reports Windows and WSL focused runs, negative controls, and an independent combined-vector PR run.

Before approval, please refresh onto current main (9b197b6ce4583e64bf2427e6beb7270bcfa1528e) and rerun the focused guest_vector_algorithms and public_headers tests on that exact head. tools/check_main_sync.py reports this head is 1 commit ahead and 133 behind (merge base 1c9064435); the merge preview is clean, but main has also changed Api.hpp and docs/dev/debt/libc.md. The published build/test report uses an earlier base. Current hosted relinker, ASan, register-context, write-watch and policy checks pass; full product jobs are path-skipped.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5647507229 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11302#pullrequestreview-5647507229). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-26T04:44:25Z. **Review:** CHANGES_REQUESTED --- The signed scan, `Read<std::int64_t>` use, range validation and boundary/unaligned/immutability cases look consistent with the cited export evidence. The PR also reports Windows and WSL focused runs, negative controls, and an independent combined-vector PR run. Before approval, please refresh onto current `main` (`9b197b6ce4583e64bf2427e6beb7270bcfa1528e`) and rerun the focused `guest_vector_algorithms` and `public_headers` tests on that exact head. `tools/check_main_sync.py` reports this head is 1 commit ahead and 133 behind (merge base `1c9064435`); the merge preview is clean, but main has also changed `Api.hpp` and `docs/dev/debt/libc.md`. The published build/test report uses an earlier base. Current hosted relinker, ASan, register-context, write-watch and policy checks pass; full product jobs are path-skipped.
MarcZX10 commented 2026-10-26 06:21:20 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-26T06:21:20Z.

Review: CHANGES_REQUESTED


The author-reported Windows focused tests and combined vector-helper run are useful, and I found no new function-specific concern. The exact PR head is still based on 1c9064435d8e365064b19a1f0560c6498cf23987, though. Against current upstream/main 14c99b52ace303eef1667764670d1d1540140b3d, it is 1 ahead and 153 behind; Api.hpp and docs/dev/debt/libc.md changed on main since the merge base (#9269, #10354 and #10608). Please rebase, resolve those shared-file changes, then rerun guest_vector_algorithms and public_headers on that exact head. The previous review request remains current; I am updating the target main/hash and shared-file evidence.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5648095999 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11302#pullrequestreview-5648095999). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-26T06:21:20Z. **Review:** CHANGES_REQUESTED --- The author-reported Windows focused tests and combined vector-helper run are useful, and I found no new function-specific concern. The exact PR head is still based on `1c9064435d8e365064b19a1f0560c6498cf23987`, though. Against current `upstream/main` `14c99b52ace303eef1667764670d1d1540140b3d`, it is 1 ahead and 153 behind; `Api.hpp` and `docs/dev/debt/libc.md` changed on main since the merge base (#9269, #10354 and #10608). Please rebase, resolve those shared-file changes, then rerun `guest_vector_algorithms` and `public_headers` on that exact head. The previous review request remains current; I am updating the target main/hash and shared-file evidence.
MarcZX10 commented 2026-10-26 08:09:23 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-26T08:09:23Z.

Review: DISMISSED


I refreshed the exact-head sync check against current upstream/main 204c6747d0a1cbaf932def3dea0778810cc3935e: this head is 1 ahead / 230 behind. The merge preview is clean, but Api.hpp and docs/dev/debt/libc.md changed on main since this branch’s base (#9269, #10354 and #10608); keep those declarations and debt entries when rebasing. The Windows and combined-helper results in the PR are useful but were run on an older base. Please rebase and rerun guest_vector_algorithms and public_headers on the resulting exact head. No new function-specific defect found.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5649019546 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11302#pullrequestreview-5649019546). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-26T08:09:23Z. **Review:** DISMISSED --- I refreshed the exact-head sync check against current `upstream/main` `204c6747d0a1cbaf932def3dea0778810cc3935e`: this head is 1 ahead / 230 behind. The merge preview is clean, but `Api.hpp` and `docs/dev/debt/libc.md` changed on `main` since this branch’s base (#9269, #10354 and #10608); keep those declarations and debt entries when rebasing. The Windows and combined-helper results in the PR are useful but were run on an older base. Please rebase and rerun `guest_vector_algorithms` and `public_headers` on the resulting exact head. No new function-specific defect found.
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!11302
No description provided.