]> granicus.if.org Git - libvpx/commitdiff
libyuv: cherry-pick MSVC arm build fix
authorJames Zern <jzern@google.com>
Sat, 6 Sep 2014 17:25:19 +0000 (10:25 -0700)
committerJames Zern <jzern@google.com>
Sat, 6 Sep 2014 17:39:49 +0000 (10:39 -0700)
Issue 24479004: Fix building with MSVC for arm
https://webrtc-codereview.appspot.com/24479004/

Change-Id: I758b33a21f46e46af6e58d83b7c045262ac9c7d9

third_party/libyuv/README.libvpx
third_party/libyuv/source/cpu_id.cc
third_party/libyuv/source/row_win.cc

index fb2b9d162097ad3e80e694b8977d52d2785bca12..3869d25bc40a15506163d18fc4509723953bba4d 100644 (file)
@@ -13,4 +13,4 @@ which down-samples the original input video (f.g. 1280x720) a number of times
 in order to encode multiple resolution bit streams.
 
 Local Modifications:
-None.
+cherry-pick 'Issue 24479004: Fix building with MSVC for arm'
index deb4c44656100cd61272ab5c6d83faca885a1e35..8f8a403ee3ee0fdbd76a093dd271126e3a5495ef 100644 (file)
@@ -15,7 +15,8 @@
 #endif
 #if !defined(__pnacl__) && !defined(__CLR_VER) && \
     !defined(__native_client__)  && \
-    defined(_MSC_VER) && (_MSC_FULL_VER >= 160040219)
+    defined(_MSC_VER) && (_MSC_FULL_VER >= 160040219) && \
+    (defined(_M_IX86) || defined(_M_X64))
 #include <immintrin.h>  // For _xgetbv()
 #endif
 
index f58fc5138d5ac0d32ecf5238d85943ff9a5de262..d79c353960bdd7a7fa53d660b15c976b92f1cef6 100644 (file)
@@ -21,7 +21,8 @@ extern "C" {
 #endif
 
 // This module is for Visual C.
-#if !defined(LIBYUV_DISABLE_X86) && defined(_MSC_VER)
+#if !defined(LIBYUV_DISABLE_X86) && defined(_MSC_VER) && \
+    (defined(_M_IX86) || defined(_M_X64))
 
 #define YG 74  /* (int8)(1.164 * 64 + 0.5) */