12 #ifndef ODP_ABI_ATOMIC_H_
13 #define ODP_ABI_ATOMIC_H_
30 #if __GCC_ATOMIC_LLONG_LOCK_FREE >= 2
46 #define ODP_ATOMIC_U64_LOCK 1
61 #if defined(__SIZEOF_INT128__) || defined(_ODP_LOCK_FREE_128BIT_ATOMICS)
Standard C language types and definitions for ODP.
struct odp_atomic_u32_s odp_atomic_u32_t
Atomic 32-bit unsigned integer.
struct odp_atomic_u64_s odp_atomic_u64_t
Atomic 64-bit unsigned integer.
struct odp_atomic_u128_s odp_atomic_u128_t
Atomic 128-bit unsigned integer.
#define ODP_ALIGNED(x)
Defines type/struct/variable alignment in bytes.
odp_u128_t v
Actual storage for the atomic variable.
char lock
Spin lock (if needed) used to ensure atomic access.
uint32_t v
Actual storage for the atomic variable.
uint64_t v
Actual storage for the atomic variable.
char lock
Spin lock (if needed) used to ensure atomic access.
128-bit unsigned integer structure