diff options
author | Andy Polyakov <appro@openssl.org> | 2011-05-21 10:17:02 +0000 |
---|---|---|
committer | Andy Polyakov <appro@openssl.org> | 2011-05-21 10:17:02 +0000 |
commit | 2e75ed332fdc4d2599a8db40379c21dfb47c22b1 (patch) | |
tree | 33120a19cb857971d228aedb7d7fd5fa7690f373 /crypto | |
parent | d8ea368c41ae6716af6b48f55f9b888a32c37e06 (diff) |
ppccap.c: addenum to recent EC optimizations.
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/ppccap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/ppccap.c b/crypto/ppccap.c index 6ccd99185d..ab89ccaa12 100644 --- a/crypto/ppccap.c +++ b/crypto/ppccap.c @@ -22,7 +22,7 @@ int bn_mul_mont(BN_ULONG *rp, const BN_ULONG *ap, const BN_ULONG *bp, const BN_U if (sizeof(size_t)==4) { #if (defined(__APPLE__) && defined(__MACH__)) - if ((OPENSSL_ppccap_P&PPC_FPU64)) + if (num>=8 && (num&3)==0 && (OPENSSL_ppccap_P&PPC_FPU64)) return bn_mul_mont_fpu64(rp,ap,bp,np,n0,num); #else /* boundary of 32 was experimentally determined on |