resample: add neon optimised code if supported on target
- Add NEON optimized inner_product_single for fixed point.
Semantics of inner_product_single have also been changed to
contain the final right shift and saturation. This change
affects fixed point calculations only.
- Force full sinc table (e.g. no polynomial interpolation)
Change-Id: Iba6a6f54fad26598de623851fc455c947681ca30
diff --git a/Android.mk b/Android.mk
index 333ef03..50985dc 100644
--- a/Android.mk
+++ b/Android.mk
@@ -48,7 +48,12 @@
LOCAL_MODULE:= libspeexresampler
LOCAL_MODULE_TAGS := optional
-LOCAL_CFLAGS+= -DEXPORT= -DFIXED_POINT -O3 -fstrict-aliasing -fprefetch-loop-arrays
+LOCAL_CFLAGS += -DEXPORT= -DFIXED_POINT -DRESAMPLE_FORCE_FULL_SINC_TABLE
+LOCAL_CFLAGS += -O3 -fstrict-aliasing -fprefetch-loop-arrays
+
+ifeq ($(ARCH_ARM_HAVE_NEON),true)
+ LOCAL_CFLAGS += -D_USE_NEON
+endif
LOCAL_C_INCLUDES += \
$(LOCAL_PATH)/include