diff options
| author | riastradh <riastradh@NetBSD.org> | 2020-08-08 14:47:01 +0000 |
|---|---|---|
| committer | riastradh <riastradh@NetBSD.org> | 2020-08-08 14:47:01 +0000 |
| commit | be52d94ae2e2b08bb6d22c14d112dc50877549f7 (patch) | |
| tree | 57b54c38b785ba65f390b7d6a1489e5afdc4ca82 /usr.bin/script | |
| parent | 626b7dc7f14959d040d5e25c1113ad1a33afeb7c (diff) | |
Fix ARM NEON implementations of AES and ChaCha on big-endian ARM.
New macros such as VQ_N_U32(a,b,c,d) for NEON vector initializers.
Needed because GCC and Clang disagree on the ordering of lanes,
depending on whether it's 64-bit big-endian, 32-bit big-endian, or
little-endian -- and, bizarrely, both of them disagree with the
architectural numbering of lanes.
Experimented with using
static const uint8_t x8[16] = {...};
uint8x16_t x = vld1q_u8(x8);
which doesn't require knowing anything about the ordering of lanes,
but this generates considerably worse code and apparently confuses
GCC into not recognizing the constant value of x8.
Fix some clang mistakes while here too.
Diffstat (limited to 'usr.bin/script')
0 files changed, 0 insertions, 0 deletions
