11#if defined(__cplusplus)
26#if (defined(__x86_64__) && 0 != (__x86_64__)) || \
27 (defined(__amd64__) && 0 != (__amd64__)) || \
28 (defined(_M_X64) || defined(_M_AMD64)) || \
29 (defined(__i386__) && 0 != (__i386__)) || (defined(_M_IX86))
30#if (__AVX512F__ && __AVX512CD__ && __AVX2__ && __FMA__ && __AVX__ && \
31 __SSE4_2__ && __SSE4_1__ && __SSE3__)
33#elif (__AVX2__ && __FMA__ && __AVX__ && __SSE4_2__ && __SSE4_1__ && __SSE3__)
35#elif (__AVX__ && __SSE4_2__ && __SSE4_1__ && __SSE3__)
37#elif (__SSE4_2__ && __SSE4_1__ && __SSE3__)
42#elif defined(__aarch64__) || defined(__arm64__) || defined(_M_ARM64)
44#if (512 <= __ARM_FEATURE_SVE_BITS)
46#elif (256 <= __ARM_FEATURE_SVE_BITS)
48#elif (128 <= __ARM_FEATURE_SVE_BITS)
53#elif defined(__ARM_ARCH)
60#if defined(__cplusplus)
int m_cpuid_static(void)
This routine determines the CPUID according to the given compiler flags (expected to be similar to Fo...
#define CP_MACHINE_ARM_SVE256
#define CP_MACHINE_CPU_GENERIC
#define CP_MACHINE_ARM_ARCH64
#define CP_MACHINE_X86_AVX
#define CP_MACHINE_X86_AVX2
#define CP_MACHINE_ARM_SVE128
#define CP_MACHINE_X86_AVX512
#define CP_MACHINE_ARM_SVE512
#define CP_MACHINE_UNKNOWN
#define CP_MACHINE_X86_SSE4