From: Yedidya Feldblum Date: Wed, 29 Jul 2015 02:55:09 +0000 (-0700) Subject: Fix Build: FOLLY_SSE and preprocessor floats. X-Git-Tag: v0.53.0~41 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=408bb70871a0529517957c6c388062ad79bbd197;p=folly.git Fix Build: FOLLY_SSE and preprocessor floats. Summary: [Folly] Fix Build: FOLLY_SSE and preprocessor floats. Float values for preprocessor symbols are not a thing. Reviewed By: @​fyan Differential Revision: D2289436 --- 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