summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteve Kondik <shade@chemlab.org>2013-02-15 09:50:52 -0800
committerSteve Kondik <shade@chemlab.org>2013-02-15 10:02:23 -0800
commitfa64a5ee8afa0bc880202ebcf760322c36efd3bd (patch)
tree15773efa6d4e9c8438194796d68f7a39c8729ef1
parent1e126c23e21da1dcbefc6f5c444b97ef622e67ad (diff)
downloadbionic-fa64a5ee8afa0bc880202ebcf760322c36efd3bd.zip
bionic-fa64a5ee8afa0bc880202ebcf760322c36efd3bd.tar.gz
bionic-fa64a5ee8afa0bc880202ebcf760322c36efd3bd.tar.bz2
libc: Add ARCH_ARM flags to enable new optimizations
Change-Id: I2a436f0730201509c6e53da7447835653d75f7f5
-rw-r--r--libc/Android.mk11
1 files changed, 11 insertions, 0 deletions
diff --git a/libc/Android.mk b/libc/Android.mk
index c04a0fc..d048159 100644
--- a/libc/Android.mk
+++ b/libc/Android.mk
@@ -591,6 +591,17 @@ ifeq ($(TARGET_ARCH),arm)
libc_common_cflags += -DARCH_ARM_USE_NON_NEON_MEMCPY
endif
+
+ ifeq ($(ARCH_ARM_HAVE_NEON_UNALIGNED_ACCESS),true)
+ libc_common_cflags += -DNEON_UNALIGNED_ACCESS
+ endif
+ ifneq ($(ARCH_ARM_NEON_MEMCPY_ALIGNMENT_DIVIDER),)
+ libc_common_cflags += -DNEON_MEMCPY_ALIGNMENT_DIVIDER=$(ARCH_ARM_NEON_MEMCPY_ALIGNMENT_DIVIDER)
+ endif
+ ifneq ($(ARCH_ARM_NEON_MEMSET_DIVIDER),)
+ libc_common_cflags += -DNEON_MEMSET_DIVIDER=$(ARCH_ARM_NEON_MEMSET_DIVIDER)
+ endif
+
# Add in defines to activate SCORPION_NEON_OPTIMIZATION
ifeq ($(TARGET_USE_SCORPION_BIONIC_OPTIMIZATION),true)
libc_common_cflags += -DSCORPION_NEON_OPTIMIZATION