feat(libc): implement 64-bit atomic fetch helpers #11729
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/11729"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by iAbdulrrahman on 2026-10-27T06:05:53Z.
What
Implement the 64-bit atomic fetch helpers
_Fetch_add_8(JbQw6W62UwI),_Fetch_and_8(pxFnS1okTFE),_Fetch_or_8(ixWEOmOBavk), and_Fetch_xor_8(YhaOeniKcoA) inlibc, completing the set of Dinkumware sequential bitwise and arithmetic fetch exports. Extendguest_dinkumware_fetch_teststo cover width 8 andadd, verifying returned original values, bitwise results, neighboring storage bounds, concurrency, and sequential consistency ordering litmus tests for unpatched and patched libraries.Tested
Windows 11:
guest_dinkumware_fetch_testspassed for all operations (add,and,or,xor) at width 8, as well as widths 1, 2, and 4 on unpatched and patchedlibc.prx.tools/check_conventions.py --base origin/mainpassed.tools/pr_overlap.py --branch feat/libc-fetch-64-bit-atomicsconfirmed zero overlap with all open pull requests.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-27T06:26:12Z.
Review: APPROVED
Reviewed exact head
9f77f256a9d7578fc58c58f98ba9a6b86b9c2930. I built the exactguest_dinkumware_fetch_teststarget and ran the fullguest_dinkumware_fetch_CTest group locally: all 26 raw/patched tests across existing widths and the new 64-bit helpers passed. This includes return values, arithmetic/bitwise results, guarded neighbors, concurrent history, and the ordering litmus.git diff --checkand the current-base conventions check pass. Hosted eligibility, intake, labels, conventions, report, and relinker checks pass; product Linux/Windows jobs are skipped by path policy, and one unrelated macOS Intel Release registration job is still queued. The author also reports the Windows raw/patched tests passing. I found no blocker and approve.