Module: sems Branch: master Commit: e03bbc94cd063e5365a12ee1a4ec33e1eb4e1cab URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sems/?a=commit;h=e03bbc94cd063e5365a12ee1a4ec33e1eb4e1cab
Author: Stefan Sayer <[email protected]> Committer: Stefan Sayer <[email protected]> Date: Wed Feb 2 15:14:25 2011 +0100 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 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/atomic_types.h b/core/atomic_types.h index 474f169..d1bd84f 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 _______________________________________________ Semsdev mailing list [email protected] http://lists.iptel.org/mailman/listinfo/semsdev
