math cleanup: use 1.0f instead of (float)1.0
[musl] / src / math / atanhf.c
index 2efbd79..9c65dc7 100644 (file)
@@ -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;