diff options
Diffstat (limited to 'lib/libm/noieee_src/n_exp.c')
-rw-r--r-- | lib/libm/noieee_src/n_exp.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/libm/noieee_src/n_exp.c b/lib/libm/noieee_src/n_exp.c index a51696b58d6..d374b3e80be 100644 --- a/lib/libm/noieee_src/n_exp.c +++ b/lib/libm/noieee_src/n_exp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: n_exp.c,v 1.5 2008/06/11 20:53:27 martynas Exp $ */ +/* $OpenBSD: n_exp.c,v 1.6 2008/06/12 15:57:59 martynas Exp $ */ /* * Copyright (c) 1985, 1993 * The Regents of the University of California. All rights reserved. @@ -116,9 +116,9 @@ double exp(double x) double z, hi, lo, 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( x <= lnhuge ) { if( x >= lntiny ) { @@ -160,9 +160,9 @@ double __exp__D(double x, double c) double z, hi, lo; 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 ( x <= lnhuge ) { if ( x >= lntiny ) { |