From: Andy Polyakov Date: Tue, 16 Dec 2008 07:28:38 +0000 (+0000) Subject: Bring C bn_mul_mont template closer to assembler. X-Git-Tag: OpenSSL_0_9_8k^2~126 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=3ebbe8853f0597bc859d6fad5206229aff3ce784;p=oweals%2Fopenssl.git Bring C bn_mul_mont template closer to assembler. --- diff --git a/crypto/bn/bn_asm.c b/crypto/bn/bn_asm.c index 230258bcdd..c43c91cc09 100644 --- a/crypto/bn/bn_asm.c +++ b/crypto/bn/bn_asm.c @@ -860,13 +860,35 @@ int bn_mul_mont(BN_ULONG *rp, const BN_ULONG *ap, const BN_ULONG *bp, const BN_U n0 = *n0p; - tp[num] = bn_mul_words(tp,ap,num,bp[0]); + c0 = 0; + ml = bp[0]; +#ifdef mul64 + mh = HBITS(ml); + ml = LBITS(ml); + for (j=0;j