projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
math cleanup: use 1.0f instead of (float)1.0
[musl]
/
src
/
math
/
asinhf.c
diff --git
a/src/math/asinhf.c
b/src/math/asinhf.c
index
5f4bb39
..
cb6e5b8
100644
(file)
--- a/
src/math/asinhf.c
+++ b/
src/math/asinhf.c
@@
-38,7
+38,7
@@
float asinhf(float x)
w = logf(fabsf(x)) + ln2;
} else if (ix > 0x40000000) { /* 2**28 > |x| > 2.0 */
t = fabsf(x);
w = logf(fabsf(x)) + ln2;
} else if (ix > 0x40000000) { /* 2**28 > |x| > 2.0 */
t = fabsf(x);
- w = logf(
(float)2.0
*t + one/(sqrtf(x*x+one)+t));
+ w = logf(
2.0f
*t + one/(sqrtf(x*x+one)+t));
} else { /* 2.0 > |x| > 2**-28 */
t = x*x;
w =log1pf(fabsf(x) + t/(one+sqrtf(one+t)));
} else { /* 2.0 > |x| > 2**-28 */
t = x*x;
w =log1pf(fabsf(x) + t/(one+sqrtf(one+t)));