diff options
author | jkim <jkim@FreeBSD.org> | 2017-11-02 18:30:41 +0000 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2017-11-13 15:16:56 -0200 |
commit | 3c265be35a8193948998f35886be227dff6eab48 (patch) | |
tree | 736b8c2419a99e19b4e8237112412c9e4a1cba66 /crypto/openssl/crypto/bn/asm | |
parent | 70ee3cb33663d3f5f9666994a129f8053d8ef7b5 (diff) | |
download | FreeBSD-src-3c265be35a8193948998f35886be227dff6eab48.zip FreeBSD-src-3c265be35a8193948998f35886be227dff6eab48.tar.gz |
MFC: r325328
Merge OpenSSL 1.0.2m.
(cherry picked from commit a88f0513c4cf81f98bab740e4f112f1a6d7f4d42)
Diffstat (limited to 'crypto/openssl/crypto/bn/asm')
-rwxr-xr-x | crypto/openssl/crypto/bn/asm/x86_64-mont5.pl | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/crypto/openssl/crypto/bn/asm/x86_64-mont5.pl b/crypto/openssl/crypto/bn/asm/x86_64-mont5.pl index 3bb0cdf..42178e4 100755 --- a/crypto/openssl/crypto/bn/asm/x86_64-mont5.pl +++ b/crypto/openssl/crypto/bn/asm/x86_64-mont5.pl @@ -3090,11 +3090,19 @@ $code.=<<___; .align 32 .Lsqrx8x_break: - sub 16+8(%rsp),%r8 # consume last carry + xor $zero,$zero + sub 16+8(%rsp),%rbx # mov 16(%rsp),%cf + adcx $zero,%r8 mov 24+8(%rsp),$carry # initial $tptr, borrow $carry + adcx $zero,%r9 mov 0*8($aptr),%rdx # a[8], modulo-scheduled - xor %ebp,%ebp # xor $zero,$zero + adc \$0,%r10 mov %r8,0*8($tptr) + adc \$0,%r11 + adc \$0,%r12 + adc \$0,%r13 + adc \$0,%r14 + adc \$0,%r15 cmp $carry,$tptr # cf=0, of=0 je .Lsqrx8x_outer_loop |