mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-21 23:02:40 +00:00
libgcrypt: Import libgcrypt 1.11
We currently use an old version of libgcrypt which results in us having fewer ciphers and missing on many other improvements. Signed-off-by: Vladimir Serbinenko <phcoder@gmail.com> Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
This commit is contained in:
1 parent
a0d4c94ef6
commit
3312af6e07
468 files changed
+210508
-33178
No files matched your search
@@ -0,0 +1,75 @@
|
||||
/* ARM64 add_n -- Add two limb vectors of the same length > 0 and store
|
||||
* sum in a third limb vector.
|
||||
*
|
||||
* Copyright (C) 2013 Jussi Kivilinna <jussi.kivilinna@iki.fi>
|
||||
*
|
||||
* This file is part of Libgcrypt.
|
||||
*
|
||||
* Libgcrypt is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Lesser General Public License as
|
||||
* published by the Free Software Foundation; either version 2.1 of
|
||||
* the License, or (at your option) any later version.
|
||||
*
|
||||
* Libgcrypt is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this program; if not, see <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
|
||||
#include "sysdep.h"
|
||||
#include "asm-syntax.h"
|
||||
#include "asm-common-aarch64.h"
|
||||
|
||||
/*******************
|
||||
* mpi_limb_t
|
||||
* _gcry_mpih_add_n( mpi_ptr_t res_ptr, x0
|
||||
* mpi_ptr_t s1_ptr, x1
|
||||
* mpi_ptr_t s2_ptr, x2
|
||||
* mpi_size_t size) w3
|
||||
*/
|
||||
|
||||
.text
|
||||
|
||||
.globl C_SYMBOL_NAME(_gcry_mpih_add_n)
|
||||
ELF(.type C_SYMBOL_NAME(_gcry_mpih_add_n),%function)
|
||||
.align 4
|
||||
C_SYMBOL_NAME(_gcry_mpih_add_n):
|
||||
CFI_STARTPROC()
|
||||
and w5, w3, #3;
|
||||
adds xzr, xzr, xzr; /* clear carry flag */
|
||||
|
||||
cbz w5, .Large_loop;
|
||||
|
||||
.Loop:
|
||||
ldr x4, [x1], #8;
|
||||
sub w3, w3, #1;
|
||||
ldr x11, [x2], #8;
|
||||
and w5, w3, #3;
|
||||
adcs x4, x4, x11;
|
||||
str x4, [x0], #8;
|
||||
cbz w3, .Lend;
|
||||
cbnz w5, .Loop;
|
||||
|
||||
.Large_loop:
|
||||
ldp x4, x6, [x1], #16;
|
||||
ldp x5, x7, [x2], #16;
|
||||
ldp x8, x10, [x1], #16;
|
||||
ldp x9, x11, [x2], #16;
|
||||
sub w3, w3, #4;
|
||||
adcs x4, x4, x5;
|
||||
adcs x6, x6, x7;
|
||||
adcs x8, x8, x9;
|
||||
adcs x10, x10, x11;
|
||||
stp x4, x6, [x0], #16;
|
||||
stp x8, x10, [x0], #16;
|
||||
cbnz w3, .Large_loop;
|
||||
|
||||
.Lend:
|
||||
adc x0, xzr, xzr;
|
||||
ret_spec_stop;
|
||||
CFI_ENDPROC()
|
||||
ELF(.size C_SYMBOL_NAME(_gcry_mpih_add_n),.-C_SYMBOL_NAME(_gcry_mpih_add_n);)
|
||||
Reference in new issue
Block a user