ovs-atomic: Remove atomic_uint64_t and atomic_int64_t.
authorSimon Horman <horms@verge.net.au>
Wed, 14 May 2014 07:19:35 +0000 (16:19 +0900)
committerBen Pfaff <blp@nicira.com>
Fri, 16 May 2014 16:52:40 +0000 (09:52 -0700)
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 <yamamoto@valinux.co.jp>
Signed-off-by: Simon Horman <horms@verge.net.au>
Signed-off-by: Ben Pfaff <blp@nicira.com>
lib/ovs-atomic.h
tests/test-atomic.c

index 01ac8c4..c21b7ee 100644 (file)
@@ -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 {
index b1a5d9d..24456d8 100644 (file)
@@ -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();
 }