summaryrefslogtreecommitdiff
path: root/sha.cpp
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2018-06-29 21:02:53 -0400
committerJeffrey Walton <noloader@gmail.com>2018-06-29 21:02:53 -0400
commite18de4d5f9960dbad9587de25124d0c3fbefa9ba (patch)
tree2fa6050431197fb3210365bbc1f753262bb553cd /sha.cpp
parent9a75d09ca48becc2e0dc675b34b0c16bfb5da7c1 (diff)
downloadcryptopp-git-e18de4d5f9960dbad9587de25124d0c3fbefa9ba.tar.gz
Re-engage SSE2 ASM for SHA-256 (GH# 674)
I'm not usre where exactly the break occured, but it was probably due to the BASE+SIMD rewrite. Thanks to tesbayda for tracking it down.
Diffstat (limited to 'sha.cpp')
-rw-r--r--sha.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/sha.cpp b/sha.cpp
index f8c8979d..34bb4b7a 100644
--- a/sha.cpp
+++ b/sha.cpp
@@ -710,7 +710,7 @@ size_t SHA256::HashMultipleBlocks(const word32 *input, size_t length)
return length & (SHA256::BLOCKSIZE - 1);
}
#endif
-#if CRYPTOPP_SSE2_ASM_AVAILABLE
+#if CRYPTOPP_SSE2_ASM_AVAILABLE || CRYPTOPP_X64_MASM_AVAILABLE
if (HasSSE2())
{
const size_t res = length & (SHA256::BLOCKSIZE - 1);