From e566ad33ce4331b0ee9e8f24cfa6eb6cfce94d08 Mon Sep 17 00:00:00 2001 From: Charly Chevalier Date: Tue, 21 Jul 2015 14:53:12 +0200 Subject: [PATCH] Reorder x86 AMD SIMD extension detection --- include/boost/predef/hardware/simd/x86_amd.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/boost/predef/hardware/simd/x86_amd.h b/include/boost/predef/hardware/simd/x86_amd.h index ff0dd3f..b46c949 100644 --- a/include/boost/predef/hardware/simd/x86_amd.h +++ b/include/boost/predef/hardware/simd/x86_amd.h @@ -57,14 +57,14 @@ http://www.boost.org/LICENSE_1_0.txt) // common extensions. #undef BOOST_HW_SIMD_X86_AMD -#if !defined(BOOST_HW_SIMD_X86_AMD) && defined(__SSE4A__) -# define BOOST_HW_SIMD_X86_AMD BOOST_HW_SIMD_X86_AMD_SSE4A_VERSION +#if !defined(BOOST_HW_SIMD_X86_AMD) && defined(__XOP__) +# define BOOST_HW_SIMD_X86_AMD BOOST_HW_SIMD_X86_AMD_XOP_VERSION #endif #if !defined(BOOST_HW_SIMD_X86_AMD) && defined(__FMA4__) # define BOOST_HW_SIMD_X86_AMD BOOST_HW_SIMD_X86_AMD_FMA4_VERSION #endif -#if !defined(BOOST_HW_SIMD_X86_AMD) && defined(__XOP__) -# define BOOST_HW_SIMD_X86_AMD BOOST_HW_SIMD_X86_AMD_XOP_VERSION +#if !defined(BOOST_HW_SIMD_X86_AMD) && defined(__SSE4A__) +# define BOOST_HW_SIMD_X86_AMD BOOST_HW_SIMD_X86_AMD_SSE4A_VERSION #endif #if !defined(BOOST_HW_SIMD_X86_AMD)