summaryrefslogtreecommitdiff log msg author committer range
path: root/src/math/exp10l.c
diff options
 context: 12345678910152025303540 space: includeignore mode: unifiedssdiffstat only
author committer Szabolcs Nagy 2014-09-08 15:51:42 +0200 Szabolcs Nagy 2014-09-08 15:51:42 +0200 0c32c2635eedfcd6af3606735ac38197f8705734 (patch) eb11e1e4c69a980133a5d61c4e19c0b5684ad548 /src/math/exp10l.c 976bb28fa0f5b6d82055502c27444ac5c9bf34ed (diff) musl-0c32c2635eedfcd6af3606735ac38197f8705734.tar.gz
prune math code on archs with binary64 long double
__polevll, __p1evll and exp10l were provided on archs when long double is the same as double. The first two were completely unused and exp10l can be a wrapper around exp10.
Diffstat (limited to 'src/math/exp10l.c')
-rw-r--r--src/math/exp10l.c7
1 files changed, 7 insertions, 0 deletions
 diff --git a/src/math/exp10l.c b/src/math/exp10l.cindex 22a4636a..33abc8b5 100644--- a/src/math/exp10l.c+++ b/src/math/exp10l.c@@ -2,6 +2,12 @@ #include #include "libc.h" +#if LDBL_MANT_DIG == 53 && LDBL_MAX_EXP == 1024+long double exp10l(long double x)+{+ return exp10(x);+}+#else long double exp10l(long double x) { static const long double p10[] = {@@ -18,5 +24,6 @@ long double exp10l(long double x) } return powl(10.0, x); }+#endif weak_alias(exp10l, pow10l);