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
pull/705/head
Jeffrey Walton 2018-08-18 04:31:49 -04:00
parent 48f2d95b0f
commit 06cf2ede9e
No known key found for this signature in database
GPG Key ID: B36AB348921B1838
1 changed files with 6 additions and 0 deletions

View File

@ -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