diff options
author | Jeffrey Walton <noloader@gmail.com> | 2021-04-19 15:45:32 -0400 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2021-04-19 15:45:32 -0400 |
commit | dd97f0686b0c84117e17977b81fa79c7dba8b04b (patch) | |
tree | 230a4bc92fddac034a17c394ca2fd7ab8d14e86e /lsh512.cpp | |
parent | 6c774514333a97c1d94859d305801f416a546341 (diff) | |
download | cryptopp-git-dd97f0686b0c84117e17977b81fa79c7dba8b04b.tar.gz |
Fix LSH compile on 32-bit machines
Diffstat (limited to 'lsh512.cpp')
-rw-r--r-- | lsh512.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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;
|