]> granicus.if.org Git - libvpx/commitdiff
arm: Add a no-op define of __builtin_prefetch for MSVC
authorMartin Storsjo <martin@martin.st>
Wed, 7 May 2014 07:26:32 +0000 (10:26 +0300)
committerMartin Storsjo <martin@martin.st>
Wed, 7 May 2014 07:43:24 +0000 (10:43 +0300)
Both GCC and RVCT/ARMCC support __builtin_prefetch, but MSVC
doesn't.

Change-Id: I44e1eecead61bc88d8fdfd3fef03d76d4f5afe08

vp8/common/arm/neon/sixtappredict_neon.c
vp8/common/arm/neon/variance_neon.c

index 22932e94a439031fd6bd3158642854d15043cf82..7a4d9e051280728e6fe6ae3579158db5247718eb 100644 (file)
 
 #include <arm_neon.h>
 
+#ifdef _MSC_VER
+#define __builtin_prefetch(x)
+#endif
+
 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 */
     {0, -6,  123,  12,  -1, 0, 0, 0},  /*    just as per alpha -0.5 bicubic */
index 3e25f7ddf77f3cf2e3438d6d62b98c27b54020b6..e2ff7dc7eed28f9f57a08af32f3f068b9c9cc7e1 100644 (file)
 
 #include <arm_neon.h>
 
+#ifdef _MSC_VER
+#define __builtin_prefetch(x)
+#endif
+
 unsigned int vp8_variance16x16_neon(
         const unsigned char *src_ptr,
         int source_stride,