| 1 |
diff --git a/src/3rdparty/libwebp/src/dsp/neon.h b/src/3rdparty/libwebp/src/dsp/neon.h |
| 2 |
index 14acb40..65d9a51 100644 |
| 3 |
--- a/src/3rdparty/libwebp/src/dsp/neon.h |
| 4 |
+++ b/src/3rdparty/libwebp/src/dsp/neon.h |
| 5 |
@@ -82,6 +82,24 @@ static WEBP_INLINE int32x4x4_t Transpose4x4_NEON(const int32x4x4_t rows) { |
| 6 |
} |
| 7 |
} |
| 8 |
|
| 9 |
+#if defined(__GNUC__) && __GNUC__ <= 9 && !defined(__clang__) |
| 10 |
+static WEBP_INLINE uint8x16x4_t vld1q_u8_x4(const uint8_t *p) { |
| 11 |
+ uint8x16x4_t ret; |
| 12 |
+ ret.val[0] = vld1q_u8(p + 0); |
| 13 |
+ ret.val[1] = vld1q_u8(p + 16); |
| 14 |
+ ret.val[2] = vld1q_u8(p + 32); |
| 15 |
+ ret.val[3] = vld1q_u8(p + 48); |
| 16 |
+ return ret; |
| 17 |
+} |
| 18 |
+ |
| 19 |
+static WEBP_INLINE uint8x8x2_t vld1_u8_x2(const uint8_t *p) { |
| 20 |
+ uint8x8x2_t ret; |
| 21 |
+ ret.val[0] = vld1_u8(p + 0); |
| 22 |
+ ret.val[1] = vld1_u8(p + 8); |
| 23 |
+ return ret; |
| 24 |
+} |
| 25 |
+#endif |
| 26 |
+ |
| 27 |
#if 0 // Useful debug macro. |
| 28 |
#include <stdio.h> |
| 29 |
#define PRINT_REG(REG, SIZE) do { \ |