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