summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWei Wang <wangw@codeaurora.org>2013-04-08 13:46:54 -0700
committerSteve Kondik <shade@chemlab.org>2013-07-30 10:30:51 -0700
commitcb2659c78019beb267ed5c4d56e22f1a84ec6974 (patch)
tree373599ac8abbf556211febe8acb8a98bcce0d54b
parent94ec4aa307fd4ddf33a68157961fbf58ef1d0079 (diff)
downloadbionic-cb2659c78019beb267ed5c4d56e22f1a84ec6974.zip
bionic-cb2659c78019beb267ed5c4d56e22f1a84ec6974.tar.gz
bionic-cb2659c78019beb267ed5c4d56e22f1a84ec6974.tar.bz2
Bionic/libm: enable optimized math functions on more QCOM targets.
allow more QCOM targets to use optimized math functions. Change-Id: I76ee1bf951ae1c8397fef3af6e9937ed8cad9b62
-rw-r--r--libm/Android.mk20
1 files changed, 15 insertions, 5 deletions
diff --git a/libm/Android.mk b/libm/Android.mk
index c6fa6b7..6359b09 100644
--- a/libm/Android.mk
+++ b/libm/Android.mk
@@ -184,11 +184,21 @@ libm_common_src_files += fake_long_double.c
arm/e_sqrt.S
libm_common_cflags += -DKRAIT_NEON_OPTIMIZATION -fno-if-conversion
else
- libm_common_src_files += \
- upstream-freebsd/lib/msun/src/s_cos.c \
- upstream-freebsd/lib/msun/src/s_sin.c \
- upstream-freebsd/lib/msun/src/e_sqrtf.c \
- upstream-freebsd/lib/msun/src/e_sqrt.c
+ ifeq ($(TARGET_USE_QCOM_BIONIC_OPTIMIZATION),true)
+ libm_common_src_files += \
+ arm/e_pow.S \
+ arm/s_cos.S \
+ arm/s_sin.S \
+ arm/e_sqrtf.S \
+ arm/e_sqrt.S
+ libm_common_cflags += -DKRAIT_NEON_OPTIMIZATION -fno-if-conversion
+ else
+ libm_common_src_files += \
+ upstream-freebsd/lib/msun/src/s_cos.c \
+ upstream-freebsd/lib/msun/src/s_sin.c \
+ upstream-freebsd/lib/msun/src/e_sqrtf.c \
+ upstream-freebsd/lib/msun/src/e_sqrt.c
+ endif
endif
# TODO: on Android, "long double" is "double".