-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
636117f
commit fffa8f9
Showing
166 changed files
with
288,595 additions
and
0 deletions.
There are no files selected for viewing
606 changes: 606 additions & 0 deletions
606
libraries/libfc/libraries/boringssl/boringssl/CMakeLists.txt
Large diffs are not rendered by default.
Oops, something went wrong.
1,984 changes: 1,984 additions & 0 deletions
1,984
...ries/libfc/libraries/boringssl/boringssl/apple-aarch64/crypto/chacha/chacha-armv8-apple.S
Large diffs are not rendered by default.
Oops, something went wrong.
3,009 changes: 3,009 additions & 0 deletions
3,009
...ies/boringssl/boringssl/apple-aarch64/crypto/cipher_extra/chacha20_poly1305_armv8-apple.S
Large diffs are not rendered by default.
Oops, something went wrong.
791 changes: 791 additions & 0 deletions
791
...s/libfc/libraries/boringssl/boringssl/apple-aarch64/crypto/fipsmodule/aesv8-armv8-apple.S
Large diffs are not rendered by default.
Oops, something went wrong.
1,555 changes: 1,555 additions & 0 deletions
1,555
...bfc/libraries/boringssl/boringssl/apple-aarch64/crypto/fipsmodule/aesv8-gcm-armv8-apple.S
Large diffs are not rendered by default.
Oops, something went wrong.
1,425 changes: 1,425 additions & 0 deletions
1,425
...es/libfc/libraries/boringssl/boringssl/apple-aarch64/crypto/fipsmodule/armv8-mont-apple.S
Large diffs are not rendered by default.
Oops, something went wrong.
89 changes: 89 additions & 0 deletions
89
...ries/libfc/libraries/boringssl/boringssl/apple-aarch64/crypto/fipsmodule/bn-armv8-apple.S
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
// This file is generated from a similarly-named Perl script in the BoringSSL | ||
// source tree. Do not edit by hand. | ||
|
||
#include <openssl/asm_base.h> | ||
|
||
#if !defined(OPENSSL_NO_ASM) && defined(OPENSSL_AARCH64) && defined(__APPLE__) | ||
#include <openssl/arm_arch.h> | ||
|
||
.text | ||
|
||
// BN_ULONG bn_add_words(BN_ULONG *rp, const BN_ULONG *ap, const BN_ULONG *bp, | ||
// size_t num); | ||
|
||
.globl _bn_add_words | ||
.private_extern _bn_add_words | ||
.align 4 | ||
_bn_add_words: | ||
AARCH64_VALID_CALL_TARGET | ||
# Clear the carry flag. | ||
cmn xzr, xzr | ||
|
||
# aarch64 can load two registers at a time, so we do two loop iterations at | ||
# at a time. Split x3 = 2 * x8 + x3. This allows loop | ||
# operations to use CBNZ without clobbering the carry flag. | ||
lsr x8, x3, #1 | ||
and x3, x3, #1 | ||
|
||
cbz x8, Ladd_tail | ||
Ladd_loop: | ||
ldp x4, x5, [x1], #16 | ||
ldp x6, x7, [x2], #16 | ||
sub x8, x8, #1 | ||
adcs x4, x4, x6 | ||
adcs x5, x5, x7 | ||
stp x4, x5, [x0], #16 | ||
cbnz x8, Ladd_loop | ||
|
||
Ladd_tail: | ||
cbz x3, Ladd_exit | ||
ldr x4, [x1], #8 | ||
ldr x6, [x2], #8 | ||
adcs x4, x4, x6 | ||
str x4, [x0], #8 | ||
|
||
Ladd_exit: | ||
cset x0, cs | ||
ret | ||
|
||
|
||
// BN_ULONG bn_sub_words(BN_ULONG *rp, const BN_ULONG *ap, const BN_ULONG *bp, | ||
// size_t num); | ||
|
||
.globl _bn_sub_words | ||
.private_extern _bn_sub_words | ||
.align 4 | ||
_bn_sub_words: | ||
AARCH64_VALID_CALL_TARGET | ||
# Set the carry flag. Arm's borrow bit is flipped from the carry flag, | ||
# so we want C = 1 here. | ||
cmp xzr, xzr | ||
|
||
# aarch64 can load two registers at a time, so we do two loop iterations at | ||
# at a time. Split x3 = 2 * x8 + x3. This allows loop | ||
# operations to use CBNZ without clobbering the carry flag. | ||
lsr x8, x3, #1 | ||
and x3, x3, #1 | ||
|
||
cbz x8, Lsub_tail | ||
Lsub_loop: | ||
ldp x4, x5, [x1], #16 | ||
ldp x6, x7, [x2], #16 | ||
sub x8, x8, #1 | ||
sbcs x4, x4, x6 | ||
sbcs x5, x5, x7 | ||
stp x4, x5, [x0], #16 | ||
cbnz x8, Lsub_loop | ||
|
||
Lsub_tail: | ||
cbz x3, Lsub_exit | ||
ldr x4, [x1], #8 | ||
ldr x6, [x2], #8 | ||
sbcs x4, x4, x6 | ||
str x4, [x0], #8 | ||
|
||
Lsub_exit: | ||
cset x0, cc | ||
ret | ||
|
||
#endif // !OPENSSL_NO_ASM && defined(OPENSSL_AARCH64) && defined(__APPLE__) |
Oops, something went wrong.