123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168 |
- #include <boost/predef/hardware/simd/x86.h>
- #include <boost/predef/hardware/simd/x86_amd.h>
- #include <boost/predef/hardware/simd/arm.h>
- #include <boost/predef/hardware/simd/ppc.h>
- #ifndef BOOST_PREDEF_HARDWARE_SIMD_H
- #define BOOST_PREDEF_HARDWARE_SIMD_H
- #include <boost/predef/version_number.h>
-
- #if defined(BOOST_HW_SIMD_ARM_AVAILABLE) && defined(BOOST_HW_SIMD_PPC_AVAILABLE) ||\
- defined(BOOST_HW_SIMD_ARM_AVAILABLE) && defined(BOOST_HW_SIMD_X86_AVAILABLE) ||\
- defined(BOOST_HW_SIMD_PPC_AVAILABLE) && defined(BOOST_HW_SIMD_X86_AVAILABLE)
- # error "Multiple SIMD architectures detected, this cannot happen!"
- #endif
- #if defined(BOOST_HW_SIMD_X86_AVAILABLE) && defined(BOOST_HW_SIMD_X86_AMD_AVAILABLE)
-
-
- # if BOOST_HW_SIMD_X86 >= BOOST_HW_SIMD_X86_AMD
- # define BOOST_HW_SIMD BOOST_HW_SIMD_X86
- # else
- # define BOOST_HW_SIMD BOOST_HW_SIMD_X86_AMD
- # endif
- #endif
- #if !defined(BOOST_HW_SIMD)
-
- # if defined(BOOST_HW_SIMD_X86_AVAILABLE)
- # define BOOST_HW_SIMD BOOST_HW_SIMD_X86
- # endif
- # if defined(BOOST_HW_SIMD_X86_AMD_AVAILABLE)
- # define BOOST_HW_SIMD BOOST_HW_SIMD_X86_AMD
- # endif
- #endif
- #if defined(BOOST_HW_SIMD_ARM_AVAILABLE)
- # define BOOST_HW_SIMD BOOST_HW_SIMD_ARM
- #endif
- #if defined(BOOST_HW_SIMD_PPC_AVAILABLE)
- # define BOOST_HW_SIMD BOOST_HW_SIMD_PPC
- #endif
- #if defined(BOOST_HW_SIMD)
- # define BOOST_HW_SIMD_AVAILABLE
- #else
- # define BOOST_HW_SIMD BOOST_VERSION_NUMBER_NOT_AVAILABLE
- #endif
- #define BOOST_HW_SIMD_NAME "Hardware SIMD"
- #endif
- #include <boost/predef/detail/test.h>
- BOOST_PREDEF_DECLARE_TEST(BOOST_HW_SIMD, BOOST_HW_SIMD_NAME)
|