From a1e8a5f05cdc5d9d3647d8a32ebc210a46318d2c Mon Sep 17 00:00:00 2001 From: weidai Date: Fri, 4 May 2007 23:18:04 +0000 Subject: [PATCH] fix bug in assembly --- vmac.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vmac.cpp b/vmac.cpp index cdaaa39c..06e720e7 100755 --- a/vmac.cpp +++ b/vmac.cpp @@ -139,11 +139,11 @@ VMAC_Base::VHASH_Update_SSE2(const word64 *data, size_t blocksRemainingInWord64, word32 L1KeyLength = m_L1KeyLength; char isFirstBlock = m_isFirstBlock; AS2( mov ebx, [L1KeyLength]) - AS2( movzx edx, [isFirstBlock]) + AS2( mov dl, [isFirstBlock]) #else AS2( mov ecx, this) AS2( mov ebx, [ecx+m_L1KeyLength]) - AS2( movzx edx, [ecx+m_isFirstBlock]) + AS2( mov dl, [ecx+m_isFirstBlock]) #endif AS2( mov eax, tagPart) AS2( shl eax, 4) @@ -248,7 +248,7 @@ VMAC_Base::VHASH_Update_SSE2(const word64 *data, size_t blocksRemainingInWord64, #define k1 [eax+2*8+3*4] #define k2 [eax+2*8+0*4] #define k3 [eax+2*8+1*4] - AS2( test edx, edx) + AS2( test dl, dl) ASJ( jz, 2, f) AS2( movd mm1, k0) AS2( movd mm0, [esp])