]> granicus.if.org Git - libatomic_ops/commitdiff
Fix compare_double_and_swap_double_full definition condition in emul_cas
authorIvan Maidanski <ivmai@mail.ru>
Tue, 2 Oct 2012 07:12:24 +0000 (11:12 +0400)
committerIvan Maidanski <ivmai@mail.ru>
Mon, 8 Oct 2012 15:35:06 +0000 (17:35 +0200)
* src/atomic_ops/sysdeps/emul_cas.h
(AO_compare_double_and_swap_double_full): Test (define if)
AO_HAVE_compare_double_and_swap_double_full macro instead of
AO_HAVE_compare_double_and_swap_double.

src/atomic_ops/sysdeps/emul_cas.h

index 10da0b7f9dff846e4d1831af0e9988ecfb67b7d7..cd013f4cf604379d872956deba15fcbdc2353191 100644 (file)
@@ -56,7 +56,7 @@ void AO_store_full_emulation(volatile AO_t *addr, AO_t val);
        AO_compare_and_swap_emulation(addr, old, newval)
 #define AO_HAVE_compare_and_swap_full
 
-#ifndef AO_HAVE_compare_double_and_swap_double
+#ifndef AO_HAVE_compare_double_and_swap_double_full
 # define AO_compare_double_and_swap_double_full(addr, old1, old2, \
                                                 newval1, newval2) \
         AO_compare_double_and_swap_double_emulation(addr, old1, old2, \