File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change 3333
3434#ifdef _NEED_FLOAT64
3535
36- static const __float64 one = _F_64 (1.0 ), shuge = _F_64 ( 1.0e307 ) ;
36+ static const __float64 one = _F_64 (1.0 );
3737
3838__float64
3939sinh64 (__float64 x )
@@ -56,8 +56,7 @@ sinh64(__float64 x)
5656 /* |x| in [0,22], return sign(x)*0.5*(E+E/(E+1))) */
5757 if (ix < 0x40360000 ) { /* |x|<22 */
5858 if (ix < 0x3e300000 ) /* |x|<2**-28 */
59- if (shuge + x > one )
60- return x ; /* sinh(tiny) = tiny with inexact */
59+ return __math_inexact64 (x ); /* sinh(tiny) = tiny with inexact */
6160 t = expm164 (fabs64 (x ));
6261 if (ix < 0x3ff00000 )
6362 return h * (_F_64 (2.0 ) * t - t * t / (t + one ));
Original file line number Diff line number Diff line change 1515
1616#include "fdlibm.h"
1717
18- static const float one = 1.0 , shuge = 1.0e37 ;
18+ static const float one = 1.0 ;
1919
2020float
2121sinhf (float x )
@@ -36,8 +36,7 @@ sinhf(float x)
3636 /* |x| in [0,22], return sign(x)*0.5*(E+E/(E+1))) */
3737 if (ix < 0x41b00000 ) { /* |x|<22 */
3838 if (ix < 0x31800000 ) /* |x|<2**-28 */
39- if (shuge + x > one )
40- return x ; /* sinh(tiny) = tiny with inexact */
39+ return __math_inexactf (x ); /* sinh(tiny) = tiny with inexact */
4140 t = expm1f (fabsf (x ));
4241 if (ix < 0x3f800000 )
4342 return h * ((float )2.0 * t - t * t / (t + one ));
You can’t perform that action at this time.
0 commit comments