projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
other side of the signgam namespace fix: use the internal name
[musl]
/
src
/
math
/
acoshf.c
diff --git
a/src/math/acoshf.c
b/src/math/acoshf.c
index
30a3a94
..
57ce5cb
100644
(file)
--- a/
src/math/acoshf.c
+++ b/
src/math/acoshf.c
@@
-35,9
+35,9
@@
float acoshf(float x)
return 0.0; /* acosh(1) = 0 */
} else if (hx > 0x40000000) { /* 2**28 > x > 2 */
t = x*x;
return 0.0; /* acosh(1) = 0 */
} else if (hx > 0x40000000) { /* 2**28 > x > 2 */
t = x*x;
- return logf(
(float)2.0
*x - one/(x+sqrtf(t-one)));
+ return logf(
2.0f
*x - one/(x+sqrtf(t-one)));
} else { /* 1 < x < 2 */
t = x-one;
} else { /* 1 < x < 2 */
t = x-one;
- return log1pf(t + sqrtf(
(float)2.0
*t+t*t));
+ return log1pf(t + sqrtf(
2.0f
*t+t*t));
}
}
}
}