X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fmath%2Fexp10f.c;h=5fd1af9c7d8180ec9e5eea88a44be17d9c527741;hb=74025c80ce1eb4cda110ab2e3ac11718d3c6f2ff;hp=c9521411ec5da7629596b7542ac31bfeda169572;hpb=f6819755779a084bf2f82cb90175a4d9a018de73;p=musl diff --git a/src/math/exp10f.c b/src/math/exp10f.c index c9521411..5fd1af9c 100644 --- a/src/math/exp10f.c +++ b/src/math/exp10f.c @@ -1,10 +1,11 @@ #define _GNU_SOURCE #include +#include "libc.h" float exp10f(float x) { static const float p10[] = { - 1e-7, 1e-6, 1e-5, 1e-4, 1e-3, 1e-2, 1e-1, + 1e-7f, 1e-6f, 1e-5f, 1e-4f, 1e-3f, 1e-2f, 1e-1f, 1, 1e1, 1e2, 1e3, 1e4, 1e5, 1e6, 1e7 }; float n, y = modff(x, &n); @@ -15,3 +16,5 @@ float exp10f(float x) } return exp2(3.32192809488736234787031942948939 * x); } + +weak_alias(exp10f, pow10f);