Delete small_vector's OneBitMutex policy
[folly.git] / folly / RWSpinLock.h
index 84eacdafd9d351a0813cdc837f7cb7e8e3b4c474..dbef63885531a2f728f7418e6b6e7a32efa34259 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright 2012 Facebook, Inc.
+ * Copyright 2014 Facebook, Inc.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -106,8 +106,11 @@ pthread_rwlock_t Read        728698     24us       101ns     7.28ms     194us
 
 */
 
-#if defined(__GNUC__) && (defined(__i386) || defined(__x86_64__) || \
-    defined(ARCH_K8))
+#include "folly/Portability.h"
+
+#if defined(__GNUC__) && !defined(__clang__) && \
+  (defined(__i386) || FOLLY_X64 || \
+   defined(ARCH_K8))
 #define RW_SPINLOCK_USE_X86_INTRINSIC_
 #include <x86intrin.h>
 #else