diff options
author | Wei Wang <wangw@codeaurora.org> | 2014-10-07 11:58:22 -0700 |
---|---|---|
committer | Linux Build Service Account <lnxbuild@localhost> | 2014-11-04 08:48:34 -0700 |
commit | 7b93f5af2fd5ee9bca6bee5f5bbb2cc33cb56deb (patch) | |
tree | 7e65e7938b175c0f2c03d0b6e68b67a63fbaea2c | |
parent | 9aa974c6d69c8eaf2355d86c64c27f1dc30d6ac0 (diff) | |
download | android_bionic-staging/cm-12.0-caf.tar.gz android_bionic-staging/cm-12.0-caf.tar.bz2 android_bionic-staging/cm-12.0-caf.zip |
libm: add missing symbols to optimized math functionsstaging/cm-12.0-caf
add the following missing symbols to optimized math functions:
sqrtl => sqrt
sinl => sin
cosl => cos
these symbols will be weak references to the functions at
right-hand side when compiler internal macro
(__LDBL_MANT_DIG__ == 53) is true
Change-Id: Ie3b3e720b3207bbc13574b9b6d42738767f22754
-rw-r--r-- | libm/arm/e_sqrt.S | 5 | ||||
-rw-r--r-- | libm/arm/s_cos.S | 10 | ||||
-rw-r--r-- | libm/arm/s_sin.S | 10 |
3 files changed, 21 insertions, 4 deletions
diff --git a/libm/arm/e_sqrt.S b/libm/arm/e_sqrt.S index f2c88ff98..0b5b10c79 100644 --- a/libm/arm/e_sqrt.S +++ b/libm/arm/e_sqrt.S @@ -34,3 +34,8 @@ ENTRY(sqrt) vmov.f64 r0, r1, d0 bx lr END(sqrt) + +#if (__LDBL_MANT_DIG__ == 53) +.weak sqrtl +.equ sqrtl, sqrt +#endif diff --git a/libm/arm/s_cos.S b/libm/arm/s_cos.S index eae161e5a..5c8183bb5 100644 --- a/libm/arm/s_cos.S +++ b/libm/arm/s_cos.S @@ -50,8 +50,6 @@ #define vmov_f64 fconstd -ENTRY(cosl) -END(cosl) ENTRY(cos) push {r4, r6, r7, lr} vmov d0, r0, r1 @@ -308,6 +306,14 @@ ENTRY(cos) .word .Ltwo_over_pi-(.LPICtwo_over_pi0+8) END(cos) +#if (__LDBL_MANT_DIG__ == 53) +.weak cosl +.equ cosl, cos +#else +ENTRY(cosl) +END(cosl) +#endif + .section .rodata.npio2_hw,"a",%progbits .align 2 .Lnpio2_hw = . + 0 diff --git a/libm/arm/s_sin.S b/libm/arm/s_sin.S index 3c449154b..8b9eae4ed 100644 --- a/libm/arm/s_sin.S +++ b/libm/arm/s_sin.S @@ -50,8 +50,6 @@ #define vmov_f64 fconstd -ENTRY(sinl) -END(sinl) ENTRY(sin) push {r4, r6, r7, lr} vmov d0, r0, r1 @@ -303,6 +301,14 @@ ENTRY(sin) .word .Ltwo_over_pi-(.LPICtwo_over_pi0+8) END(sin) +#if (__LDBL_MANT_DIG__ == 53) +.weak sinl +.equ sinl, sin +#else +ENTRY(sinl) +END(sinl) +#endif + .section .rodata.npio2_hw,"a",%progbits .align 2 .Lnpio2_hw = . + 0 |