From 58c9b8d34fe67435523540963164750615fa6d1e Mon Sep 17 00:00:00 2001 From: Simon Horman Date: Wed, 14 May 2014 16:19:35 +0900 Subject: [PATCH] ovs-atomic: Remove atomic_uint64_t and atomic_int64_t. Some concern has been raised by Ben Pfaff that atomic_uint64_t may not be portable. In particular on 32bit platforms that do not have atomic 64bit integers. Now that there are no longer any users of atomic_uint64_t remove it entirely. Also remove atomic_int64_t which has no users. Cc: YAMAMOTO Takashi Signed-off-by: Simon Horman Signed-off-by: Ben Pfaff --- lib/ovs-atomic.h | 4 ---- tests/test-atomic.c | 2 -- 2 files changed, 6 deletions(-) diff --git a/lib/ovs-atomic.h b/lib/ovs-atomic.h index 01ac8c4f7..c21b7eefe 100644 --- a/lib/ovs-atomic.h +++ b/lib/ovs-atomic.h @@ -69,8 +69,6 @@ * 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. * @@ -296,12 +294,10 @@ 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; /* Reference count. */ struct ovs_refcount { diff --git a/tests/test-atomic.c b/tests/test-atomic.c index b1a5d9da4..24456d8d1 100644 --- a/tests/test-atomic.c +++ b/tests/test-atomic.c @@ -99,8 +99,6 @@ test_atomic_main(int argc OVS_UNUSED, char *argv[] OVS_UNUSED) 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); test_atomic_flag(); } -- 2.20.1