SIMD: Use _AVAILABLE instead of tag when detecting multiple architectures

This commit is contained in:
Charly Chevalier
2015-07-10 16:58:49 +02:00
parent 5ba0a2c5ab
commit 3626c9b905

View File

@ -32,10 +32,9 @@ http://www.boost.org/LICENSE_1_0.txt)
// We check if SIMD extension of multiples architectures have been detected, // We check if SIMD extension of multiples architectures have been detected,
// if yes, then this is an error! // if yes, then this is an error!
#if \ #if defined(BOOST_HW_SIMD_ARM_AVAILABLE) && defined(BOOST_HW_SIMD_PPC_AVAILABLE) ||\
BOOST_HW_SIMD_ARM && BOOST_HW_SIMD_PPC ||\ defined(BOOST_HW_SIMD_ARM_AVAILABLE) && defined(BOOST_HW_SIMD_X86_AVAILABLE) ||\
BOOST_HW_SIMD_ARM && BOOST_HW_SIMD_X86 ||\ defined(BOOST_HW_SIMD_PPC_AVAILABLE) && defined(BOOST_HW_SIMD_X86_AVAILABLE)
BOOST_HW_SIMD_PPC && BOOST_HW_SIMD_X86
# error "Multiple SIMD architectures detected, this cannot happen!" # error "Multiple SIMD architectures detected, this cannot happen!"
#endif #endif