]> granicus.if.org Git - libvpx/commitdiff
vp8/vp9: neon: msvc: move the 'ifdef _MSC_VER' bit to vpx_ports/mem.h.
authorJia Jia <jia.jia@linaro.org>
Wed, 10 Sep 2014 06:32:21 +0000 (06:32 +0000)
committerJia Jia <jia.jia@linaro.org>
Sat, 13 Sep 2014 17:43:54 +0000 (01:43 +0800)
                     fix compiling warning.

Change-Id: If8706a9046436f704c597e4275a6810c76ba7daa

vp8/common/arm/neon/sixtappredict_neon.c
vp8/common/arm/neon/variance_neon.c
vp8/common/arm/neon/vp8_subpixelvariance_neon.c
vpx_ports/mem.h

index aad6133f5f233ea878d85845d2bbff565f9e8ecb..4c2efc92b13e995e1a8bbbdb2783e287a0b918a6 100644 (file)
@@ -9,10 +9,7 @@
  */
 
 #include <arm_neon.h>
-
-#ifdef _MSC_VER
-#define __builtin_prefetch(x)
-#endif
+#include "vpx_ports/mem.h"
 
 static const int8_t vp8_sub_pel_filters[8][8] = {
     {0,  0,  128,   0,   0, 0, 0, 0},  /* note that 1/8 pel positionyys are */
index afd2dc3d1e26e604c3679d9378876f3aba89e9ec..1b1979073e5d5ef04f17291e52719ee4263fce0b 100644 (file)
@@ -9,10 +9,7 @@
  */
 
 #include <arm_neon.h>
-
-#ifdef _MSC_VER
-#define __builtin_prefetch(x)
-#endif
+#include "vpx_ports/mem.h"
 
 unsigned int vp8_variance16x16_neon(
         const unsigned char *src_ptr,
index 6405bf260893a72248ce9c9559fb307ab0f2db12..8308d555b3727f69eaefe5df85edda4eb5cf9238 100644 (file)
 #include "vpx_ports/mem.h"
 #include "vpx/vpx_integer.h"
 
-#ifdef _MSC_VER
-#define __builtin_prefetch(x)
-#endif
-
 static const uint16_t bilinear_taps_coeff[8][2] = {
     {128,   0},
     {112,  16},
index e91d776945f1215684e2f92997ab2d36f984b1d2..1cb8c8cd9afcc43fa6c9d658394ce25d3b791c79 100644 (file)
@@ -23,7 +23,6 @@
 #warning No alignment directives known for this compiler.
 #define DECLARE_ALIGNED(n,typ,val)  typ val
 #endif
-#endif
 
 
 /* Declare an aligned array on the stack, for situations where the stack
 #define UNINITIALIZED_IS_SAFE(x) x=x
 #else
 #define UNINITIALIZED_IS_SAFE(x) x
+#endif
+
+#if HAVE_NEON && defined(_MSC_VER)
+#define __builtin_prefetch(x)
+#endif
+
 #endif  // VPX_PORTS_MEM_H_