aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/bn/bn_exp.c
diff options
context:
space:
mode:
authorAndy Polyakov <appro@openssl.org>2014-06-27 00:07:15 +0200
committerAndy Polyakov <appro@openssl.org>2014-06-27 00:07:15 +0200
commitf3f620e1e0fa3553116f0b3e8c8d68b070fcdb79 (patch)
tree4b4e9005f466878dafe94f62233ccc2e6f994c7b /crypto/bn/bn_exp.c
parent052ecf91d2d2811b4d72cf9f066a988b904b6432 (diff)
downloadopenssl-f3f620e1e0fa3553116f0b3e8c8d68b070fcdb79.tar.gz
bn_exp.c: move check for AD*X to rsaz-avx2.pl.
This ensures high performance is situations when assembler supports AVX2, but not AD*X.
Diffstat (limited to 'crypto/bn/bn_exp.c')
-rw-r--r--crypto/bn/bn_exp.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/crypto/bn/bn_exp.c b/crypto/bn/bn_exp.c
index ea2bd0a898..c121122f3c 100644
--- a/crypto/bn/bn_exp.c
+++ b/crypto/bn/bn_exp.c
@@ -694,8 +694,7 @@ int BN_mod_exp_mont_consttime(BIGNUM *rr, const BIGNUM *a, const BIGNUM *p,
* RSAZ exponentiation. For further information see
* crypto/bn/rsaz_exp.c and accompanying assembly modules.
*/
- if (((OPENSSL_ia32cap_P[2]&0x80100) != 0x80100) /* check for MULX/AD*X */
- && (16 == a->top) && (16 == p->top) && (BN_num_bits(m) == 1024)
+ if ((16 == a->top) && (16 == p->top) && (BN_num_bits(m) == 1024)
&& rsaz_avx2_eligible())
{
if (NULL == bn_wexpand(rr, 16)) goto err;