From 408bb70871a0529517957c6c388062ad79bbd197 Mon Sep 17 00:00:00 2001 From: Yedidya Feldblum Date: Tue, 28 Jul 2015 19:55:09 -0700 Subject: [PATCH] Fix Build: FOLLY_SSE and preprocessor floats. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Summary: [Folly] Fix Build: FOLLY_SSE and preprocessor floats. Float values for preprocessor symbols are not a thing. Reviewed By: @​fyan Differential Revision: D2289436 --- folly/Portability.h | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/folly/Portability.h b/folly/Portability.h index 23568db0..c81ce638 100644 --- a/folly/Portability.h +++ b/folly/Portability.h @@ -269,25 +269,33 @@ typedef SSIZE_T ssize_t; #ifdef _M_IX86_FP # define FOLLY_SSE _M_IX86_FP +# define FOLLY_SSE_MINOR 0 #endif #endif #ifndef FOLLY_SSE # if defined(__SSE4_2__) -# define FOLLY_SSE 4.2 +# define FOLLY_SSE 4 +# define FOLLY_SSE_MINOR 2 # elif defined(__SSE4_1__) -# define FOLLY_SSE 4.1 +# define FOLLY_SSE 4 +# define FOLLY_SSE_MINOR 1 # elif defined(__SSE4__) # define FOLLY_SSE 4 +# define FOLLY_SSE_MINOR 0 # elif defined(__SSE3__) # define FOLLY_SSE 3 +# define FOLLY_SSE_MINOR 0 # elif defined(__SSE2__) # define FOLLY_SSE 2 +# define FOLLY_SSE_MINOR 0 # elif defined(__SSE__) # define FOLLY_SSE 1 +# define FOLLY_SSE_MINOR 0 # else # define FOLLY_SSE 0 +# define FOLLY_SSE_MINOR 0 # endif #endif -- 2.34.1