diff options
author | Billy Laws <[email protected]> | 2024-01-11 23:52:08 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2024-01-11 23:52:08 +0000 |
commit | 7219e234cb0a95ed2c169ec264cee63c2848f2f9 (patch) | |
tree | 21a57926509caa3f33aff4f56b1050c2f863ef75 | |
parent | 2ce465bbca46e92dde9c44bbe7940fd7f70e3b97 (diff) | |
download | xbyak-7219e234cb0a95ed2c169ec264cee63c2848f2f9.tar.gz xbyak-7219e234cb0a95ed2c169ec264cee63c2848f2f9.zip |
support building for arm64ec
ARM64EC is a custom ABI designed to allow ARM64 code to directly call into x64 code and vice-versa. In order to facilitate this, __x86_64__ (in llvm) and _M_X64 (in msvc) are both defined, but most x64 intrinsics aren't supported, so don't attempt to use them.
-rw-r--r-- | xbyak/xbyak_util.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xbyak/xbyak_util.h b/xbyak/xbyak_util.h index afe536a..e90af65 100644 --- a/xbyak/xbyak_util.h +++ b/xbyak/xbyak_util.h @@ -27,7 +27,7 @@ #include "xbyak.h" #endif // XBYAK_ONLY_CLASS_CPU -#if defined(__i386__) || defined(__x86_64__) || defined(_M_IX86) || defined(_M_X64) +#if defined(__i386__) || (defined(__x86_64__) && !defined(__arm64ec__)) || defined(_M_IX86) || (defined(_M_X64) && !defined(_M_ARM64EC)) #define XBYAK_INTEL_CPU_SPECIFIC #endif |