x86: Add SSE3 predef

This commit is contained in:
Charly Chevalier
2015-07-08 14:40:50 +02:00
parent 67250ecae2
commit bce7e9ba56

View File

@ -9,4 +9,41 @@ http://www.boost.org/LICENSE_1_0.txt)
#ifndef BOOST_PREDEF_HARDWARE_SIMD_X86_SSE3_H #ifndef BOOST_PREDEF_HARDWARE_SIMD_X86_SSE3_H
#define BOOST_PREDEF_HARDWARE_SIMD_X86_SSE3_H #define BOOST_PREDEF_HARDWARE_SIMD_X86_SSE3_H
#include <boost/predef/version_number.h>
/*`
[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 #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 <pmmintrin.h>
#endif
#endif
#include <boost/predef/detail/test.h>
BOOST_PREDEF_DECLARE_TEST(BOOST_HW_SIMD_X86_SSE3, BOOST_HW_SIMD_X86_SSE3_NAME)