From 29aa0099248b3a7ac4e178e15bdcb2edbce2500a Mon Sep 17 00:00:00 2001 From: xqian6 Date: Mon, 25 Jun 2012 16:12:06 +0800 Subject: [PATCH] Enable sqrtf() x86 assembly code This patch can improve the sqrtf() performance. Change-Id: Ic9d11d6a9ecd9b263f54d4878e13595e136b95ce --- libm/Android.mk | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/libm/Android.mk b/libm/Android.mk index 07cb7dbe9..756c9ab89 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