From: Ivan Maidanski Date: Mon, 8 Oct 2012 11:04:01 +0000 (+0400) Subject: Remove generalized compare_double_and_swap_double from gcc/x86.h X-Git-Tag: libatomic_ops-7_4_0~72^2~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=35545f5b179ee386f292f7583e65c4acfda5bc9c;p=libatomic_ops Remove generalized compare_double_and_swap_double from gcc/x86.h * 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. --- diff --git a/src/atomic_ops/sysdeps/gcc/x86.h b/src/atomic_ops/sysdeps/gcc/x86.h index c8d8ade..3669429 100644 --- a/src/atomic_ops/sysdeps/gcc/x86.h +++ b/src/atomic_ops/sysdeps/gcc/x86.h @@ -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