summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Duncan <pabs@pablotron.org>2024-05-08 07:17:47 -0400
committerPaul Duncan <pabs@pablotron.org>2024-05-08 07:17:47 -0400
commit50f27c95e41d16610be84b97a850ed0e838a9b8b (patch)
tree914ed1d28ad4d745a9b7bd4b275440269d5b9782
parentcb7b27827b0b179a6c65eb7345e37995f44f52ec (diff)
downloadsha3-0.7.tar.bz2
sha3-0.7.zip
sha3.c: prefer scalar backend to neon for nowv0.7
-rw-r--r--sha3.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sha3.c b/sha3.c
index c00f2b7..fe79a20 100644
--- a/sha3.c
+++ b/sha3.c
@@ -29,7 +29,7 @@
#define BACKEND_AUTO 0 // auto-detect (default)
#define BACKEND_SCALAR 1 // scalar backend
#define BACKEND_AVX512 2 // AVX-512 backend
-#define BACKEND_NEON 3 // Neon backend
+#define BACKEND_NEON 3 // Neon backend (experimental)
#define BACKEND_DIET_NEON 4 // Neon backend which uses fewer registers
// if SHA3_BACKEND is defined and set to 0 (the default), then unset it
@@ -42,7 +42,7 @@
#ifndef SHA3_BACKEND
#if defined(__AVX512F__)
#define SHA3_BACKEND BACKEND_AVX512
-#elif defined(__ARM_NEON)
+#elif 0 && defined(__ARM_NEON)
#define SHA3_BACKEND BACKEND_NEON
#else
// no optimized backend detected, fall back to scalar