Commit 4a0c670a authored by Ben Pfaff's avatar Ben Pfaff

ovs-atomic: Reintroduce atomic_uint64_t and atomic_int64_t.

This is essentially a revert of commit e09d61c4 ("ovs-atomic: Remove
atomic_uint64_t and atomic_int64_t.")  My fear that some 32-bit platforms
did not support 64-bit integers seems overblown, because OVS 2.6.x uses
the 64-bit atomic_ullong and it is in Debian, which has tons of
Signed-off-by: default avatarBen Pfaff <>
Acked-by: default avatarSimon Horman <>
parent 8acf7ad0
......@@ -69,6 +69,8 @@
* int8_t atomic_int8_t (*)
* int16_t atomic_int16_t (*)
* int32_t atomic_int32_t (*)
* uint64_t atomic_uint64_t (*)
* int64_t atomic_int64_t (*)
* (*) Not specified by C11.
......@@ -378,10 +380,12 @@ typedef ATOMIC(uintptr_t) atomic_uintptr_t;
typedef ATOMIC(uint8_t) atomic_uint8_t;
typedef ATOMIC(uint16_t) atomic_uint16_t;
typedef ATOMIC(uint32_t) atomic_uint32_t;
typedef ATOMIC(uint64_t) atomic_uint64_t;
typedef ATOMIC(int8_t) atomic_int8_t;
typedef ATOMIC(int16_t) atomic_int16_t;
typedef ATOMIC(int32_t) atomic_int32_t;
typedef ATOMIC(int64_t) atomic_int64_t;
/* Relaxed atomic operations.
......@@ -375,6 +375,8 @@ test_atomic_plain(void)
TEST_ATOMIC_TYPE(atomic_int16_t, int16_t);
TEST_ATOMIC_TYPE(atomic_uint32_t, uint32_t);
TEST_ATOMIC_TYPE(atomic_int32_t, int32_t);
TEST_ATOMIC_TYPE(atomic_uint64_t, uint64_t);
TEST_ATOMIC_TYPE(atomic_int64_t, int64_t);
static void
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment