diff options
| author | Havard Eidnes <[email protected]> | 2022-12-28 14:13:19 +0100 |
|---|---|---|
| committer | Jack O'Connor <[email protected]> | 2023-09-19 16:57:11 -0700 |
| commit | 8bfe93fbf9766a3c4ff52fce9dc8211c8dc297c5 (patch) | |
| tree | 387bf1ef5a624a355de9cbca49ce1868e4d2e8e4 | |
| parent | 8cdfaa41ea5b1a0a11b0bf3b52fba60320f437f1 (diff) | |
c/blake3_impl.h: don't try to do NEON on big-endian aarch64.
...because this would otherwise hit
#error "This implementation only supports little-endian ARM."
in c/blake3_neon.c.
| -rw-r--r-- | c/blake3_impl.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/c/blake3_impl.h b/c/blake3_impl.h index 3ba9ceb..beab5cf 100644 --- a/c/blake3_impl.h +++ b/c/blake3_impl.h @@ -51,7 +51,11 @@ enum blake3_flags { #if !defined(BLAKE3_USE_NEON) // If BLAKE3_USE_NEON not manually set, autodetect based on AArch64ness #if defined(IS_AARCH64) - #define BLAKE3_USE_NEON 1 + #if defined(__ARM_BIG_ENDIAN) + #define BLAKE3_USE_NEON 0 + #else + #define BLAKE3_USE_NEON 1 + #endif #else #define BLAKE3_USE_NEON 0 #endif |
