From a01ebb6605926046faf1e152b349a5634f77474d Mon Sep 17 00:00:00 2001 From: Charly Chevalier Date: Wed, 8 Jul 2015 16:52:45 +0200 Subject: [PATCH] x86: Add SSE4.1 predef --- .../boost/predef/hardware/simd/x86/sse4_1.h | 37 +++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/include/boost/predef/hardware/simd/x86/sse4_1.h b/include/boost/predef/hardware/simd/x86/sse4_1.h index efd4489..2f4b0a8 100644 --- a/include/boost/predef/hardware/simd/x86/sse4_1.h +++ b/include/boost/predef/hardware/simd/x86/sse4_1.h @@ -9,4 +9,41 @@ http://www.boost.org/LICENSE_1_0.txt) #ifndef BOOST_PREDEF_HARDWARE_SIMD_X86_SSE4_1_H #define BOOST_PREDEF_HARDWARE_SIMD_X86_SSE4_1_H +#include + +/*` + [heading `BOOST_HW_SIMD_X86_SSE4_1`] + + [@https://en.wikipedia.org/wiki/SSE4#SSE4.1 SSE4_1] x86 extension. + Version number is: 4.1.0. + + [table + [[__predef_symbol__] [__predef_version__]] + + [[`__SSE4_1__`] [__predef_detection__]] + ] + */ + +#define BOOST_HW_SIMD_X86_SSE4_1 BOOST_VERSION_NUMBER_NOT_AVAILABLE + +#if defined(__SSE4_1__) +# undef BOOST_HW_SIMD_X86_SSE4_1 +# define BOOST_HW_SIMD_X86_SSE4_1 BOOST_VERSION_NUMBER(4, 1, 0) +# define BOOST_HW_SIMD_X86_SSE4_1_AVAILABLE #endif + +#define BOOST_HW_SIMD_X86_SSE4_1_NAME "SSE4.1" + +#if !defined(BOOST_HW_SIMD_X86) && defined(BOOST_HW_SIMD_X86_SSE4_1_AVAILABLE) +# define BOOST_HW_SIMD_X86 BOOST_HW_SIMD_X86_SSE4_1 +# define BOOST_HW_SIMD_X86_NAME BOOST_HW_SIMD_X86_SSE4_1_NAME +#endif + +#if defined(BOOST_HW_SIMD_X86_SSE4_1_AVAILABLE) +# include +#endif + +#endif + +#include +BOOST_PREDEF_DECLARE_TEST(BOOST_HW_SIMD_X86_SSE4_1, BOOST_HW_SIMD_X86_SSE4_1_NAME)