| /* |
| Copyright Charly Chevalier 2015 |
| Copyright Joel Falcou 2015 |
| Distributed under the Boost Software License, Version 1.0. |
| (See accompanying file LICENSE_1_0.txt or copy at |
| http://www.boost.org/LICENSE_1_0.txt) |
| */ |
| |
| #ifndef BOOST_PREDEF_HARDWARE_SIMD_PPC_H |
| #define BOOST_PREDEF_HARDWARE_SIMD_PPC_H |
| |
| #include <boost/predef/version_number.h> |
| #include <boost/predef/hardware/simd/ppc/versions.h> |
| |
| /*` |
| [heading `BOOST_HW_SIMD_PPC`] |
| |
| The SIMD extension for PowerPC (*if detected*). |
| Version number depends on the most recent detected extension. |
| |
| [table |
| [[__predef_symbol__] [__predef_version__]] |
| |
| [[`__VECTOR4DOUBLE__`] [__predef_detection__]] |
| |
| [[`__ALTIVEC__`] [__predef_detection__]] |
| [[`__VEC__`] [__predef_detection__]] |
| |
| [[`__VSX__`] [__predef_detection__]] |
| ] |
| |
| [table |
| [[__predef_symbol__] [__predef_version__]] |
| |
| [[`__VECTOR4DOUBLE__`] [BOOST_HW_SIMD_PPC_QPX_VERSION]] |
| |
| [[`__ALTIVEC__`] [BOOST_HW_SIMD_PPC_VMX_VERSION]] |
| [[`__VEC__`] [BOOST_HW_SIMD_PPC_VMX_VERSION]] |
| |
| [[`__VSX__`] [BOOST_HW_SIMD_PPC_VSX_VERSION]] |
| ] |
| |
| */ |
| |
| #define BOOST_HW_SIMD_PPC BOOST_VERSION_NUMBER_NOT_AVAILABLE |
| |
| #undef BOOST_HW_SIMD_PPC |
| #if !defined(BOOST_HW_SIMD_PPC) && defined(__VECTOR4DOUBLE__) |
| # define BOOST_HW_SIMD_PPC BOOST_HW_SIMD_PPC_QPX_VERSION |
| #endif |
| #if !defined(BOOST_HW_SIMD_PPC) && defined(__VSX__) |
| # define BOOST_HW_SIMD_PPC BOOST_HW_SIMD_PPC_VSX_VERSION |
| #endif |
| #if !defined(BOOST_HW_SIMD_PPC) && (defined(__ALTIVEC__) || defined(__VEC__)) |
| # define BOOST_HW_SIMD_PPC BOOST_HW_SIMD_PPC_VMX_VERSION |
| #endif |
| |
| #if !defined(BOOST_HW_SIMD_PPC) |
| # define BOOST_HW_SIMD_PPC BOOST_VERSION_NUMBER_NOT_AVAILABLE |
| #else |
| # define BOOST_HW_SIMD_PPC_AVAILABLE |
| #endif |
| |
| #define BOOST_HW_SIMD_PPC_NAME "PPC SIMD" |
| |
| #endif |
| |
| #include <boost/predef/detail/test.h> |
| BOOST_PREDEF_DECLARE_TEST(BOOST_HW_SIMD_PPC, BOOST_HW_SIMD_PPC_NAME) |