mirror of
https://github.com/fluencelabs/musl
synced 2025-06-30 15:11:55 +00:00
math cleanup: use 1.0f instead of (float)1.0
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user