diff --git a/include/boost/predef/hardware.h b/include/boost/predef/hardware.h index a0cea74..972b73a 100644 --- a/include/boost/predef/hardware.h +++ b/include/boost/predef/hardware.h @@ -6,8 +6,10 @@ Distributed under the Boost Software License, Version 1.0. http://www.boost.org/LICENSE_1_0.txt) */ +#if !defined(BOOST_PREDEF_HARDWARE_H) || defined(BOOST_PREDEF_INTERNAL_GENERATE_TESTS) #ifndef BOOST_PREDEF_HARDWARE_H #define BOOST_PREDEF_HARDWARE_H +#endif #include diff --git a/include/boost/predef/hardware/simd.h b/include/boost/predef/hardware/simd.h index 253ca57..174eb37 100644 --- a/include/boost/predef/hardware/simd.h +++ b/include/boost/predef/hardware/simd.h @@ -6,6 +6,10 @@ Distributed under the Boost Software License, Version 1.0. http://www.boost.org/LICENSE_1_0.txt) */ +#include +#include +#include + #ifndef BOOST_PREDEF_HARDWARE_SIMD_H #define BOOST_PREDEF_HARDWARE_SIMD_H @@ -26,10 +30,6 @@ http://www.boost.org/LICENSE_1_0.txt) ] */ -#include -#include -#include - // We check if SIMD extension of multiples architectures have been detected, // if yes, then this is an error! #if defined(BOOST_HW_SIMD_ARM_AVAILABLE) && defined(BOOST_HW_SIMD_PPC_AVAILABLE) ||\ diff --git a/include/boost/predef/hardware/simd/arm.h b/include/boost/predef/hardware/simd/arm.h index e0e82a3..fd4d362 100644 --- a/include/boost/predef/hardware/simd/arm.h +++ b/include/boost/predef/hardware/simd/arm.h @@ -6,6 +6,9 @@ Distributed under the Boost Software License, Version 1.0. http://www.boost.org/LICENSE_1_0.txt) */ +// From the newest to the oldest +#include + #ifndef BOOST_PREDEF_HARDWARE_SIMD_ARM_H #define BOOST_PREDEF_HARDWARE_SIMD_ARM_H @@ -27,8 +30,6 @@ http://www.boost.org/LICENSE_1_0.txt) ] */ -#include - #if defined(BOOST_HW_SIMD_ARM) # define BOOST_HW_SIMD_ARM_AVAILABLE #else diff --git a/include/boost/predef/hardware/simd/ppc.h b/include/boost/predef/hardware/simd/ppc.h index 91bceb4..1611582 100644 --- a/include/boost/predef/hardware/simd/ppc.h +++ b/include/boost/predef/hardware/simd/ppc.h @@ -6,6 +6,11 @@ Distributed under the Boost Software License, Version 1.0. http://www.boost.org/LICENSE_1_0.txt) */ +// From the newest to the oldest +#include +#include +#include + #ifndef BOOST_PREDEF_HARDWARE_SIMD_PPC_H #define BOOST_PREDEF_HARDWARE_SIMD_PPC_H @@ -28,11 +33,6 @@ http://www.boost.org/LICENSE_1_0.txt) ] */ -// From the newest to the oldest -#include -#include -#include - #if defined(BOOST_HW_SIMD_PPC) # define BOOST_HW_SIMD_PPC_AVAILABLE #else diff --git a/include/boost/predef/hardware/simd/x86.h b/include/boost/predef/hardware/simd/x86.h index 1bc4e43..6c281e2 100644 --- a/include/boost/predef/hardware/simd/x86.h +++ b/include/boost/predef/hardware/simd/x86.h @@ -6,6 +6,22 @@ Distributed under the Boost Software License, Version 1.0. http://www.boost.org/LICENSE_1_0.txt) */ +// From the newest to the oldest +#include // XEON Phi specific +#include +#include +#include // AMD specific +#include // AMD specific +#include +#include +#include +#include // AMD specific +#include +#include +#include +#include +#include + #ifndef BOOST_PREDEF_HARDWARE_SIMD_X86_H #define BOOST_PREDEF_HARDWARE_SIMD_X86_H @@ -28,22 +44,6 @@ http://www.boost.org/LICENSE_1_0.txt) ] */ -// From the newest to the oldest -#include // XEON Phi specific -#include -#include -#include // AMD specific -#include // AMD specific -#include -#include -#include -#include // AMD specific -#include -#include -#include -#include -#include - #if defined(BOOST_HW_SIMD_X86) # define BOOST_HW_SIMD_X86_AVAILABLE #else