summaryrefslogtreecommitdiff
path: root/lsh512.cpp
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2021-04-19 15:45:32 -0400
committerJeffrey Walton <noloader@gmail.com>2021-04-19 15:45:32 -0400
commitdd97f0686b0c84117e17977b81fa79c7dba8b04b (patch)
tree230a4bc92fddac034a17c394ca2fd7ab8d14e86e /lsh512.cpp
parent6c774514333a97c1d94859d305801f416a546341 (diff)
downloadcryptopp-git-dd97f0686b0c84117e17977b81fa79c7dba8b04b.tar.gz
Fix LSH compile on 32-bit machines
Diffstat (limited to 'lsh512.cpp')
-rw-r--r--lsh512.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/lsh512.cpp b/lsh512.cpp
index c3983ff4..011bd95b 100644
--- a/lsh512.cpp
+++ b/lsh512.cpp
@@ -70,6 +70,14 @@
# include <immintrin.h>
#endif
+#if defined(CRYPTOPP_HAVE_ATTRIBUTE_TARGET)
+# include <x86intrin.h>
+# undef M128_CAST
+# undef CONST_M128_CAST
+# define M128_CAST(x) ((__m128i *)(void *)(x))
+# define CONST_M128_CAST(x) ((const __m128i *)(const void *)(x))
+#endif
+
ANONYMOUS_NAMESPACE_BEGIN
using CryptoPP::byte;