mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-28 15:28:30 +00:00
Get MbedTLS and its unit tests passing AARCH64
This commit is contained in:
parent
5e2f7f7ced
commit
4edbc98811
37 changed files with 632 additions and 725 deletions
4
third_party/mbedtls/shiftright-avx.c
vendored
4
third_party/mbedtls/shiftright-avx.c
vendored
|
@ -19,6 +19,8 @@
|
|||
#include "third_party/mbedtls/bignum_internal.h"
|
||||
#include "third_party/mbedtls/platform.h"
|
||||
|
||||
#ifdef __x86_64__
|
||||
|
||||
typedef uint64_t xmm_t __attribute__((__vector_size__(16), __aligned__(1)));
|
||||
|
||||
void ShiftRightAvx(uint64_t *p, size_t n, unsigned char k) {
|
||||
|
@ -49,3 +51,5 @@ void ShiftRightAvx(uint64_t *p, size_t n, unsigned char k) {
|
|||
p[0] = p[0] >> k | p1 << (64 - k);
|
||||
}
|
||||
}
|
||||
|
||||
#endif /* __x86_64__ */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue