summaryrefslogtreecommitdiff
path: root/thirdparty/libwebp/src/dsp/neon.h
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2022-01-23 23:01:49 +0100
committerRémi Verschelde <rverschelde@gmail.com>2022-02-02 23:29:30 +0100
commit339dcd80aed70d025b98f943e2a57767701a84f1 (patch)
tree50188d20cb180f39198f90b97a146b35a1e697b9 /thirdparty/libwebp/src/dsp/neon.h
parentbf12719ccabcea9bf9b274f77511e02581678774 (diff)
libwebp: Sync with upstream 1.2.2
Changes: https://chromium.googlesource.com/webm/libwebp/+/1.2.2/NEWS
Diffstat (limited to 'thirdparty/libwebp/src/dsp/neon.h')
-rw-r--r--thirdparty/libwebp/src/dsp/neon.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/thirdparty/libwebp/src/dsp/neon.h b/thirdparty/libwebp/src/dsp/neon.h
index aa1dea1301..c591f9b9a7 100644
--- a/thirdparty/libwebp/src/dsp/neon.h
+++ b/thirdparty/libwebp/src/dsp/neon.h
@@ -12,10 +12,12 @@
#ifndef WEBP_DSP_NEON_H_
#define WEBP_DSP_NEON_H_
-#include <arm_neon.h>
-
#include "src/dsp/dsp.h"
+#if defined(WEBP_USE_NEON)
+
+#include <arm_neon.h>
+
// Right now, some intrinsics functions seem slower, so we disable them
// everywhere except newer clang/gcc or aarch64 where the inline assembly is
// incompatible.
@@ -98,4 +100,5 @@ static WEBP_INLINE int32x4x4_t Transpose4x4_NEON(const int32x4x4_t rows) {
} while (0)
#endif
+#endif // WEBP_USE_NEON
#endif // WEBP_DSP_NEON_H_