diff options
author | Jeffrey Walton <noloader@gmail.com> | 2019-10-23 10:35:55 -0400 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2019-10-23 10:35:55 -0400 |
commit | e912c621e49e7dd9ff7e740876aa8851a885f530 (patch) | |
tree | 21182ab08ff8ff849c88206424e3801c7b81c770 /ppc_simd.h | |
parent | 40f139074bf037968744492e1cd57460d640a8db (diff) | |
download | cryptopp-git-e912c621e49e7dd9ff7e740876aa8851a885f530.tar.gz |
Add another Clang workaround on PowerPC
Diffstat (limited to 'ppc_simd.h')
-rw-r--r-- | ppc_simd.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1480,7 +1480,9 @@ inline bool VecNotEqual(const T1 vec1, const T2 vec2) //////////////////////// Power8 Crypto ////////////////////////
-#if defined(__CRYPTO__) || defined(CRYPTOPP_DOXYGEN_PROCESSING)
+// __CRYPTO__ alone is not enough. Clang will define __CRYPTO__
+// when it is not available, like with Power7. Sigh...
+#if (defined(_ARCH_PWR8) && defined(__CRYPTO__)) || defined(CRYPTOPP_DOXYGEN_PROCESSING)
/// \name POLYNOMIAL MULTIPLICATION
//@{
|