mirror of
https://github.com/ziglang/zig.git
synced 2025-12-16 03:03:09 +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.