From: Alexander Kabaev Date: Tue, 28 Nov 2017 19:42:20 +0000 (-0800) Subject: Unbreak folly on x86-32 X-Git-Tag: v2017.12.04.00~27 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=6e6f346d41a5b3e431093990db93db141838495f;p=folly.git Unbreak folly on x86-32 Summary: _mm_cvtsi64_si128 and _mm_cvtsi128_si64 intrinsics are available on x86_64 only, so do not enable SSE instructions when compiling for 32 bits. Reviewed By: yfeldblum Differential Revision: D6422271 fbshipit-source-id: a3c5cf3f2ee4b47d5a1edcf93cfff3d1f3fe907e --- diff --git a/folly/RWSpinLock.h b/folly/RWSpinLock.h index 8edd6b32..94f48028 100644 --- a/folly/RWSpinLock.h +++ b/folly/RWSpinLock.h @@ -148,7 +148,7 @@ pthread_rwlock_t Read 728698 24us 101ns 7.28ms 194us #endif // iOS doesn't define _mm_cvtsi64_si128 and friends -#if (FOLLY_SSE >= 2) && !FOLLY_MOBILE +#if (FOLLY_SSE >= 2) && !FOLLY_MOBILE && FOLLY_X64 #define RW_SPINLOCK_USE_SSE_INSTRUCTIONS_ #else #undef RW_SPINLOCK_USE_SSE_INSTRUCTIONS_