From 9bb12d342fd9479679d505d93a478a6f9cd50a47 Mon Sep 17 00:00:00 2001 From: Changming Sun Date: Mon, 4 Mar 2024 13:53:57 -0800 Subject: [PATCH] Update cpuinfo.h: add support for ARM64EC --- include/cpuinfo.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/cpuinfo.h b/include/cpuinfo.h index 275c83f9..7faf34a2 100644 --- a/include/cpuinfo.h +++ b/include/cpuinfo.h @@ -18,7 +18,7 @@ #define CPUINFO_ARCH_X86 1 #endif -#if defined(__x86_64__) || defined(__x86_64) || defined(_M_X64) || defined(_M_AMD64) +#if defined(__x86_64__) || defined(__x86_64) || (defined(_M_X64) && !defined(_M_ARM64EC)) || (defined(_M_AMD64) && !defined(_M_ARM64EC)) #define CPUINFO_ARCH_X86_64 1 #endif @@ -26,7 +26,7 @@ #define CPUINFO_ARCH_ARM 1 #endif -#if defined(__aarch64__) || defined(_M_ARM64) +#if defined(__aarch64__) || defined(_M_ARM64) || defined(_M_ARM64EC) #define CPUINFO_ARCH_ARM64 1 #endif