summaryrefslogtreecommitdiff
path: root/lsh512_avx.cpp
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2021-04-26 16:18:00 -0400
committerJeffrey Walton <noloader@gmail.com>2021-04-26 16:18:00 -0400
commite54f606192d2908ee6f0b5cb6bfbc3c9ea171544 (patch)
tree2068a3e559530d2ce14179d119b2e18b6d067e1e /lsh512_avx.cpp
parentc84d5b511255e900fd90979d465d306162a6fed7 (diff)
downloadcryptopp-git-e54f606192d2908ee6f0b5cb6bfbc3c9ea171544.tar.gz
Fix compile on CentOS 5
Diffstat (limited to 'lsh512_avx.cpp')
-rw-r--r--lsh512_avx.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/lsh512_avx.cpp b/lsh512_avx.cpp
index 535f0728..d7676671 100644
--- a/lsh512_avx.cpp
+++ b/lsh512_avx.cpp
@@ -17,15 +17,13 @@
#if defined(CRYPTOPP_AVX2_AVAILABLE) && defined(CRYPTOPP_ENABLE_64BIT_SSE)
-#if defined(CRYPTOPP_SSSE3_AVAILABLE)
-# include <emmintrin.h>
-#endif
-
#if defined(CRYPTOPP_AVX2_AVAILABLE)
+# include <emmintrin.h>
# include <immintrin.h>
#endif
-#if defined(__GNUC__) && defined(__amd64__)
+// GCC at 4.5. Clang is unknown. Also see https://stackoverflow.com/a/42493893.
+#if defined (__has_include) && (__has_include(<x86intrin.h>))
# include <x86intrin.h>
#endif