From ebb56f57edd46175798c2a70b6dd88bd6ce7f877 Mon Sep 17 00:00:00 2001 From: weidai Date: Mon, 13 Aug 2007 23:53:09 +0000 Subject: fixed Whirlpool crash on Pentium 2 machines git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@385 57ff6487-cd31-0410-9ec3-f628ee90f5f0 --- whrlpool.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'whrlpool.cpp') diff --git a/whrlpool.cpp b/whrlpool.cpp index 20e721e..149be39 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__ -- cgit v1.2.1