summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteve Kondik <shade@chemlab.org>2013-02-16 18:53:47 -0800
committerSteve Kondik <shade@chemlab.org>2013-02-16 21:09:13 -0800
commitb24c0fa61e261d1b9e144b51252bcb925948d326 (patch)
tree231b4f91a7ba81d531868dc72a77369372d7613d
parent44a555de45943f75e2fcb84393366e89a203a783 (diff)
downloadbionic-b24c0fa61e261d1b9e144b51252bcb925948d326.zip
bionic-b24c0fa61e261d1b9e144b51252bcb925948d326.tar.gz
bionic-b24c0fa61e261d1b9e144b51252bcb925948d326.tar.bz2
libc: Enable the fast memmove for NEON targets
* The CodeAurora version of memmove provides roughly 20x the throughput of the default version for all tested platforms. Enable it. Change-Id: Ia9740f6b38a72c0bd6a6818c96d73e2c23bb5979
-rw-r--r--libc/Android.mk2
-rw-r--r--libc/arch-arm/bionic/memmove.S2
2 files changed, 2 insertions, 2 deletions
diff --git a/libc/Android.mk b/libc/Android.mk
index d048159..ffa075f 100644
--- a/libc/Android.mk
+++ b/libc/Android.mk
@@ -401,7 +401,7 @@ libc_common_src_files += \
arch-arm/bionic/memmove.S \
bionic/memmove_words.c
else
-ifneq (, $(filter true,$(TARGET_USE_KRAIT_BIONIC_OPTIMIZATION) $(TARGET_USE_SPARROW_BIONIC_OPTIMIZATION)))
+ifeq ($(ARCH_ARM_HAVE_NEON),true)
libc_common_src_files += \
arch-arm/bionic/memmove.S
else # Other ARM
diff --git a/libc/arch-arm/bionic/memmove.S b/libc/arch-arm/bionic/memmove.S
index 937d14b..a771f85 100644
--- a/libc/arch-arm/bionic/memmove.S
+++ b/libc/arch-arm/bionic/memmove.S
@@ -37,7 +37,7 @@
#include <machine/cpu-features.h>
-#if defined(KRAIT_NEON_OPTIMIZATION) || defined(SPARROW_NEON_OPTIMIZATION)
+#if !defined(SCORPION_NEON_OPTIMIZATION)
/*
* These can be overridden in:
* device/<vendor>/<board>/BoardConfig.mk