diff options
author | Wilco Dijkstra <wilco.dijkstra@arm.com> | 2024-01-09 15:32:08 +0000 |
---|---|---|
committer | Wilco Dijkstra <wilco.dijkstra@arm.com> | 2024-01-12 16:02:12 +0000 |
commit | 08ddd26814310e7c1b8c3956a6a0ac7aedea9cfd (patch) | |
tree | 2fab0f0ec2a9aa86d9488c09e4fed39a04f852da /sysdeps/ieee754 | |
parent | 7c14d8a985416986256f68568313cdb36f559821 (diff) | |
download | glibc-08ddd26814310e7c1b8c3956a6a0ac7aedea9cfd.tar glibc-08ddd26814310e7c1b8c3956a6a0ac7aedea9cfd.tar.gz glibc-08ddd26814310e7c1b8c3956a6a0ac7aedea9cfd.tar.bz2 glibc-08ddd26814310e7c1b8c3956a6a0ac7aedea9cfd.zip |
math: remove exp10 wrappers
Remove the error handling wrapper from exp10. This is very similar to
the changes done to exp and exp2, except that we also need to handle
pow10 and pow10l.
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Diffstat (limited to 'sysdeps/ieee754')
-rw-r--r-- | sysdeps/ieee754/dbl-64/e_exp10.c | 13 | ||||
-rw-r--r-- | sysdeps/ieee754/dbl-64/w_exp10.c | 1 |
2 files changed, 11 insertions, 3 deletions
diff --git a/sysdeps/ieee754/dbl-64/e_exp10.c b/sysdeps/ieee754/dbl-64/e_exp10.c index 0d4e42833a..225fc74c4c 100644 --- a/sysdeps/ieee754/dbl-64/e_exp10.c +++ b/sysdeps/ieee754/dbl-64/e_exp10.c @@ -18,9 +18,9 @@ #include <math.h> #include <math-barriers.h> #include <math-narrow-eval.h> -#include <math_private.h> -#include <float.h> +#include <math-svid-compat.h> #include <libm-alias-finite.h> +#include <libm-alias-double.h> #include "math_config.h" #define N (1 << EXP_TABLE_BITS) @@ -75,7 +75,7 @@ special_case (uint64_t sbits, double_t tmp, uint64_t ki) /* Double-precision 10^x approximation. Largest observed error is ~0.513 ULP. */ double -__ieee754_exp10 (double x) +__exp10 (double x) { uint64_t ix = asuint64 (x); uint32_t abstop = (ix >> 52) & 0x7ff; @@ -144,4 +144,11 @@ __ieee754_exp10 (double x) return s * y + s; } +strong_alias (__exp10, __ieee754_exp10) libm_alias_finite (__ieee754_exp10, __exp10) +#if LIBM_SVID_COMPAT +versioned_symbol (libm, __exp10, exp10, GLIBC_2_39); +libm_alias_double_other (__exp10, exp10) +#else +libm_alias_double (__exp10, exp10) +#endif diff --git a/sysdeps/ieee754/dbl-64/w_exp10.c b/sysdeps/ieee754/dbl-64/w_exp10.c new file mode 100644 index 0000000000..1cc8931700 --- /dev/null +++ b/sysdeps/ieee754/dbl-64/w_exp10.c @@ -0,0 +1 @@ +/* Not needed. */ |