summaryrefslogtreecommitdiffstats
path: root/newlib/libm/math/ef_rem_pio2.c
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libm/math/ef_rem_pio2.c')
-rw-r--r--newlib/libm/math/ef_rem_pio2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/newlib/libm/math/ef_rem_pio2.c b/newlib/libm/math/ef_rem_pio2.c
index e91aa47f3..f1191d09f 100644
--- a/newlib/libm/math/ef_rem_pio2.c
+++ b/newlib/libm/math/ef_rem_pio2.c
@@ -174,7 +174,7 @@ pio2_3t = 6.1232342629e-17; /* 0x248d3132 */
/*
* all other (large) arguments
*/
- if(ix>=0x7f800000) { /* x is inf or NaN */
+ if(!FLT_UWORD_IS_FINITE(ix)) {
y[0]=y[1]=x-x; return 0;
}
/* set z = scalbn(|x|,ilogb(x)-7) */