summaryrefslogtreecommitdiff
path: root/src/gallium/auxiliary/util/u_atomic.h
diff options
context:
space:
mode:
authorTom Fogal <tfogal@alumni.unh.edu>2010-09-26 22:32:15 -0600
committerTom Fogal <tfogal@alumni.unh.edu>2010-09-26 22:32:15 -0600
commit337dace22dc2b0eab2372375f1574d94b894ef84 (patch)
tree773cad681f64ac58d8f681f156093c468eca8165 /src/gallium/auxiliary/util/u_atomic.h
parentcc32ff741c5d32a66531a586b1f9268b94846c58 (diff)
Prefer intrinsics to handrolled atomic ops.
Diffstat (limited to 'src/gallium/auxiliary/util/u_atomic.h')
-rw-r--r--src/gallium/auxiliary/util/u_atomic.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/auxiliary/util/u_atomic.h b/src/gallium/auxiliary/util/u_atomic.h
index 8434491a42..4ae6def495 100644
--- a/src/gallium/auxiliary/util/u_atomic.h
+++ b/src/gallium/auxiliary/util/u_atomic.h
@@ -27,12 +27,12 @@
#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