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
/
coshf.c
diff --git
a/src/math/coshf.c
b/src/math/coshf.c
index
6a0db52
..
9e87afc
100644
(file)
--- a/
src/math/coshf.c
+++ b/
src/math/coshf.c
@@
-50,7
+50,7
@@
float coshf(float x)
/* |x| in [log(maxfloat), overflowthresold] */
if (ix <= 0x42b2d4fc)
- return __
ldexp_expf(fabsf(x), -1
);
+ return __
expo2f(fabsf(x)
);
/* |x| > overflowthresold, cosh(x) overflow */
return huge*huge;