X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fmath%2Fatanhf.c;h=9c65dc7fbaa3d05f045abe4ef30b208c3783268d;hb=75483499dad38b97f5dabb710635e6a8bbbb1c84;hp=2efbd79c9ef89fe6bf1511eaa09b03296be890ec;hpb=b69f695acedd4ce2798ef9ea28d834ceccc789bd;p=musl diff --git a/src/math/atanhf.c b/src/math/atanhf.c index 2efbd79c..9c65dc7f 100644 --- a/src/math/atanhf.c +++ b/src/math/atanhf.c @@ -34,9 +34,9 @@ float atanhf(float x) SET_FLOAT_WORD(x, ix); if (ix < 0x3f000000) { /* x < 0.5 */ t = x+x; - t = (float)0.5*log1pf(t + t*x/(one-x)); + t = 0.5f*log1pf(t + t*x/(one-x)); } else - t = (float)0.5*log1pf((x+x)/(one-x)); + t = 0.5f*log1pf((x+x)/(one-x)); if (hx >= 0) return t; return -t;