projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
use scalbn or *2.0 instead of ldexp, fix fmal
[musl]
/
src
/
math
/
atanhf.c
diff --git
a/src/math/atanhf.c
b/src/math/atanhf.c
index
2efbd79
..
9c65dc7
100644
(file)
--- 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;
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
} 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;
if (hx >= 0)
return t;
return -t;