summaryrefslogtreecommitdiff
path: root/whrlpool.cpp
diff options
context:
space:
mode:
authorweidai <weidai11@users.noreply.github.com>2007-08-13 23:53:09 +0000
committerweidai <weidai11@users.noreply.github.com>2007-08-13 23:53:09 +0000
commitae88c18bf79591bfcc16c18f4c256f032c988a57 (patch)
treef096ef9661b273e6059f26284dd133c439a528b4 /whrlpool.cpp
parent2345ab6d802bc79d73370ab23568aba531d9a561 (diff)
downloadcryptopp-git-ae88c18bf79591bfcc16c18f4c256f032c988a57.tar.gz
fixed Whirlpool crash on Pentium 2 machines
Diffstat (limited to 'whrlpool.cpp')
-rw-r--r--whrlpool.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/whrlpool.cpp b/whrlpool.cpp
index 20e721e8..149be395 100644
--- a/whrlpool.cpp
+++ b/whrlpool.cpp
@@ -1,6 +1,6 @@
// whrlpool.cpp - originally modified by Kevin Springle from
// Paulo Barreto and Vincent Rijmen's public domain code, whirlpool.c.
-// Updated to Whirlpool version 3.0, optimized and MMX version added by Wei Dai
+// Updated to Whirlpool version 3.0, optimized and SSE version added by Wei Dai
// Any modifications are placed in the public domain
// This is the original introductory comment:
@@ -390,8 +390,8 @@ CRYPTOPP_ALIGN_DATA(16) static const word64 Whirlpool_C[4*256+R] CRYPTOPP_SECTIO
// Whirlpool basic transformation. Transforms state based on block.
void Whirlpool::Transform(word64 *digest, const word64 *block)
{
-#if defined(CRYPTOPP_X86_ASM_AVAILABLE)
- if (HasMMX())
+#if CRYPTOPP_BOOL_SSE2_ASM_AVAILABLE
+ if (HasISSE())
{
// MMX version has the same structure as C version below
#ifdef __GNUC__