diff options
author | Theo Buehler <tb@openbsd.org> | 2022-11-27 10:35:13 +0100 |
---|---|---|
committer | Theo Buehler <tb@openbsd.org> | 2022-11-27 10:35:13 +0100 |
commit | bcf7afb23f9ae3a8dbdbb4ffe78c1e6f8bdc4444 (patch) | |
tree | 7be7f0f6115d7624b2933e06db20af91cfc5dc29 /patches/modes_local.h.patch | |
parent | f39a1b4b64910394382c55b387efc11a28bc9338 (diff) | |
download | portable-bcf7afb23f9ae3a8dbdbb4ffe78c1e6f8bdc4444.tar.gz portable-bcf7afb23f9ae3a8dbdbb4ffe78c1e6f8bdc4444.tar.bz2 portable-bcf7afb23f9ae3a8dbdbb4ffe78c1e6f8bdc4444.zip |
Adjust patches for lcl.h -> local.h rename
Diffstat (limited to 'patches/modes_local.h.patch')
-rw-r--r-- | patches/modes_local.h.patch | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/patches/modes_local.h.patch b/patches/modes_local.h.patch new file mode 100644 index 0000000..8f55eed --- /dev/null +++ b/patches/modes_local.h.patch | |||
@@ -0,0 +1,21 @@ | |||
1 | --- crypto/modes/modes_local.h.orig Tue Nov 14 10:25:15 2017 | ||
2 | +++ crypto/modes/modes_local.h Sat Jan 19 22:19:23 2019 | ||
3 | @@ -45,14 +45,16 @@ | ||
4 | asm ("bswapl %0" \ | ||
5 | : "+r"(ret)); ret; }) | ||
6 | # elif (defined(__arm__) || defined(__arm)) && !defined(__STRICT_ALIGNMENT) | ||
7 | -# define BSWAP8(x) ({ u32 lo=(u64)(x)>>32,hi=(x); \ | ||
8 | +# if (__ARM_ARCH >= 6) | ||
9 | +# define BSWAP8(x) ({ u32 lo=(u64)(x)>>32,hi=(x); \ | ||
10 | asm ("rev %0,%0; rev %1,%1" \ | ||
11 | : "+r"(hi),"+r"(lo)); \ | ||
12 | (u64)hi<<32|lo; }) | ||
13 | -# define BSWAP4(x) ({ u32 ret; \ | ||
14 | +# define BSWAP4(x) ({ u32 ret; \ | ||
15 | asm ("rev %0,%1" \ | ||
16 | : "=r"(ret) : "r"((u32)(x))); \ | ||
17 | ret; }) | ||
18 | +# endif | ||
19 | # endif | ||
20 | #endif | ||
21 | #endif | ||