Skip to content

Commit

Permalink
add Windows ARM64EC support (#392)
Browse files Browse the repository at this point in the history
  • Loading branch information
jblazquez committed Apr 8, 2024
1 parent d12bb58 commit 90ef2e0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion include/simdutf/internal/isadetection.h
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ static inline uint32_t detect_supported_architectures() {
return host_isa;
}

#elif defined(__aarch64__) || defined(_M_ARM64)
#elif defined(__aarch64__) || defined(_M_ARM64) || defined(_M_ARM64EC)

static inline uint32_t detect_supported_architectures() {
return instruction_set::NEON;
Expand Down
4 changes: 2 additions & 2 deletions include/simdutf/portability.h
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,9 @@
#include <iso646.h>
#endif

#if defined(__x86_64__) || defined(_M_AMD64)
#if (defined(__x86_64__) || defined(_M_AMD64)) && !defined(_M_ARM64EC)
#define SIMDUTF_IS_X86_64 1
#elif defined(__aarch64__) || defined(_M_ARM64)
#elif defined(__aarch64__) || defined(_M_ARM64) || defined(_M_ARM64EC)
#define SIMDUTF_IS_ARM64 1
#elif defined(__PPC64__) || defined(_M_PPC64)
//#define SIMDUTF_IS_PPC64 1
Expand Down

0 comments on commit 90ef2e0

Please sign in to comment.