summaryrefslogtreecommitdiff
path: root/speck.h
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2019-01-16 17:06:39 -0500
committerJeffrey Walton <noloader@gmail.com>2019-01-16 17:06:39 -0500
commite86a6b32eb5633e820578b97be7b2d79640bfe47 (patch)
tree778e320937aec6ec3ac4a868b663b342575a94e7 /speck.h
parent7969f7181fadba2e89b3a0054315f108dc2afeb7 (diff)
downloadcryptopp-git-e86a6b32eb5633e820578b97be7b2d79640bfe47.tar.gz
Add CRYPTOPP_BUGGY_SIMD_LOAD_AND_STORE (GH #782)
I also suspect this has something to do with GH #768 and several others
Diffstat (limited to 'speck.h')
-rw-r--r--speck.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/speck.h b/speck.h
index 09fb26ee..a01c50fd 100644
--- a/speck.h
+++ b/speck.h
@@ -20,13 +20,17 @@
#if CRYPTOPP_BOOL_X64 || CRYPTOPP_BOOL_X32 || CRYPTOPP_BOOL_X86 || \
CRYPTOPP_BOOL_ARM32 || CRYPTOPP_BOOL_ARMV8 || \
CRYPTOPP_BOOL_PPC32 || CRYPTOPP_BOOL_PPC64
-# define CRYPTOPP_SPECK64_ADVANCED_PROCESS_BLOCKS 1
+# ifndef CRYPTOPP_DISABLE_SPECK_SIMD
+# define CRYPTOPP_SPECK64_ADVANCED_PROCESS_BLOCKS 1
+# endif
#endif
#if CRYPTOPP_BOOL_X64 || CRYPTOPP_BOOL_X32 || CRYPTOPP_BOOL_X86 || \
CRYPTOPP_BOOL_ARM32 || CRYPTOPP_BOOL_ARMV8 || \
CRYPTOPP_BOOL_PPC32 || CRYPTOPP_BOOL_PPC64
-# define CRYPTOPP_SPECK128_ADVANCED_PROCESS_BLOCKS 1
+# ifndef CRYPTOPP_DISABLE_SPECK_SIMD
+# define CRYPTOPP_SPECK128_ADVANCED_PROCESS_BLOCKS 1
+# endif
#endif
// Yet another SunStudio/SunCC workaround. Failed self tests