summaryrefslogtreecommitdiffstats
path: root/newlib/libm/math/ef_sinh.c
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libm/math/ef_sinh.c')
-rw-r--r--newlib/libm/math/ef_sinh.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/newlib/libm/math/ef_sinh.c b/newlib/libm/math/ef_sinh.c
index 375198344..a61b17294 100644
--- a/newlib/libm/math/ef_sinh.c
+++ b/newlib/libm/math/ef_sinh.c
@@ -35,7 +35,7 @@ static float one = 1.0, shuge = 1.0e37;
ix = jx&0x7fffffff;
/* x is INF or NaN */
- if(ix>=0x7f800000) return x+x;
+ if(!FLT_UWORD_IS_FINITE(ix)) return x+x;
h = 0.5;
if (jx<0) h = -h;
@@ -49,10 +49,10 @@ static float one = 1.0, shuge = 1.0e37;
}
/* |x| in [22, log(maxdouble)] return 0.5*exp(|x|) */
- if (ix < 0x42b17180) return h*__ieee754_expf(fabsf(x));
+ if (ix<=FLT_UWORD_LOG_MAX) return h*__ieee754_expf(fabsf(x));
/* |x| in [log(maxdouble), overflowthresold] */
- if (ix<=0x42b2d4fc) {
+ if (ix<=FLT_UWORD_LOG_2MAX) {
w = __ieee754_expf((float)0.5*fabsf(x));
t = h*w;
return t*w;