mirror of git://git.musl-libc.org/musl
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.
This commit is contained in:
parent
976bb28fa0
commit
0c32c2635e
|
@ -56,6 +56,8 @@
|
||||||
|
|
||||||
#include "libm.h"
|
#include "libm.h"
|
||||||
|
|
||||||
|
#if LDBL_MANT_DIG == 53 && LDBL_MAX_EXP == 1024
|
||||||
|
#else
|
||||||
/*
|
/*
|
||||||
* Polynomial evaluator:
|
* Polynomial evaluator:
|
||||||
* P[0] x^n + P[1] x^(n-1) + ... + P[n]
|
* P[0] x^n + P[1] x^(n-1) + ... + P[n]
|
||||||
|
@ -88,3 +90,4 @@ long double __p1evll(long double x, const long double *P, int n)
|
||||||
|
|
||||||
return y;
|
return y;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
|
@ -2,6 +2,12 @@
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
#include "libc.h"
|
#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)
|
long double exp10l(long double x)
|
||||||
{
|
{
|
||||||
static const long double p10[] = {
|
static const long double p10[] = {
|
||||||
|
@ -18,5 +24,6 @@ long double exp10l(long double x)
|
||||||
}
|
}
|
||||||
return powl(10.0, x);
|
return powl(10.0, x);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
weak_alias(exp10l, pow10l);
|
weak_alias(exp10l, pow10l);
|
||||||
|
|
Loading…
Reference in New Issue