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
/
sinhf.c
diff --git
a/src/math/sinhf.c
b/src/math/sinhf.c
index
15c5013
..
056b5f8
100644
(file)
--- a/
src/math/sinhf.c
+++ b/
src/math/sinhf.c
@@
-50,8
+50,7
@@
float sinhf(float x)
/* |x| in [logf(maxfloat), overflowthresold] */
if (ix <= 0x42b2d4fc)
/* |x| in [logf(maxfloat), overflowthresold] */
if (ix <= 0x42b2d4fc)
- // FIXME: 0.5f * 2.0f * huge == huge ?
- return h*2.0F*__ldexp_expf(fabsf(x), -1);
+ return h * 2.0f * __expo2f(fabsf(x)); /* h is for sign only */
/* |x| > overflowthresold, sinh(x) overflow */
return x*huge;
/* |x| > overflowthresold, sinh(x) overflow */
return x*huge;