From bce7e9ba5625aa89d01af820b0b4d14191360e2f Mon Sep 17 00:00:00 2001 From: Charly Chevalier Date: Wed, 8 Jul 2015 14:40:50 +0200 Subject: [PATCH] x86: Add SSE3 predef --- include/boost/predef/hardware/simd/x86/sse3.h | 37 +++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/include/boost/predef/hardware/simd/x86/sse3.h b/include/boost/predef/hardware/simd/x86/sse3.h index 3ffbdb7..30c22c7 100644 --- a/include/boost/predef/hardware/simd/x86/sse3.h +++ b/include/boost/predef/hardware/simd/x86/sse3.h @@ -9,4 +9,41 @@ http://www.boost.org/LICENSE_1_0.txt) #ifndef BOOST_PREDEF_HARDWARE_SIMD_X86_SSE3_H #define BOOST_PREDEF_HARDWARE_SIMD_X86_SSE3_H +#include + +/*` + [heading `BOOST_HW_SIMD_X86_SSE3`] + + [@https://en.wikipedia.org/wiki/SSE3 SSE3] x86 extension. + Version number is: 3.0.0. + + [table + [[__predef_symbol__] [__predef_version__]] + + [[`__SSE3__`] [__predef_detection__]] + ] + */ + +#define BOOST_HW_SIMD_X86_SSE3 BOOST_VERSION_NUMBER_NOT_AVAILABLE + +#if defined(__SSE3__) +# undef BOOST_HW_SIMD_X86_SSE3 +# define BOOST_HW_SIMD_X86_SSE3 BOOST_VERSION_NUMBER(3, 0, 0) +# define BOOST_HW_SIMD_X86_SSE3_AVAILABLE #endif + +#define BOOST_HW_SIMD_X86_SSE3_NAME "SSE3" + +#if !defined(BOOST_HW_SIMD_X86) && defined(BOOST_HW_SIMD_X86_SSE3_AVAILABLE) +# define BOOST_HW_SIMD_X86 BOOST_HW_SIMD_X86_SSE3 +# define BOOST_HW_SIMD_X86_NAME BOOST_HW_SIMD_X86_SSE3_NAME +#endif + +#if defined(BOOST_HW_SIMD_X86_SSE3_AVAILABLE) +# include +#endif + +#endif + +#include +BOOST_PREDEF_DECLARE_TEST(BOOST_HW_SIMD_X86_SSE3, BOOST_HW_SIMD_X86_SSE3_NAME)