]> granicus.if.org Git - libatomic_ops/commitdiff
Remote duplicate definition of test_and_set_acquire in generalize.h
authorIvan Maidanski <ivmai@mail.ru>
Wed, 2 Jan 2013 21:02:08 +0000 (01:02 +0400)
committerIvan Maidanski <ivmai@mail.ru>
Wed, 2 Jan 2013 21:02:08 +0000 (01:02 +0400)
* src/atomic_ops/generalize.h (AO_test_and_set_acquire): Remove
redundant (duplicate) definition.

src/atomic_ops/generalize.h

index b4ededb157bbf6e0a963cbc1639f3364af5c41fb..a496028f4d344f0a3790ae1588700549324a5ea7 100644 (file)
     }
 #   define AO_HAVE_test_and_set
 # endif /* AO_HAVE_compare_and_swap */
-
-# if defined(AO_HAVE_test_and_set) && defined(AO_HAVE_nop_full) \
-     && !defined(AO_HAVE_test_and_set_acquire)
-    AO_INLINE AO_TS_VAL_t
-    AO_test_and_set_acquire(volatile AO_TS_t *addr)
-    {
-      AO_TS_VAL_t result = AO_test_and_set(addr);
-      AO_nop_full();
-      return result;
-    }
-#   define AO_HAVE_test_and_set_acquire
-# endif
 #endif /* No prior test and set */
 
 /* Nop */
 # define AO_HAVE_nop_write
 #endif
 
-/* NEC LE-IT: Test and set */
+/* Test_and_set */
 #if defined(AO_HAVE_test_and_set) && defined(AO_HAVE_nop_full) \
     && !defined(AO_HAVE_test_and_set_release)
 # define AO_test_and_set_release(addr) (AO_nop_full(), AO_test_and_set(addr))
 # define AO_HAVE_test_and_set_acquire
 #endif
 
-/* Test_and_set */
 #if defined(AO_HAVE_test_and_set_full)
 # if !defined(AO_HAVE_test_and_set_release)
 #   define AO_test_and_set_release(addr) AO_test_and_set_full(addr)