bn/bn_add.c: address performance regression.
authorAndy Polyakov <appro@openssl.org>
Wed, 15 Nov 2017 11:25:02 +0000 (12:25 +0100)
committerAndy Polyakov <appro@openssl.org>
Thu, 16 Nov 2017 13:00:03 +0000 (14:00 +0100)
commitba8bd957b86051310dd58a8dba9665b97c62d0d9
tree3fdca60cb9dc343cbd9513e2532230176db49e28
parenta6f4e3fe622764667cc733c0bc1b498032827f44
bn/bn_add.c: address performance regression.

Performance regression was reported for EC key generation between
1.0.2 and 1.1.x [in GH#2891]. It naturally depends on platform,
values between 6 and 9% were observed.

Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/4743)

(cherry picked from commit a78324d95bd4568ce2c3b34bfa1d6f14cddf92ef)
crypto/bn/asm/x86_64-gcc.c
crypto/bn/bn_add.c