Prefer intrinsics to handrolled atomic ops.
authorTom Fogal <tfogal@alumni.unh.edu>
Mon, 27 Sep 2010 04:32:15 +0000 (22:32 -0600)
committerTom Fogal <tfogal@alumni.unh.edu>
Thu, 30 Sep 2010 19:20:57 +0000 (13:20 -0600)
src/gallium/auxiliary/util/u_atomic.h

index 8434491a42129534314174ec2b68ee1d7ce82492..4ae6def495a1161dccfd921c2f074129d3c2a06e 100644 (file)
 #define PIPE_ATOMIC_MSVC_INTRINSIC
 #elif (defined(PIPE_CC_MSVC) && defined(PIPE_ARCH_X86))
 #define PIPE_ATOMIC_ASM_MSVC_X86                
+#elif defined(PIPE_CC_GCC) && (PIPE_CC_GCC_VERSION >= 401)
+#define PIPE_ATOMIC_GCC_INTRINSIC
 #elif (defined(PIPE_CC_GCC) && defined(PIPE_ARCH_X86))
 #define PIPE_ATOMIC_ASM_GCC_X86
 #elif (defined(PIPE_CC_GCC) && defined(PIPE_ARCH_X86_64))
 #define PIPE_ATOMIC_ASM_GCC_X86_64
-#elif defined(PIPE_CC_GCC) && (PIPE_CC_GCC_VERSION >= 401)
-#define PIPE_ATOMIC_GCC_INTRINSIC
 #else
 #error "Unsupported platform"
 #endif