Fix build failure with Android NDK
authorJohann <johannkoenig@google.com>
Thu, 25 Sep 2014 16:33:44 +0000 (09:33 -0700)
committerGerrit Code Review <gerrit@gerrit.golo.chromium.org>
Thu, 25 Sep 2014 19:15:21 +0000 (12:15 -0700)
The version of gcc4.6 included with the Android NDK through r10b
fails to compile this function. Replace it with C code.

BUG=860

Change-Id: Ifcc0476664071aec46a171cdd5ad17305930986a

vp8/encoder/arm/neon/vp8_shortwalsh4x4_neon.c

index d6b67f8..5ad9465 100644 (file)
@@ -9,7 +9,17 @@
  */
 
 #include <arm_neon.h>
+#include "vpx_ports/arm.h"
 
+#ifdef VPX_INCOMPATIBLE_GCC
+#include "./vp8_rtcd.h"
+void vp8_short_walsh4x4_neon(
+        int16_t *input,
+        int16_t *output,
+        int pitch) {
+  vp8_short_walsh4x4_c(input, output, pitch);
+}
+#else
 void vp8_short_walsh4x4_neon(
         int16_t *input,
         int16_t *output,
@@ -116,3 +126,4 @@ void vp8_short_walsh4x4_neon(
     vst1q_s16(output + 8, q1s16);
     return;
 }
+#endif  // VPX_INCOMPATIBLE_GCC