mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-11-07 13:39:55 +00:00
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.