diff options
Diffstat (limited to 'math')
-rw-r--r-- | math/bits/math-finite.h | 5 | ||||
-rw-r--r-- | math/bits/mathcalls.h | 6 | ||||
-rw-r--r-- | math/libm-test-exp10.inc | 10 | ||||
-rw-r--r-- | math/w_exp10_compat.c | 8 | ||||
-rw-r--r-- | math/w_exp10f_compat.c | 4 | ||||
-rw-r--r-- | math/w_exp10l_compat.c | 4 |
6 files changed, 12 insertions, 25 deletions
diff --git a/math/bits/math-finite.h b/math/bits/math-finite.h index de57b504bd..8113db265a 100644 --- a/math/bits/math-finite.h +++ b/math/bits/math-finite.h @@ -70,11 +70,6 @@ __MATH_REDIRCALL (exp, , (_Mdouble_)); #ifdef __USE_GNU /* exp10. */ __MATH_REDIRCALL (exp10, , (_Mdouble_)); - -/* pow10. */ -# if !__MATH_DECLARING_FLOATN -__MATH_REDIRCALL_2 (pow10, , (_Mdouble_), exp10); -# endif #endif #ifdef __USE_ISOC99 diff --git a/math/bits/mathcalls.h b/math/bits/mathcalls.h index 90b996740b..d799b62140 100644 --- a/math/bits/mathcalls.h +++ b/math/bits/mathcalls.h @@ -113,12 +113,6 @@ __MATHCALL (modf,, (_Mdouble_ __x, _Mdouble_ *__iptr)) __nonnull ((2)); /* Compute exponent to base ten. */ __MATHCALL (exp10,, (_Mdouble_ __x)); #endif -#ifdef __USE_GNU -/* Another name occasionally used. */ -# if !__MATH_DECLARING_FLOATN -__MATHCALL (pow10,, (_Mdouble_ __x)); -# endif -#endif #if defined __USE_XOPEN_EXTENDED || defined __USE_ISOC99 /* Return exp(X) - 1. */ diff --git a/math/libm-test-exp10.inc b/math/libm-test-exp10.inc index 374d12a193..4da3715771 100644 --- a/math/libm-test-exp10.inc +++ b/math/libm-test-exp10.inc @@ -37,19 +37,9 @@ exp10_test (void) } static void -pow10_test (void) -{ -#if !TEST_FLOATN - /* pow10 uses the same test data as exp10. */ - ALL_RM_TEST (pow10, 0, exp10_test_data, RUN_TEST_LOOP_f_f, END); -#endif -} - -static void do_test (void) { exp10_test (); - pow10_test (); } /* diff --git a/math/w_exp10_compat.c b/math/w_exp10_compat.c index 64f1d19950..5256f5b06f 100644 --- a/math/w_exp10_compat.c +++ b/math/w_exp10_compat.c @@ -37,11 +37,15 @@ __exp10 (double x) return z; } weak_alias (__exp10, exp10) +#if SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_27) strong_alias (__exp10, __pow10) -weak_alias (__pow10, pow10) +compat_symbol (libm, __pow10, pow10, GLIBC_2_1); +#endif #ifdef NO_LONG_DOUBLE strong_alias (__exp10, __exp10l) weak_alias (__exp10, exp10l) +# if SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_27) strong_alias (__exp10l, __pow10l) -weak_alias (__pow10l, pow10l) +compat_symbol (libm, __pow10l, pow10l, GLIBC_2_1); +# endif #endif diff --git a/math/w_exp10f_compat.c b/math/w_exp10f_compat.c index 5cf926aee2..c559e6a629 100644 --- a/math/w_exp10f_compat.c +++ b/math/w_exp10f_compat.c @@ -37,5 +37,7 @@ __exp10f (float x) return z; } weak_alias (__exp10f, exp10f) +#if SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_27) strong_alias (__exp10f, __pow10f) -weak_alias (__pow10f, pow10f) +compat_symbol (libm, __pow10f, pow10f, GLIBC_2_1); +#endif diff --git a/math/w_exp10l_compat.c b/math/w_exp10l_compat.c index 06f5267a8f..03b7ce9b6b 100644 --- a/math/w_exp10l_compat.c +++ b/math/w_exp10l_compat.c @@ -37,5 +37,7 @@ __exp10l (long double x) return z; } weak_alias (__exp10l, exp10l) +#if SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_27) strong_alias (__exp10l, __pow10l) -weak_alias (__pow10l, pow10l) +compat_symbol (libm, __pow10l, pow10l, GLIBC_2_1); +#endif |