Commit Graph
6 Commits
Author SHA1 Message Date
Dean Galvin 7e07416814 Merge branch 'main' into test/libc-dinkumware-atomics-sizes 2026-10-26 10:31:50 +13:00
boykopovar f38d29fd08 refactor(sdk): add canonical headers for remaining libraries 2026-10-24 23:17:42 +03:00
David 899306f855 test(libc): cover the remaining sizes of the Dinkumware typed atomics
guest_dinkumware_atomics called one or two sizes of each typed _Atomic_
function. It now also runs the other sizes: store 2 and 4, load 1,
exchange 1 and 2, strong compare-exchange 1, 4 and 8 and weak 1 and 2
(a failure writes the observed value back, then a success swaps), fetch_sub
1 and 8, fetch_and 1, 2 and 8, fetch_or 2, 4 and 8, fetch_xor 1, 2 and 4
(each returns the previous value, with wraparound), and is_lock_free 1, 2
and 8.
2026-10-22 14:51:16 +01:00
hypermistandClaude Opus 5.5 7cd18c1d96 test(libc): pin the order handling of the 8-byte __atomic calls
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01RbLgECLQ2bpDM7oe2urGZK
2026-10-21 11:49:54 +13:00
hypermistandClaude Opus 5.5 17b9fb27d3 feat(libc): add the sized __atomic library calls
Export __atomic_load, store, exchange, compare_exchange and fetch_add,
fetch_sub, fetch_and, fetch_or and fetch_xor for 1, 2, 4 and 8 bytes, which
libSceLibcInternal provides for compiler-emitted atomic library calls.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01RbLgECLQ2bpDM7oe2urGZK
2026-10-21 01:38:57 +13:00
hypermistandClaude Opus 5.5 ec3fe412db feat(libc): implement the remaining Dinkumware _Atomic helpers
The 1-, 2- and 8-byte loads, stores, exchanges, compare-exchanges and fetch
operations, _Atomic_is_lock_free_N, the flag and fence functions and the
lock-based generic _Atomic_copy, _Atomic_exchange and _Atomic_compare_exchange_*,
matching the libc.prx bundled with PPSA08427 including its handling of
invalid memory orders.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Q8tinbP1MUpUaDsbNWnGnu
2026-10-19 01:09:51 +02:00