openssl/crypto/bn/asm
Bernd Edlinger 46ac489a13 Improve the overflow handling in rsaz_512_sqr
We have always a carry in %rcx or %rbx in range 0..2
from the previous stage, that is added to the result
of the 64-bit square, but the low nibble of any square
can only be 0, 1, 4, 9.

Therefore one "adcq $0, %rdx" can be removed.
Likewise in the ADX code we can remove one
"adcx %rbp, $out" since %rbp is always 0, and carry is
also zero, therefore that is a no-op.

Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/10575)
2019-12-06 13:36:16 +01:00
..
alpha-mont.pl Update copyright year 2018-05-29 13:16:04 +01:00
armv4-gf2m.pl Remove trailing whitespace from some files. 2016-10-10 23:36:21 +01:00
armv4-mont.pl Update copyright year 2018-05-29 13:16:04 +01:00
armv8-mont.pl Update copyright year 2019-02-26 14:05:09 +00:00
bn-586.pl Remove filename argument to x86 asm_init. 2017-05-11 17:00:23 -04:00
bn-c64xplus.asm Add final(?) set of copyrights. 2016-06-01 11:27:25 -04:00
c64xplus-gf2m.pl Many spelling fixes/typo's corrected. 2017-11-11 19:03:10 -05:00
co-586.pl Remove filename argument to x86 asm_init. 2017-05-11 17:00:23 -04:00
ia64-mont.pl Update copyright year 2018-05-29 13:16:04 +01:00
ia64.S Update copyright year 2019-02-26 14:05:09 +00:00
mips-mont.pl Update copyright year 2018-05-29 13:16:04 +01:00
mips.pl Fix Typos 2019-07-31 19:48:30 +02:00
parisc-mont.pl PA-RISC assembly pack: make it work with GNU assembler for HP-UX. 2018-06-25 16:45:48 +02:00
ppc-mont.pl Update copyright year 2018-05-29 13:16:04 +01:00
ppc.pl Update copyright year 2019-05-28 14:49:38 +02:00
ppc64-mont.pl Update copyright year 2018-05-29 13:16:04 +01:00
rsaz-avx2.pl Update copyright year 2019-02-26 14:05:09 +00:00
rsaz-x86_64.pl Improve the overflow handling in rsaz_512_sqr 2019-12-06 13:36:16 +01:00
s390x-gf2m.pl Many spelling fixes/typo's corrected. 2017-11-11 19:03:10 -05:00
s390x-mont.pl s390x assembly pack: enable clang build 2019-11-03 11:48:57 +01:00
s390x.S s390x assembly pack: fix bn_mul_comba4 2019-11-17 13:55:28 +01:00
sparct4-mont.pl Update copyright year 2018-05-29 13:16:04 +01:00
sparcv8.S Many spelling fixes/typo's corrected. 2017-11-11 19:03:10 -05:00
sparcv8plus.S Update copyright year 2019-02-26 14:05:09 +00:00
sparcv9-gf2m.pl Add OpenSSL copyright to .pl files 2016-05-21 08:23:39 -04:00
sparcv9-mont.pl bn/asm/sparcv9-mont.pl: iron another glitch in squaring code path. 2018-06-09 14:47:37 +02:00
sparcv9a-mont.pl Many spelling fixes/typo's corrected. 2017-11-11 19:03:10 -05:00
via-mont.pl Update copyright year 2018-05-29 13:16:04 +01:00
vis3-mont.pl Update copyright year 2018-05-29 13:16:04 +01:00
x86-gf2m.pl Many spelling fixes/typo's corrected. 2017-11-11 19:03:10 -05:00
x86-mont.pl Update copyright year 2018-05-29 13:16:04 +01:00
x86_64-gcc.c Reorganize local header files 2019-09-27 23:58:06 +02:00
x86_64-gf2m.pl Many spelling fixes/typo's corrected. 2017-11-11 19:03:10 -05:00
x86_64-mont.pl Update copyright year 2018-05-29 13:16:04 +01:00
x86_64-mont5.pl Update copyright year 2019-02-26 14:05:09 +00:00