diff options
author | Rich Felker <dalias@aerifal.cx> | 2012-05-01 00:07:37 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2012-05-01 00:07:37 -0400 |
commit | a917c03706d94564082d5ccff032a3e2c3dad537 (patch) | |
tree | 8b22f4853a063cc1413665f752eff41cd8f60135 /src/math | |
parent | da5d89d42fb47c648fb83645e5e4a55bae907032 (diff) | |
download | musl-a917c03706d94564082d5ccff032a3e2c3dad537.tar.gz musl-a917c03706d94564082d5ccff032a3e2c3dad537.tar.bz2 musl-a917c03706d94564082d5ccff032a3e2c3dad537.tar.xz musl-a917c03706d94564082d5ccff032a3e2c3dad537.zip |
support alternate glibc name pow10 for exp10
Diffstat (limited to 'src/math')
-rw-r--r-- | src/math/exp10.c | 3 | ||||
-rw-r--r-- | src/math/exp10f.c | 3 | ||||
-rw-r--r-- | src/math/exp10l.c | 3 |
3 files changed, 9 insertions, 0 deletions
diff --git a/src/math/exp10.c b/src/math/exp10.c index 7fd86fba..16d704a7 100644 --- a/src/math/exp10.c +++ b/src/math/exp10.c @@ -1,5 +1,6 @@ #define _GNU_SOURCE #include <math.h> +#include "libc.h" double exp10(double x) { @@ -17,3 +18,5 @@ double exp10(double x) } return pow(10.0, x); } + +weak_alias(exp10, pow10); diff --git a/src/math/exp10f.c b/src/math/exp10f.c index c9521411..b697eb9c 100644 --- a/src/math/exp10f.c +++ b/src/math/exp10f.c @@ -1,5 +1,6 @@ #define _GNU_SOURCE #include <math.h> +#include "libc.h" float exp10f(float x) { @@ -15,3 +16,5 @@ float exp10f(float x) } return exp2(3.32192809488736234787031942948939 * x); } + +weak_alias(exp10f, pow10f); diff --git a/src/math/exp10l.c b/src/math/exp10l.c index 4d0c5a01..4b2b7ef6 100644 --- a/src/math/exp10l.c +++ b/src/math/exp10l.c @@ -1,5 +1,6 @@ #define _GNU_SOURCE #include <math.h> +#include "libc.h" long double exp10l(long double x) { @@ -17,3 +18,5 @@ long double exp10l(long double x) } return powl(10.0, x); } + +weak_alias(exp10l, pow10l); |