For libm, use a macro for aliasing symbols.
Change-Id: Ibd42ebc387c2bf3eba9aa96091770915b4b34184
This commit is contained in:
parent
81c31bdd43
commit
995b813e91
@ -57,4 +57,8 @@
|
||||
ENTRY(f); \
|
||||
.hidden f \
|
||||
|
||||
#define ALIAS_SYMBOL(alias, original) \
|
||||
.globl alias; \
|
||||
.equ alias, original
|
||||
|
||||
#endif /* _PRIVATE_BIONIC_ASM_H_ */
|
||||
|
@ -39,7 +39,4 @@ ENTRY(sqrt)
|
||||
bx lr
|
||||
END(sqrt)
|
||||
|
||||
#if LDBL_MANT_DIG == 53
|
||||
.weak sqrtl
|
||||
.equ sqrtl, sqrt
|
||||
#endif
|
||||
ALIAS_SYMBOL(sqrtl, sqrt);
|
||||
|
@ -136,7 +136,4 @@ ENTRY(floor) /* x in r0, r1 */
|
||||
|
||||
END(floor)
|
||||
|
||||
#if LDBL_MANT_DIG == 53
|
||||
.weak floorl
|
||||
.equ floorl,floor
|
||||
#endif
|
||||
ALIAS_SYMBOL(floorl, floor);
|
||||
|
@ -29,8 +29,6 @@ ENTRY(lrintf)
|
||||
END(lrintf)
|
||||
|
||||
// sizeof(long) and sizeof(long long) are the same for aarch64
|
||||
.weak llrint
|
||||
.equ llrint,lrint
|
||||
ALIAS_SYMBOL(llrint, lrint);
|
||||
|
||||
.weak llrintf
|
||||
.equ llrintf,lrintf
|
||||
ALIAS_SYMBOL(llrintf, lrintf);
|
||||
|
@ -40,5 +40,4 @@ ENTRY(ceil)
|
||||
ret
|
||||
END(ceil)
|
||||
|
||||
.globl ceill;
|
||||
.equ ceill, ceil;
|
||||
ALIAS_SYMBOL(ceill, ceil);
|
||||
|
@ -388,8 +388,7 @@ END(acos)
|
||||
# -- End acos
|
||||
|
||||
# Start file scope ASM
|
||||
.weak acosl
|
||||
.equ acosl, acos
|
||||
ALIAS_SYMBOL(acosl, acos);
|
||||
# End file scope ASM
|
||||
.section .rodata, "a"
|
||||
.align 16
|
||||
|
@ -466,8 +466,7 @@ END(asin)
|
||||
# -- End asin
|
||||
|
||||
# Start file scope ASM
|
||||
.weak asinl
|
||||
.equ asinl, asin
|
||||
ALIAS_SYMBOL(asinl, asin);
|
||||
# End file scope ASM
|
||||
.section .rodata, "a"
|
||||
.align 16
|
||||
|
@ -452,8 +452,7 @@ END(atan2)
|
||||
# -- End atan2
|
||||
|
||||
# Start file scope ASM
|
||||
.weak atan2l
|
||||
.equ atan2l, atan2
|
||||
ALIAS_SYMBOL(atan2l, atan2);
|
||||
# End file scope ASM
|
||||
.section .rodata, "a"
|
||||
.align 16
|
||||
|
@ -272,8 +272,7 @@ END(cosh)
|
||||
# -- End cosh
|
||||
|
||||
# Start file scope ASM
|
||||
.weak coshl
|
||||
.equ coshl, cosh
|
||||
ALIAS_SYMBOL(coshl, cosh);
|
||||
# End file scope ASM
|
||||
.section .rodata, "a"
|
||||
.align 16
|
||||
|
@ -257,8 +257,7 @@ END(exp)
|
||||
# -- End exp
|
||||
|
||||
# Start file scope ASM
|
||||
.weak expl
|
||||
.equ expl, exp
|
||||
ALIAS_SYMBOL(expl, exp);
|
||||
# End file scope ASM
|
||||
.section .rodata, "a"
|
||||
.align 16
|
||||
|
@ -199,8 +199,7 @@ END(hypot)
|
||||
# -- End hypot
|
||||
|
||||
# Start file scope ASM
|
||||
.weak hypotl
|
||||
.equ hypotl, hypot
|
||||
ALIAS_SYMBOL(hypotl, hypot);
|
||||
# End file scope ASM
|
||||
.section .rodata, "a"
|
||||
.align 16
|
||||
|
@ -231,8 +231,7 @@ END(log)
|
||||
# -- End log
|
||||
|
||||
# Start file scope ASM
|
||||
.weak logl
|
||||
.equ logl, log
|
||||
ALIAS_SYMBOL(logl, log);
|
||||
# End file scope ASM
|
||||
.section .rodata, "a"
|
||||
.align 16
|
||||
|
@ -242,8 +242,7 @@ END(log10)
|
||||
# -- End log10
|
||||
|
||||
# Start file scope ASM
|
||||
.weak log10l
|
||||
.equ log10l, log10
|
||||
ALIAS_SYMBOL(log10l, log10);
|
||||
# End file scope ASM
|
||||
.section .rodata, "a"
|
||||
.align 16
|
||||
|
@ -324,8 +324,7 @@ END(sinh)
|
||||
# -- End sinh
|
||||
|
||||
# Start file scope ASM
|
||||
.weak sinhl
|
||||
.equ sinhl, sinh
|
||||
ALIAS_SYMBOL(sinhl, sinh);
|
||||
# End file scope ASM
|
||||
.section .rodata, "a"
|
||||
.align 16
|
||||
|
@ -40,5 +40,4 @@ ENTRY(floor)
|
||||
ret
|
||||
END(floor)
|
||||
|
||||
.globl floorl;
|
||||
.equ floorl, floor;
|
||||
ALIAS_SYMBOL(floorl, floor);
|
||||
|
@ -245,8 +245,7 @@ END(atan)
|
||||
# -- End atan
|
||||
|
||||
# Start file scope ASM
|
||||
.weak atanl
|
||||
.equ atanl, atan
|
||||
ALIAS_SYMBOL(atanl, atan);
|
||||
# End file scope ASM
|
||||
.section .rodata, "a"
|
||||
.align 16
|
||||
|
@ -225,8 +225,7 @@ END(cbrt)
|
||||
# -- End cbrt
|
||||
|
||||
# Start file scope ASM
|
||||
.weak cbrtl
|
||||
.equ cbrtl, cbrt
|
||||
ALIAS_SYMBOL(cbrtl, cbrt);
|
||||
# End file scope ASM
|
||||
.section .rodata, "a"
|
||||
.align 16
|
||||
|
@ -314,8 +314,7 @@ END(cos)
|
||||
# -- End cos
|
||||
|
||||
# Start file scope ASM
|
||||
.weak cosl
|
||||
.equ cosl, cos
|
||||
ALIAS_SYMBOL(cosl, cos);
|
||||
# End file scope ASM
|
||||
.section .rodata, "a"
|
||||
.align 16
|
||||
|
@ -365,8 +365,7 @@ END(expm1)
|
||||
# -- End expm1
|
||||
|
||||
# Start file scope ASM
|
||||
.weak expm1l
|
||||
.equ expm1l, expm1
|
||||
ALIAS_SYMBOL(exmp1l, exmp1);
|
||||
# End file scope ASM
|
||||
.section .rodata, "a"
|
||||
.align 16
|
||||
|
@ -266,8 +266,7 @@ END(log1p)
|
||||
# -- End log1p
|
||||
|
||||
# Start file scope ASM
|
||||
.weak log1pl
|
||||
.equ log1pl, log1p
|
||||
ALIAS_SYMBOL(log1pl, log1p);
|
||||
# End file scope ASM
|
||||
.section .rodata, "a"
|
||||
.align 16
|
||||
|
@ -321,8 +321,7 @@ END(sin)
|
||||
# -- End sin
|
||||
|
||||
# Start file scope ASM
|
||||
.weak sinl
|
||||
.equ sinl, sin
|
||||
ALIAS_SYMBOL(sinl, sin);
|
||||
# End file scope ASM
|
||||
.section .rodata, "a"
|
||||
.align 16
|
||||
|
@ -284,8 +284,7 @@ END(tan)
|
||||
# -- End tan
|
||||
|
||||
# Start file scope ASM
|
||||
.weak tanl
|
||||
.equ tanl, tan
|
||||
ALIAS_SYMBOL(tanl, tan);
|
||||
# End file scope ASM
|
||||
.section .rodata, "a"
|
||||
.align 16
|
||||
|
@ -278,8 +278,7 @@ END(tanh)
|
||||
# -- End tanh
|
||||
|
||||
# Start file scope ASM
|
||||
.weak tanhl
|
||||
.equ tanhl, tanh
|
||||
ALIAS_SYMBOL(tanhl, tanh);
|
||||
# End file scope ASM
|
||||
.section .rodata, "a"
|
||||
.align 16
|
||||
|
@ -40,5 +40,4 @@ ENTRY(sqrt)
|
||||
ret
|
||||
END(sqrt)
|
||||
|
||||
.globl sqrtl;
|
||||
.equ sqrtl, sqrt;
|
||||
ALIAS_SYMBOL(sqrtl, sqrt);
|
||||
|
@ -40,5 +40,4 @@ ENTRY(trunc)
|
||||
ret
|
||||
END(trunc)
|
||||
|
||||
.globl truncl;
|
||||
.equ truncl, trunc;
|
||||
ALIAS_SYMBOL(truncl, trunc);
|
||||
|
Loading…
Reference in New Issue
Block a user