summaryrefslogtreecommitdiff
path: root/sha.cpp
diff options
context:
space:
mode:
authorweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2010-05-13 16:58:21 +0000
committerweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2010-05-13 16:58:21 +0000
commit0cf5807aa9174bb4b7d8570550b468751f5da6e9 (patch)
treebb244759ea5c82ec91175001a277000caea85dce /sha.cpp
parent27b944c4272c0408bffdd14253885debd4d9edf9 (diff)
downloadcryptopp-0cf5807aa9174bb4b7d8570550b468751f5da6e9.tar.gz
fix for http://sourceforge.net/apps/trac/cryptopp/ticket/2 (Ken Raeburn)
git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@480 57ff6487-cd31-0410-9ec3-f628ee90f5f0
Diffstat (limited to 'sha.cpp')
-rw-r--r--sha.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/sha.cpp b/sha.cpp
index 376d0c3..e5dd9b7 100644
--- a/sha.cpp
+++ b/sha.cpp
@@ -356,7 +356,7 @@ static void CRYPTOPP_FASTCALL X86_SHA256_HashBlocks(word32 *state, const word32
ROUND(14, 1, eax, ecx, edi, edx)
ROUND(15, 1, ecx, eax, edx, edi)
AS2( cmp WORD_REG(si), K_END)
- ASJ( jl, 1, b)
+ ASJ( jb, 1, b)
AS2( mov WORD_REG(dx), DATA_SAVE)
AS2( add WORD_REG(dx), 64)
@@ -375,7 +375,7 @@ static void CRYPTOPP_FASTCALL X86_SHA256_HashBlocks(word32 *state, const word32
AS2( movdqa [AS_REG_7+1*16], xmm1)
AS2( movdqa [AS_REG_7+0*16], xmm0)
AS2( cmp WORD_REG(dx), DATA_END)
- ASJ( jl, 0, b)
+ ASJ( jb, 0, b)
#endif
#if CRYPTOPP_BOOL_X86
@@ -399,7 +399,7 @@ static void CRYPTOPP_FASTCALL X86_SHA256_HashBlocks(word32 *state, const word32
AS2( add [AS_REG_7+7*4], ecx)
AS2( mov ecx, AS_REG_7d)
AS2( cmp WORD_REG(dx), DATA_END)
- ASJ( jl, 2, b)
+ ASJ( jb, 2, b)
#if CRYPTOPP_BOOL_SSE2_ASM_AVAILABLE
ASL(5)
#endif