summaryrefslogtreecommitdiff
path: root/lib/libm/noieee_src/n_log1p.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libm/noieee_src/n_log1p.c')
-rw-r--r--lib/libm/noieee_src/n_log1p.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/libm/noieee_src/n_log1p.c b/lib/libm/noieee_src/n_log1p.c
index 451c2d57c51..c7055fc418a 100644
--- a/lib/libm/noieee_src/n_log1p.c
+++ b/lib/libm/noieee_src/n_log1p.c
@@ -116,9 +116,8 @@ double x;
double z,s,t,c;
int k;
-#if !defined(__vax__)&&!defined(tahoe)
- if(x!=x) return(x); /* x is NaN */
-#endif /* !defined(__vax__)&&!defined(tahoe) */
+ if (isnan(x))
+ return (x);
if(finite(x)) {
if( x > negone ) {