summaryrefslogtreecommitdiff
path: root/lsh256.cpp
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2021-04-19 08:54:33 -0400
committerJeffrey Walton <noloader@gmail.com>2021-04-19 08:54:33 -0400
commitf1049c78bc65dbe1f9c9ab9ad6894f3cd2099215 (patch)
tree3e51f03a37da991adbe669001dea0c7b534c3b13 /lsh256.cpp
parent07da15a8bb1785a3a68ee7e5575d5bc829ae8437 (diff)
downloadcryptopp-git-f1049c78bc65dbe1f9c9ab9ad6894f3cd2099215.tar.gz
Fix LLVM Clang compile
Diffstat (limited to 'lsh256.cpp')
-rw-r--r--lsh256.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/lsh256.cpp b/lsh256.cpp
index 49c0f2f1..909268dd 100644
--- a/lsh256.cpp
+++ b/lsh256.cpp
@@ -62,9 +62,10 @@
# define CONST_M256_CAST(x) ((const __m256i *)(const void *)(x))
#endif
-// https://stackoverflow.com/q/39958935
+// Should work for Clang 7 and above: https://stackoverflow.com/q/39958935.
+// But Clang 10 is broke: https://bugs.llvm.org/show_bug.cgi?id=50025.
#if defined(__i386__) || defined(__i686__) || defined(__amd64__)
-# if (CRYPTOPP_GCC_VERSION >= 40800) || (CRYPTOPP_LLVM_CLANG_VERSION >= 70000)
+# if (CRYPTOPP_GCC_VERSION >= 40800)
# include <x86intrin.h>
# define GCC_HAVE_TARGET 1
# define GCC_TARGET_DEFAULT __attribute__ ((target ("default")))