mirror of
https://github.com/ziglang/zig.git
synced 2026-01-30 11:13:38 +00:00
Some architectures (AMDGPU) do not support atomic exchange/fetch for small types (for AMDGPU: 8- and 16-bit ints). For these types atomic fetch and atomic exchange needs to be implemeted using atomic operations on a wider type using cmpxchg.