14 static_assert(CHAR_BIT == 8,
"char is not 8 bit on this platform");
15 static_assert(
sizeof(atomic_schar) * CHAR_BIT == 8,
"atomic_schar is not 8 bit");
16 static_assert(
sizeof(atomic_short) * CHAR_BIT == 16,
"atomic_short is not 16 bit");
17 static_assert(
sizeof(atomic_int) * CHAR_BIT == 32,
"atomic_int is not 32 bit");
18 static_assert(
sizeof(atomic_long) * CHAR_BIT == 64,
"atomic_long is not 64 bit");
20 static_assert(
sizeof(atomic_uchar) * CHAR_BIT == 8,
"atomic_uchar is not 8 bit");
21 static_assert(
sizeof(atomic_ushort) * CHAR_BIT == 16,
"atomic_ushort is not 16 bit");
22 static_assert(
sizeof(atomic_uint) * CHAR_BIT == 32,
"atomic_int is not 32 bit");
23 static_assert(
sizeof(atomic_ulong) * CHAR_BIT == 64,
"atomic_long is not 64 bit");
25 static_assert(ATOMIC_BOOL_LOCK_FREE == 2,
"ATOMIC_BOOL is not lock free");
26 static_assert(ATOMIC_CHAR_LOCK_FREE == 2,
"ATOMIC_CHAR is not lock free");
27 static_assert(ATOMIC_CHAR16_T_LOCK_FREE == 2,
"ATOMIC_CHAR16_T is not lock free");
28 static_assert(ATOMIC_CHAR32_T_LOCK_FREE == 2,
"ATOMIC_CHAR32_T is not lock free");
29 static_assert(ATOMIC_WCHAR_T_LOCK_FREE == 2,
"ATOMIC_WCHAR_T is not lock free");
30 static_assert(ATOMIC_SHORT_LOCK_FREE == 2,
"ATOMIC_SHORT is not lock free");
31 static_assert(ATOMIC_INT_LOCK_FREE == 2,
"ATOMIC_INT is not lock free");
32 static_assert(ATOMIC_LONG_LOCK_FREE == 2,
"ATOMIC_LONG is not lock free");
33 static_assert(ATOMIC_LLONG_LOCK_FREE == 2,
"ATOMIC_LLONG is not lock free");
34 static_assert(ATOMIC_POINTER_LOCK_FREE == 2,
"ATOMIC_POINTER is not lock free");
atomic_ulong atomic_uint64_t
Atomic unsigned 64-bit integer. Supplied because C11 does not mandate fixed width atomic support...
Definition: ym_atomic.h:102
atomic_uint atomic_uint32_t
Atomic unsigned 32-bit integer. Supplied because C11 does not mandate fixed width atomic support...
Definition: ym_atomic.h:101
atomic_long atomic_int64_t
Atomic signed 64-bit integer. Supplied because C11 does not mandate fixed width atomic support...
Definition: ym_atomic.h:68
atomic_int atomic_int32_t
Atomic signed 32-bit integer. Supplied because C11 does not mandate fixed width atomic support...
Definition: ym_atomic.h:67
atomic_ushort atomic_uint16_t
Atomic unsigned 16-bit integer. Supplied because C11 does not mandate fixed width atomic support...
Definition: ym_atomic.h:100
atomic_schar atomic_int8_t
Atomic signed 8-bit integer. Supplied because C11 does not mandate fixed width atomic support...
Definition: ym_atomic.h:65
atomic_uchar atomic_uint8_t
Atomic unsigned 8-bit integer. Supplied because C11 does not mandate fixed width atomic support...
Definition: ym_atomic.h:99
atomic_short atomic_int16_t
Atomic signed 16-bit integer. Supplied because C11 does not mandate fixed width atomic support...
Definition: ym_atomic.h:66