aboutsummaryrefslogtreecommitdiff
path: root/patches/modes_lcl.h.patch
diff options
context:
space:
mode:
authorBrent Cook <busterb@gmail.com>2019-01-04 07:28:54 -0600
committerBrent Cook <busterb@gmail.com>2019-01-07 06:46:03 -0600
commit3247230d47b896afa0819415ed953e9e9af57dfe (patch)
tree8566912a307be865450da97393c4fe28bdac680d /patches/modes_lcl.h.patch
parentb6479e01f64ef3f1f0616592f5139956c8b6dc25 (diff)
downloadportable-3247230d47b896afa0819415ed953e9e9af57dfe.tar.gz
portable-3247230d47b896afa0819415ed953e9e9af57dfe.tar.bz2
portable-3247230d47b896afa0819415ed953e9e9af57dfe.zip
rename modes_lcl patch so it applies
Diffstat (limited to 'patches/modes_lcl.h.patch')
-rw-r--r--patches/modes_lcl.h.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/patches/modes_lcl.h.patch b/patches/modes_lcl.h.patch
new file mode 100644
index 0000000..1ba9f2e
--- /dev/null
+++ b/patches/modes_lcl.h.patch
@@ -0,0 +1,21 @@
1--- openbsd/src/lib/libssl/src/crypto/modes/modes_lcl.h Sat Dec 6 17:15:50 2014
2+++ crypto/modes/modes_lcl.h Sun Jul 17 17:45:27 2016
3@@ -43,14 +43,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