summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Zern <jzern@google.com>2023-04-05 22:03:14 -0700
committerJames Zern <jzern@google.com>2023-04-06 13:49:36 -0700
commit0afbd97b4540c8053730289bd42b0395c53235f1 (patch)
treec322b68e76b643aba664cda62c2ceed06808ec76
parent349f4353dd638f2f85e7dd2d9df9a68f54d9919c (diff)
downloadlibwebp-0afbd97b4540c8053730289bd42b0395c53235f1.tar.gz
cpu.h: enable NEON w/_M_ARM64EC
The Arm64EC (Emulation Compatible) ABI was added for Windows 11 [1]. [1] https://learn.microsoft.com/en-us/windows/arm/arm64ec Bug: b/277254922 Change-Id: I3767e1b3db61fa9c33eef7a9ed7abee7c502e36f
-rw-r--r--src/dsp/cpu.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/dsp/cpu.h b/src/dsp/cpu.h
index be80727c..785a0569 100644
--- a/src/dsp/cpu.h
+++ b/src/dsp/cpu.h
@@ -98,8 +98,9 @@
// inclusion of arm64_neon.h; Visual Studio 2019 includes this file in
// arm_neon.h. Compile errors were seen with Visual Studio 2019 16.4 with
// vtbl4_u8(); a fix was made in 16.6.
-#if defined(_MSC_VER) && ((_MSC_VER >= 1700 && defined(_M_ARM)) || \
- (_MSC_VER >= 1926 && defined(_M_ARM64)))
+#if defined(_MSC_VER) && \
+ ((_MSC_VER >= 1700 && defined(_M_ARM)) || \
+ (_MSC_VER >= 1926 && (defined(_M_ARM64) || defined(_M_ARM64EC))))
#define WEBP_USE_NEON
#define WEBP_USE_INTRINSICS
#endif