From 132509ee5dac9e2105a4ae00b502135856f11fab Mon Sep 17 00:00:00 2001 From: Charly Chevalier Date: Thu, 9 Jul 2015 16:10:36 +0200 Subject: [PATCH] Add doc + _AVAILABLE for simd/x86.h --- include/boost/predef/hardware/simd/x86.h | 33 ++++++++++++++++++++---- 1 file changed, 28 insertions(+), 5 deletions(-) diff --git a/include/boost/predef/hardware/simd/x86.h b/include/boost/predef/hardware/simd/x86.h index 7d32174..e9b5761 100644 --- a/include/boost/predef/hardware/simd/x86.h +++ b/include/boost/predef/hardware/simd/x86.h @@ -9,20 +9,43 @@ http://www.boost.org/LICENSE_1_0.txt) #ifndef BOOST_PREDEF_HARDWARE_SIMD_X86_H #define BOOST_PREDEF_HARDWARE_SIMD_X86_H -// from the newest to the oldest +/*` + [heading `BOOST_HW_SIMD_X86`] + + The SIMD extension for x86 (if detected). + Version number depends on the detected extension. + + BOOST_HW_SIMD_X86 is defined by the first detected extension. They are + checked from the newest to the oldest. (AVX2 -> AVX -> ... -> SSE2 -> SSE) + + [table + [[__predef_symbol__] [__predef_version__]] + + [[`BOOST_HW_SIMD_X86`] [__predef_detection__]] + [[`BOOST_HW_SIMD_X86`] [V.R.P]] + ] + */ + +// From the newest to the oldest #include #include -#include -#include -#include #include #include #include #include -#include #include #include #include #include +// Those ones are more like options than real extensions +#include +#include +#include +#include + +#if defined(BOOST_HW_SIMD_X86) +# define BOOST_HW_SIMD_X86_AVAILABLE +#endif + #endif