mirror of
https://github.com/boostorg/predef.git
synced 2025-07-30 19:57:14 +02:00
Add missing _X86_AMD detection for BOOST_HW_SIMD + Unique name
This commit is contained in:
@ -68,6 +68,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!
|
||||||
|
//
|
||||||
|
// NOTE: _X86_AMD implies _X86, so there is no need to check for it here!
|
||||||
|
//
|
||||||
#if defined(BOOST_HW_SIMD_ARM_AVAILABLE) && defined(BOOST_HW_SIMD_PPC_AVAILABLE) ||\
|
#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_ARM_AVAILABLE) && defined(BOOST_HW_SIMD_X86_AVAILABLE) ||\
|
||||||
defined(BOOST_HW_SIMD_PPC_AVAILABLE) && defined(BOOST_HW_SIMD_X86_AVAILABLE)
|
defined(BOOST_HW_SIMD_PPC_AVAILABLE) && defined(BOOST_HW_SIMD_X86_AVAILABLE)
|
||||||
@ -76,26 +79,28 @@ http://www.boost.org/LICENSE_1_0.txt)
|
|||||||
|
|
||||||
#if defined(BOOST_HW_SIMD_X86_AVAILABLE)
|
#if defined(BOOST_HW_SIMD_X86_AVAILABLE)
|
||||||
# define BOOST_HW_SIMD BOOST_HW_SIMD_X86
|
# define BOOST_HW_SIMD BOOST_HW_SIMD_X86
|
||||||
# define BOOST_HW_SIMD_NAME BOOST_HW_SIMD_X86_NAME
|
#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)
|
#if defined(BOOST_HW_SIMD_ARM_AVAILABLE)
|
||||||
# define BOOST_HW_SIMD BOOST_HW_SIMD_ARM
|
# define BOOST_HW_SIMD BOOST_HW_SIMD_ARM
|
||||||
# define BOOST_HW_SIMD_NAME BOOST_HW_SIMD_ARM_NAME
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(BOOST_HW_SIMD_PPC_AVAILABLE)
|
#if defined(BOOST_HW_SIMD_PPC_AVAILABLE)
|
||||||
# define BOOST_HW_SIMD BOOST_HW_SIMD_PPC
|
# define BOOST_HW_SIMD BOOST_HW_SIMD_PPC
|
||||||
# define BOOST_HW_SIMD_NAME BOOST_HW_SIMD_PPC_NAME
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(BOOST_HW_SIMD)
|
#if defined(BOOST_HW_SIMD)
|
||||||
# define BOOST_HW_SIMD_AVAILABLE
|
# define BOOST_HW_SIMD_AVAILABLE
|
||||||
#else
|
#else
|
||||||
# define BOOST_HW_SIMD BOOST_VERSION_NUMBER_NOT_AVAILABLE
|
# define BOOST_HW_SIMD BOOST_VERSION_NUMBER_NOT_AVAILABLE
|
||||||
# define BOOST_HW_SIMD_NAME "Hardware SIMD"
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#define BOOST_HW_SIMD_NAME "Hardware SIMD"
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <boost/predef/detail/test.h>
|
#include <boost/predef/detail/test.h>
|
||||||
|
Reference in New Issue
Block a user