projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
setjmp: optimize longjmp prologues
[musl]
/
src
/
math
/
sinh.c
diff --git
a/src/math/sinh.c
b/src/math/sinh.c
index
47e36bf
..
a01951a
100644
(file)
--- a/
src/math/sinh.c
+++ b/
src/math/sinh.c
@@
-23,8
+23,8
@@
double sinh(double x)
t = expm1(absx);
if (w < 0x3ff00000) {
if (w < 0x3ff00000 - (26<<20))
t = expm1(absx);
if (w < 0x3ff00000) {
if (w < 0x3ff00000 - (26<<20))
- /* note: inexact
is
raised by expm1 */
- /* note: this branch avoids underflow */
+ /* note: inexact
and underflow are
raised by expm1 */
+ /* note: this branch avoids
spurious
underflow */
return x;
return h*(2*t - t*t/(t+1));
}
return x;
return h*(2*t - t*t/(t+1));
}
@@
-34,6
+34,6
@@
double sinh(double x)
/* |x| > log(DBL_MAX) or nan */
/* note: the result is stored to handle overflow */
/* |x| > log(DBL_MAX) or nan */
/* note: the result is stored to handle overflow */
- t =
2*h*__expo2(absx
);
+ t =
__expo2(absx, 2*h
);
return t;
}
return t;
}