Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:48:05

0001 /*
0002 Copyright Charly Chevalier 2015
0003 Copyright Joel Falcou 2015
0004 Distributed under the Boost Software License, Version 1.0.
0005 (See accompanying file LICENSE_1_0.txt or copy at
0006 http://www.boost.org/LICENSE_1_0.txt)
0007 */
0008 
0009 #ifndef BOOST_PREDEF_HARDWARE_SIMD_PPC_H
0010 #define BOOST_PREDEF_HARDWARE_SIMD_PPC_H
0011 
0012 #include <boost/predef/version_number.h>
0013 #include <boost/predef/hardware/simd/ppc/versions.h>
0014 
0015 /* tag::reference[]
0016 = `BOOST_HW_SIMD_PPC`
0017 
0018 The SIMD extension for PowerPC (*if detected*).
0019 Version number depends on the most recent detected extension.
0020 
0021 [options="header"]
0022 |===
0023 | {predef_symbol} | {predef_version}
0024 
0025 | `+__VECTOR4DOUBLE__+` | {predef_detection}
0026 
0027 | `+__ALTIVEC__+` | {predef_detection}
0028 | `+__VEC__+` | {predef_detection}
0029 
0030 | `+__VSX__+` | {predef_detection}
0031 |===
0032 
0033 [options="header"]
0034 |===
0035 | {predef_symbol} | {predef_version}
0036 
0037 | `+__VECTOR4DOUBLE__+` | BOOST_HW_SIMD_PPC_QPX_VERSION
0038 
0039 | `+__ALTIVEC__+` | BOOST_HW_SIMD_PPC_VMX_VERSION
0040 | `+__VEC__+` | BOOST_HW_SIMD_PPC_VMX_VERSION
0041 
0042 | `+__VSX__+` | BOOST_HW_SIMD_PPC_VSX_VERSION
0043 |===
0044 
0045 */ // end::reference[]
0046 
0047 #define BOOST_HW_SIMD_PPC BOOST_VERSION_NUMBER_NOT_AVAILABLE
0048 
0049 #undef BOOST_HW_SIMD_PPC
0050 #if !defined(BOOST_HW_SIMD_PPC) && defined(__VECTOR4DOUBLE__)
0051 #   define BOOST_HW_SIMD_PPC BOOST_HW_SIMD_PPC_QPX_VERSION
0052 #endif
0053 #if !defined(BOOST_HW_SIMD_PPC) && defined(__VSX__)
0054 #   define BOOST_HW_SIMD_PPC BOOST_HW_SIMD_PPC_VSX_VERSION
0055 #endif
0056 #if !defined(BOOST_HW_SIMD_PPC) && (defined(__ALTIVEC__) || defined(__VEC__))
0057 #   define BOOST_HW_SIMD_PPC BOOST_HW_SIMD_PPC_VMX_VERSION
0058 #endif
0059 
0060 #if !defined(BOOST_HW_SIMD_PPC)
0061 #   define BOOST_HW_SIMD_PPC BOOST_VERSION_NUMBER_NOT_AVAILABLE
0062 #else
0063 #   define BOOST_HW_SIMD_PPC_AVAILABLE
0064 #endif
0065 
0066 #define BOOST_HW_SIMD_PPC_NAME "PPC SIMD"
0067 
0068 #endif
0069 
0070 #include <boost/predef/detail/test.h>
0071 BOOST_PREDEF_DECLARE_TEST(BOOST_HW_SIMD_PPC, BOOST_HW_SIMD_PPC_NAME)