PPC: Add VSX predef

This commit is contained in:
Charly Chevalier
2015-07-09 10:02:20 +02:00
parent 29a0d11553
commit 4b45a0faf1

View File

@ -9,4 +9,37 @@ http://www.boost.org/LICENSE_1_0.txt)
#ifndef BOOST_PREDEF_HARDWARE_SIMD_PPC_VSX_H #ifndef BOOST_PREDEF_HARDWARE_SIMD_PPC_VSX_H
#define BOOST_PREDEF_HARDWARE_SIMD_PPC_VSX_H #define BOOST_PREDEF_HARDWARE_SIMD_PPC_VSX_H
#include <boost/predef/version_number.h>
/*`
[heading `BOOST_HW_SIMD_PPC_VSX`]
[@https://en.wikipedia.org/wiki/AltiVec#VSX VSX] powerpc extension.
Version number is: 1.1.0.
[table
[[__predef_symbol__] [__predef_version__]]
[[`__VSX__`] [__predef_detection__]]
]
*/
#define BOOST_HW_SIMD_PPC_VSX BOOST_VERSION_NUMBER_NOT_AVAILABLE
#if defined(__VSX__)
# undef BOOST_HW_SIMD_PPC_VSX
# define BOOST_HW_SIMD_PPC_VSX BOOST_VERSION_NUMBER(1, 1, 0)
# define BOOST_HW_SIMD_PPC_VSX_AVAILABLE
#endif #endif
#define BOOST_HW_SIMD_PPC_VSX_NAME "VSX"
#if !defined(BOOST_HW_SIMD_PPC) && defined(BOOST_HW_SIMD_PPC_VSX_AVAILABLE)
# define BOOST_HW_SIMD_PPC BOOST_HW_SIMD_PPC_VSX
# define BOOST_HW_SIMD_PPC_NAME BOOST_HW_SIMD_PPC_VSX_NAME
#endif
#endif
#include <boost/predef/detail/test.h>
BOOST_PREDEF_DECLARE_TEST(BOOST_HW_SIMD_PPC_VSX, BOOST_HW_SIMD_PPC_VSX_NAME)