math cleanup: use 1.0f instead of (float)1.0

This commit is contained in:
nsz
2012-03-13 20:24:23 +01:00
parent 9560b6b152
commit 8d0a6f7a1c
25 changed files with 96 additions and 96 deletions

View 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;