aboutsummaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorJames Zern <jzern@google.com>2023-05-08 15:25:42 -0700
committerlibyuv LUCI CQ <libyuv-scoped@luci-project-accounts.iam.gserviceaccount.com>2023-05-09 19:56:35 +0000
commitb372510c5699abdde5d50b60e89daa5b71b7792c (patch)
tree5ad901fd0a214d6c93b2c454081eb78b00b79df7 /source
parent4c209d264d5e4b297bab17f7ba0a49ecafa08b98 (diff)
downloadlibyuv-b372510c5699abdde5d50b60e89daa5b71b7792c.tar.gz
row_win.cc: fix ARM64EC build
include intrin.h rather than emmintrin.h; fixes: C:\...\VC\Tools\MSVC\14.35.32215\include\emmintrin.h(28,1): fatal error C1189: #error: this header should only be included through Change-Id: Ief9c81f6f1971e552c8aac301d678b64fe5bd7cc Reviewed-on: https://chromium-review.googlesource.com/c/libyuv/libyuv/+/4513825 Commit-Queue: Frank Barchard <fbarchard@chromium.org> Reviewed-by: Frank Barchard <fbarchard@chromium.org>
Diffstat (limited to 'source')
-rw-r--r--source/row_win.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/row_win.cc b/source/row_win.cc
index ba5e5318..b414d2d0 100644
--- a/source/row_win.cc
+++ b/source/row_win.cc
@@ -14,7 +14,9 @@
#if !defined(LIBYUV_DISABLE_X86) && defined(_MSC_VER) && \
!defined(__clang__) && (defined(_M_IX86) || defined(_M_X64))
-#if defined(_M_X64)
+#if defined(_M_ARM64EC)
+#include <intrin.h>
+#elif defined(_M_X64)
#include <emmintrin.h>
#include <tmmintrin.h> // For _mm_maddubs_epi16
#endif