diff options
author | Prachee Ramsinghani <pracheer@codeaurora.org> | 2012-07-26 16:20:22 +0530 |
---|---|---|
committer | Steve Kondik <shade@chemlab.org> | 2012-09-05 03:08:34 -0700 |
commit | e5b564f68a3238e82c2d97df3a4544eff00a99bf (patch) | |
tree | 6056c116c782a65687422a8f84f00353398782a7 /libm | |
parent | 7183f48ff46e02ede707d1773ea3ebc9313e8397 (diff) | |
download | bionic-e5b564f68a3238e82c2d97df3a4544eff00a99bf.zip bionic-e5b564f68a3238e82c2d97df3a4544eff00a99bf.tar.gz bionic-e5b564f68a3238e82c2d97df3a4544eff00a99bf.tar.bz2 |
msm7627a: Enable neon optimized memove and pow functions.
Define SPARROW_NEON_OPTIMIZATION flag so that neon optimized
memove and pow functions are used. Also add Corresponding
definitions in make files.
Change-Id: I12089fc7002e3ec294e63632bd84e395fbd24936
Diffstat (limited to 'libm')
-rw-r--r-- | libm/Android.mk | 6 | ||||
-rw-r--r-- | libm/src/e_pow.c | 4 |
2 files changed, 8 insertions, 2 deletions
diff --git a/libm/Android.mk b/libm/Android.mk index 3bb2d4c..639bc34 100644 --- a/libm/Android.mk +++ b/libm/Android.mk @@ -172,6 +172,12 @@ ifeq ($(TARGET_ARCH),arm) src/s_sin.c endif + ifeq ($(TARGET_USE_SPARROW_BIONIC_OPTIMIZATION),true) + libm_common_src_files += \ + arm/e_pow.S + libm_common_cflags += -DSPARROW_NEON_OPTIMIZATION + endif + libm_common_includes = $(LOCAL_PATH)/arm else diff --git a/libm/src/e_pow.c b/libm/src/e_pow.c index 50b07a6..69f2713 100644 --- a/libm/src/e_pow.c +++ b/libm/src/e_pow.c @@ -13,7 +13,7 @@ static char rcsid[] = "$FreeBSD: src/lib/msun/src/e_pow.c,v 1.11 2005/02/04 18:26:06 das Exp $"; #endif -#if defined(KRAIT_NEON_OPTIMIZATION) +#if defined(KRAIT_NEON_OPTIMIZATION) || defined(SPARROW_NEON_OPTIMIZATION) double pow_neon(double x, double y); #endif @@ -205,7 +205,7 @@ __ieee754_pow(double x, double y) t1 = u+v; SET_LOW_WORD(t1,0); t2 = v-(t1-u); -#if defined(KRAIT_NEON_OPTIMIZATION) +#if defined(KRAIT_NEON_OPTIMIZATION) || defined(SPARROW_NEON_OPTIMIZATION) } else if (ix <= 0x40100000 && iy <= 0x40100000 && hy > 0 && hx > 0) { return pow_neon(x,y); #endif |