diff options
Diffstat (limited to 'newlib/libm/math/sf_atan.c')
-rw-r--r-- | newlib/libm/math/sf_atan.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/newlib/libm/math/sf_atan.c b/newlib/libm/math/sf_atan.c index 7ea664f23..6edf05fe5 100644 --- a/newlib/libm/math/sf_atan.c +++ b/newlib/libm/math/sf_atan.c @@ -77,7 +77,7 @@ huge = 1.0e30; GET_FLOAT_WORD(hx,x); ix = hx&0x7fffffff; if(ix>=0x50800000) { /* if |x| >= 2^34 */ - if(ix>0x7f800000) + if(FLT_UWORD_IS_NAN(ix)) return x+x; /* NaN */ if(hx>0) return atanhi[3]+atanlo[3]; else return -atanhi[3]-atanlo[3]; |