diff options
Diffstat (limited to 'lib/libm/noieee_src/n_expm1.c')
-rw-r--r-- | lib/libm/noieee_src/n_expm1.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/libm/noieee_src/n_expm1.c b/lib/libm/noieee_src/n_expm1.c index 1b5862782a0..9ac9f1cda23 100644 --- a/lib/libm/noieee_src/n_expm1.c +++ b/lib/libm/noieee_src/n_expm1.c @@ -114,9 +114,8 @@ double x; static prec=53; #endif /* defined(__vax__)||defined(tahoe) */ -#if !defined(__vax__)&&!defined(tahoe) - if(x!=x) return(x); /* x is NaN */ -#endif /* !defined(__vax__)&&!defined(tahoe) */ + if (isnan(x)) + return (x); if( x <= lnhuge ) { if( x >= -40.0 ) { |