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
/
cosh.c
diff --git
a/src/math/cosh.c
b/src/math/cosh.c
index
5b871db
..
5f38b27
100644
(file)
--- a/
src/math/cosh.c
+++ b/
src/math/cosh.c
@@
-67,7
+67,7
@@
double cosh(double x)
/* |x| in [log(maxdouble), overflowthresold] */
if (ix <= 0x408633CE)
- return __
ldexp_exp(fabs(x), -1
);
+ return __
expo2(fabs(x)
);
/* |x| > overflowthresold, cosh(x) overflow */
return huge*huge;