From 0c3d2b99119190dba592fa53ec0bb0ed0be323c6 Mon Sep 17 00:00:00 2001 From: Damiano Galassi Date: Fri, 16 Apr 2021 22:42:11 +0200 Subject: contrib: backport zimg NEON alignment fix. --- contrib/zimg/A00-fix-alignment-for-ARM.patch | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 contrib/zimg/A00-fix-alignment-for-ARM.patch diff --git a/contrib/zimg/A00-fix-alignment-for-ARM.patch b/contrib/zimg/A00-fix-alignment-for-ARM.patch new file mode 100644 index 000000000..aa84c7a39 --- /dev/null +++ b/contrib/zimg/A00-fix-alignment-for-ARM.patch @@ -0,0 +1,26 @@ +From e1fd1d4a36637010e455db28546313d3b2939679 Mon Sep 17 00:00:00 2001 +From: sekrit-twc +Date: Fri, 16 Apr 2021 12:23:17 -0700 +Subject: [PATCH] common: fix alignment for ARM + +--- + src/zimg/common/align.h | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git a/src/zimg/common/align.h b/src/zimg/common/align.h +index a30468c..7de840a 100644 +--- a/src/zimg/common/align.h ++++ b/src/zimg/common/align.h +@@ -11,6 +11,9 @@ namespace zimg { + #ifdef ZIMG_X86 + constexpr int ALIGNMENT = 64; + constexpr int ALIGNMENT_RELAXED = 32; ++#elif ZIMG_ARM ++constexpr int ALIGNMENT = 16; ++constexpr int ALIGNMENT_RELAXED = 16; + #else + constexpr int ALIGNMENT = sizeof(long double); + constexpr int ALIGNMENT_RELAXED = sizeof(long double); +-- +2.24.3 (Apple Git-128) + -- cgit v1.2.3