summaryrefslogtreecommitdiffstats
path: root/libm
diff options
context:
space:
mode:
authorxqian6 <xi.qian@intel.com>2012-06-25 16:12:06 +0800
committerxqian6 <xi.qian@intel.com>2012-06-25 16:20:09 +0800
commit29aa0099248b3a7ac4e178e15bdcb2edbce2500a (patch)
treeca86c9e1e06abc04e5390e91ebd871d0513c14ec /libm
parent028ccf5d40dd9a945ea92aa79822c08c6f6aa1d2 (diff)
downloadbionic-29aa0099248b3a7ac4e178e15bdcb2edbce2500a.zip
bionic-29aa0099248b3a7ac4e178e15bdcb2edbce2500a.tar.gz
bionic-29aa0099248b3a7ac4e178e15bdcb2edbce2500a.tar.bz2
Enable sqrtf() x86 assembly code
This patch can improve the sqrtf() performance. Change-Id: Ic9d11d6a9ecd9b263f54d4878e13595e136b95ce
Diffstat (limited to 'libm')
-rw-r--r--libm/Android.mk10
1 files changed, 6 insertions, 4 deletions
diff --git a/libm/Android.mk b/libm/Android.mk
index 07cb7db..756c9ab 100644
--- a/libm/Android.mk
+++ b/libm/Android.mk
@@ -54,7 +54,6 @@ libm_common_src_files:= \
src/e_sinh.c \
src/e_sinhf.c \
src/e_sqrt.c \
- src/e_sqrtf.c \
src/k_cos.c \
src/k_cosf.c \
src/k_rem_pio2.c \
@@ -160,7 +159,8 @@ ifeq ($(TARGET_ARCH),arm)
src/e_ldexpf.c \
src/s_scalbln.c \
src/s_scalbn.c \
- src/s_scalbnf.c
+ src/s_scalbnf.c \
+ src/e_sqrtf.c
libm_common_includes = $(LOCAL_PATH)/arm
endif
@@ -170,7 +170,8 @@ ifeq ($(TARGET_OS)-$(TARGET_ARCH),linux-x86)
i387/fenv.c \
i387/s_scalbnl.S \
i387/s_scalbn.S \
- i387/s_scalbnf.S
+ i387/s_scalbnf.S \
+ i387/e_sqrtf.S
libm_common_includes = $(LOCAL_PATH)/i386 $(LOCAL_PATH)/i387
endif
@@ -180,7 +181,8 @@ ifeq ($(TARGET_ARCH),mips)
src/e_ldexpf.c \
src/s_scalbln.c \
src/s_scalbn.c \
- src/s_scalbnf.c
+ src/s_scalbnf.c \
+ src/e_sqrtf.c
libm_common_includes = $(LOCAL_PATH)/mips
# Need to build *rint* functions