summaryrefslogtreecommitdiff
path: root/lsh256.cpp
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2021-04-17 04:53:33 -0400
committerJeffrey Walton <noloader@gmail.com>2021-04-17 04:53:33 -0400
commit54ec7e588bc3a6f7c14263e87179f0a3156157f9 (patch)
tree436a9f4b7dec6b9438ec0f77825102bf376503c5 /lsh256.cpp
parent435b4f050b41e127cc3ea8ad2164a774c95c68cc (diff)
downloadcryptopp-git-54ec7e588bc3a6f7c14263e87179f0a3156157f9.tar.gz
Use SSE2 for 64-bit machines only
Diffstat (limited to 'lsh256.cpp')
-rw-r--r--lsh256.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lsh256.cpp b/lsh256.cpp
index f4550e78..a8788729 100644
--- a/lsh256.cpp
+++ b/lsh256.cpp
@@ -10,8 +10,9 @@
#include "lsh.h"
#include "misc.h"
+// Only enable the intrinsics for 64-bit machines
#ifndef CRYPTOPP_DISABLE_ASM
-# if defined(__SSE2__) || defined(_M_X64)
+# if defined(__SSE2__) && (defined(__amd64__) || defined(_M_X64))
# define CRYPTOPP_LSH256_ASM_AVAILABLE 1
# endif
#endif