summaryrefslogtreecommitdiff
path: root/config.h
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2018-08-18 04:31:49 -0400
committerJeffrey Walton <noloader@gmail.com>2018-08-18 04:31:49 -0400
commit06cf2ede9e043b4c25eb3521cf67fcebb41b7629 (patch)
tree9daa145f9dc1f1204c3c718d3a97f751e1e6ca8e /config.h
parent48f2d95b0f75ba9e90b6fb83705383cc86c3a156 (diff)
downloadcryptopp-git-06cf2ede9e043b4c25eb3521cf67fcebb41b7629.tar.gz
Disable ASM and intrinsics for ARM big-endian
We don't have a test rig to test things. Based on our experience with Power8 and BE/LE, there will be trouble
Diffstat (limited to 'config.h')
-rw-r--r--config.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/config.h b/config.h
index c7d1ca3b..03368f5b 100644
--- a/config.h
+++ b/config.h
@@ -593,6 +593,12 @@ NAMESPACE_END
// ***************** ARM CPU features ********************
#if (CRYPTOPP_BOOL_ARM32 || CRYPTOPP_BOOL_ARM64)
+
+// We don't have an ARM big endian test rig. Disable
+// ARM-BE ASM and instrinsics until we can test it.
+#if defined(CRYPTOPP_BIG_ENDIAN)
+# define CRYPTOPP_DISABLE_ASM 1
+#endif
// Requires ARMv7 and ACLE 1.0. -march=armv7-a or above must be present
// Requires GCC 4.3, Clang 2.8 or Visual Studio 2012