aboutsummaryrefslogtreecommitdiff
path: root/newlib/libm/math/sf_cos.c
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libm/math/sf_cos.c')
-rw-r--r--newlib/libm/math/sf_cos.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/newlib/libm/math/sf_cos.c b/newlib/libm/math/sf_cos.c
index 8f3a8af..4c0a9a5 100644
--- a/newlib/libm/math/sf_cos.c
+++ b/newlib/libm/math/sf_cos.c
@@ -38,7 +38,7 @@ static float one=1.0;
if(ix <= 0x3f490fd8) return __kernel_cosf(x,z);
/* cos(Inf or NaN) is NaN */
- else if (ix>=0x7f800000) return x-x;
+ else if (!FLT_UWORD_IS_FINITE(ix)) return x-x;
/* argument reduction needed */
else {