compiler_rt: cmpxchg-based atomic fetch/exchange for small types

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.
9006cd9d09Robin Voetter committed on 10/12/2022, 6:36:14 PMparent8894d1c
1 file changedLine totals unavailable