Skip to content

Commit

Permalink
support building for arm64ec
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
bylaws authored Jan 11, 2024
1 parent 2ce465b commit 7219e23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xbyak/xbyak_util.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 7219e23

Please sign in to comment.