projects
/
libm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
use __expo2 in sinh and cosh, move __cexp to cmath
[libm]
/
src
/
math
/
sinh.c
diff --git
a/src/math/sinh.c
b/src/math/sinh.c
index
5e037e5
..
935879c
100644
(file)
--- a/
src/math/sinh.c
+++ b/
src/math/sinh.c
@@
-64,8
+64,7
@@
double sinh(double x)
/* |x| in [log(maxdouble), overflowthresold] */
if (ix <= 0x408633CE)
/* |x| in [log(maxdouble), overflowthresold] */
if (ix <= 0x408633CE)
- // FIXME: 0.5 * 2.0 * huge == huge ?
- return h*2.0*__ldexp_exp(fabs(x), -1);
+ return h * 2.0 * __expo2(fabs(x)); /* h is for sign only */
/* |x| > overflowthresold, sinh(x) overflow */
return x*huge;
/* |x| > overflowthresold, sinh(x) overflow */
return x*huge;