x86: Add SSSE3 predef

This commit is contained in:
Charly Chevalier
2015-07-08 14:43:13 +02:00
parent bce7e9ba56
commit 4f6352e140

View File

@ -9,4 +9,41 @@ http://www.boost.org/LICENSE_1_0.txt)
#ifndef BOOST_PREDEF_HARDWARE_SIMD_X86_SSSE3_H
#define BOOST_PREDEF_HARDWARE_SIMD_X86_SSSE3_H
#include <boost/predef/version_number.h>
/*`
[heading `BOOST_HW_SIMD_X86_SSSE3`]
[@https://en.wikipedia.org/wiki/SSSE3 SSSE3] x86 extension.
Version number is: 3.1.0.
[table
[[__predef_symbol__] [__predef_version__]]
[[`__SSSE3__`] [__predef_detection__]]
]
*/
#define BOOST_HW_SIMD_X86_SSSE3 BOOST_VERSION_NUMBER_NOT_AVAILABLE
#if defined(__SSSE3__)
# undef BOOST_HW_SIMD_X86_SSSE3
# define BOOST_HW_SIMD_X86_SSSE3 BOOST_VERSION_NUMBER(3, 1, 0)
# define BOOST_HW_SIMD_X86_SSSE3_AVAILABLE
#endif
#define BOOST_HW_SIMD_X86_SSSE3_NAME "SSSE3"
#if !defined(BOOST_HW_SIMD_X86) && defined(BOOST_HW_SIMD_X86_SSSE3_AVAILABLE)
# define BOOST_HW_SIMD_X86 BOOST_HW_SIMD_X86_SSSE3
# define BOOST_HW_SIMD_X86_NAME BOOST_HW_SIMD_X86_SSSE3_NAME
#endif
#if defined(BOOST_HW_SIMD_X86_SSSE3_AVAILABLE)
# include <tmmintrin.h>
#endif
#endif
#include <boost/predef/detail/test.h>
BOOST_PREDEF_DECLARE_TEST(BOOST_HW_SIMD_X86_SSSE3, BOOST_HW_SIMD_X86_SSSE3_NAME)