summaryrefslogtreecommitdiffstats
path: root/crypto/bn/asm/x86-mont.pl
diff options
context:
space:
mode:
authorAndy Polyakov <appro@openssl.org>2005-10-22 17:57:18 +0000
committerAndy Polyakov <appro@openssl.org>2005-10-22 17:57:18 +0000
commit4d524040bc81d2db46a5530ba10a98686ab1c3ca (patch)
tree1e2a3deb777f1a4ab5e16398bf0387fdd0c6623f /crypto/bn/asm/x86-mont.pl
parent0fe120ba25ad7d7d93f3fad17640556503426186 (diff)
Change bn_mul_mont declaration and BN_MONT_CTX. Update CHANGES.
Diffstat (limited to 'crypto/bn/asm/x86-mont.pl')
-rwxr-xr-xcrypto/bn/asm/x86-mont.pl3
1 files changed, 2 insertions, 1 deletions
diff --git a/crypto/bn/asm/x86-mont.pl b/crypto/bn/asm/x86-mont.pl
index e250e9907c..8d01b7a87f 100755
--- a/crypto/bn/asm/x86-mont.pl
+++ b/crypto/bn/asm/x86-mont.pl
@@ -66,7 +66,7 @@ if($sse2) {
&mov ("ebx",&wparam(1)); # const BN_ULONG *ap
&mov ("ecx",&wparam(2)); # const BN_ULONG *bp
&mov ("edx",&wparam(3)); # const BN_ULONG *np
- &mov ("esi",&wparam(4)); # BN_ULONG n0
+ &mov ("esi",&wparam(4)); # const BN_ULONG *n0
&mov ($num,&wparam(5)); # int num
&mov ("edi","esp"); # saved stack pointer!
@@ -78,6 +78,7 @@ if($sse2) {
&sub ($num,1); # num is restored to its original value
# and will remain constant from now...
+ &mov ("esi",&DWP(0,"esi")); # pull n0[0]
&mov ($_rp,"eax"); # ... save a copy of argument block
&mov ($_ap,"ebx");
&mov ($_bp,"ecx");