diff options
author | djm <> | 2012-10-13 21:23:50 +0000 |
---|---|---|
committer | djm <> | 2012-10-13 21:23:50 +0000 |
commit | d56dbc3c72494d4b68c03f5bcc3ae1f9df7b17df (patch) | |
tree | 10ebe51c3542099b0ab8325d8f322372375dc3b4 /src/lib/libcrypto/sparcv9cap.c | |
parent | bc685bd401e5657f7fb51b4e1a62a7a5c5ea4098 (diff) | |
parent | 228cae30b117c2493f69ad3c195341cd6ec8d430 (diff) | |
download | openbsd-d56dbc3c72494d4b68c03f5bcc3ae1f9df7b17df.tar.gz openbsd-d56dbc3c72494d4b68c03f5bcc3ae1f9df7b17df.tar.bz2 openbsd-d56dbc3c72494d4b68c03f5bcc3ae1f9df7b17df.zip |
This commit was generated by cvs2git to track changes on a CVS vendor
branch.
Diffstat (limited to 'src/lib/libcrypto/sparcv9cap.c')
-rw-r--r-- | src/lib/libcrypto/sparcv9cap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/sparcv9cap.c b/src/lib/libcrypto/sparcv9cap.c index ed195ab402..43b3ac6f81 100644 --- a/src/lib/libcrypto/sparcv9cap.c +++ b/src/lib/libcrypto/sparcv9cap.c | |||
@@ -19,7 +19,8 @@ int bn_mul_mont(BN_ULONG *rp, const BN_ULONG *ap, const BN_ULONG *bp, const BN_U | |||
19 | int bn_mul_mont_fpu(BN_ULONG *rp, const BN_ULONG *ap, const BN_ULONG *bp, const BN_ULONG *np,const BN_ULONG *n0, int num); | 19 | int bn_mul_mont_fpu(BN_ULONG *rp, const BN_ULONG *ap, const BN_ULONG *bp, const BN_ULONG *np,const BN_ULONG *n0, int num); |
20 | int bn_mul_mont_int(BN_ULONG *rp, const BN_ULONG *ap, const BN_ULONG *bp, const BN_ULONG *np,const BN_ULONG *n0, int num); | 20 | int bn_mul_mont_int(BN_ULONG *rp, const BN_ULONG *ap, const BN_ULONG *bp, const BN_ULONG *np,const BN_ULONG *n0, int num); |
21 | 21 | ||
22 | if ((OPENSSL_sparcv9cap_P&(SPARCV9_PREFER_FPU|SPARCV9_VIS1)) == | 22 | if (num>=8 && !(num&1) && |
23 | (OPENSSL_sparcv9cap_P&(SPARCV9_PREFER_FPU|SPARCV9_VIS1)) == | ||
23 | (SPARCV9_PREFER_FPU|SPARCV9_VIS1)) | 24 | (SPARCV9_PREFER_FPU|SPARCV9_VIS1)) |
24 | return bn_mul_mont_fpu(rp,ap,bp,np,n0,num); | 25 | return bn_mul_mont_fpu(rp,ap,bp,np,n0,num); |
25 | else | 26 | else |
@@ -169,7 +170,6 @@ void OPENSSL_cpuid_setup(void) | |||
169 | char *e; | 170 | char *e; |
170 | struct sigaction common_act,ill_oact,bus_oact; | 171 | struct sigaction common_act,ill_oact,bus_oact; |
171 | sigset_t all_masked,oset; | 172 | sigset_t all_masked,oset; |
172 | int sig; | ||
173 | static int trigger=0; | 173 | static int trigger=0; |
174 | 174 | ||
175 | if (trigger) return; | 175 | if (trigger) return; |