]> granicus.if.org Git - libatomic_ops/commitdiff
Remove generalized compare_double_and_swap_double from gcc/x86.h
authorIvan Maidanski <ivmai@mail.ru>
Mon, 8 Oct 2012 11:04:01 +0000 (15:04 +0400)
committerIvan Maidanski <ivmai@mail.ru>
Mon, 8 Oct 2012 11:04:01 +0000 (15:04 +0400)
* src/atomic_ops/sysdeps/gcc/x86.h
(AO_compare_double_and_swap_double_full,
AO_HAVE_compare_double_and_swap_double_full): Remove already defined
in generalize.h file; remove TODO item.

src/atomic_ops/sysdeps/gcc/x86.h

index c8d8adee7a4159ceb1c49d5b9f229ac9ffbe1ef2..366942926b4e4a5b4b9c7fbe915c5fe93a94d93c 100644 (file)
@@ -256,22 +256,6 @@ AO_compare_double_and_swap_double_full(volatile AO_double_t *addr,
   }
 # define AO_HAVE_double_compare_and_swap_full
 
-  /* TODO: Remove if generalized.       */
-  AO_INLINE int
-  AO_compare_double_and_swap_double_full(volatile AO_double_t *addr,
-                                         AO_t old_val1, AO_t old_val2,
-                                         AO_t new_val1, AO_t new_val2)
-  {
-    AO_double_t old_w;
-    AO_double_t new_w;
-    old_w.AO_val1 = old_val1;
-    old_w.AO_val2 = old_val2;
-    new_w.AO_val1 = new_val1;
-    new_w.AO_val2 = new_val2;
-    return AO_double_compare_and_swap_full(addr, old_w, new_w);
-  }
-# define AO_HAVE_compare_double_and_swap_double_full
-
 #endif /* x86_64 && ILP32 */
 
 #define AO_T_IS_INT