aboutsummaryrefslogtreecommitdiff
path: root/c/blake3_impl.h
diff options
context:
space:
mode:
authorrsdy <[email protected]>2021-10-12 16:23:28 +0100
committerrsdy <[email protected]>2021-10-12 16:23:28 +0100
commited09e45e7aaeec5d62763dbf70e9c82b5b48a376 (patch)
tree984cc0688fd55fe511bea14268234fc03180eee9 /c/blake3_impl.h
parent6b9cbe5e23443eb05d5cbdf645cb54b3706ea0c6 (diff)
Include MSVC naming of aarch64 arch
Diffstat (limited to 'c/blake3_impl.h')
-rw-r--r--c/blake3_impl.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/c/blake3_impl.h b/c/blake3_impl.h
index 8688479..18f201f 100644
--- a/c/blake3_impl.h
+++ b/c/blake3_impl.h
@@ -38,6 +38,10 @@ enum blake3_flags {
#define IS_X86_32
#endif
+#if defined(__aarch64__) || defined(_M_ARM64)
+#define IS_AARCH64
+#endif
+
#if defined(IS_X86)
#if defined(_MSC_VER)
#include <intrin.h>
@@ -45,7 +49,7 @@ enum blake3_flags {
#include <immintrin.h>
#endif
-#if defined(__aarch64__) && !defined(BLAKE3_NO_NEON) && !defined(BLAKE3_USE_NEON)
+#if defined(IS_AARCH64) && !defined(BLAKE3_NO_NEON) && !defined(BLAKE3_USE_NEON)
#define BLAKE3_USE_NEON
#endif