From e03bbc94cd063e5365a12ee1a4ec33e1eb4e1cab Mon Sep 17 00:00:00 2001 From: Stefan Sayer Date: Wed, 2 Feb 2011 15:14:25 +0100 Subject: [PATCH] CAS no test for __GCC_HAVE_SYNC_COMPARE_AND_SWAP_8 64 bit ops are emulated anyway also removed warning if atomic ops are emulated with locks - the performance impact is probably negligible anyway --- core/atomic_types.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/atomic_types.h b/core/atomic_types.h index 474f1693..d1bd84f9 100644 --- a/core/atomic_types.h +++ b/core/atomic_types.h @@ -13,7 +13,7 @@ ) || \ (defined(__linux__) && \ ( \ - (defined(__i386__) && (defined(__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4) && defined(__GCC_HAVE_SYNC_COMPARE_AND_SWAP_8))) || \ + (defined(__i386__) && (defined(__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4))) || \ defined(__ia64__) || \ defined(__x86_64__) || \ (defined(__powerpc__) && !defined(__powerpc64__)) || \ @@ -23,7 +23,7 @@ ) #define HAVE_ATOMIC_CAS 1 #else -#warning Compare and Swap is not supported on this architecture +// #warning Compare and Swap is not supported on this architecture #define HAVE_ATOMIC_CAS 0 #endif