diff options
author | Martynas Venckus <martynas@cvs.openbsd.org> | 2008-06-12 15:58:00 +0000 |
---|---|---|
committer | Martynas Venckus <martynas@cvs.openbsd.org> | 2008-06-12 15:58:00 +0000 |
commit | 1e72660127a56fdf02b5b43293d426076aff795f (patch) | |
tree | b848a12220058f38f7dba2fd1b67cf6517b74714 /lib/libm/noieee_src/n_tanh.c | |
parent | bccef4d20904e9126be50edde929a5d97eb7fa9f (diff) |
- no need for ifdef dance (21), we have isnan, finite for vax
- TEST_FMOD doesn't belong here, remove
- remove ifdef _ANSI_SOURCE and assume it's default
ok millert@
Diffstat (limited to 'lib/libm/noieee_src/n_tanh.c')
-rw-r--r-- | lib/libm/noieee_src/n_tanh.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/libm/noieee_src/n_tanh.c b/lib/libm/noieee_src/n_tanh.c index 68264527522..bd475ae9a67 100644 --- a/lib/libm/noieee_src/n_tanh.c +++ b/lib/libm/noieee_src/n_tanh.c @@ -76,9 +76,8 @@ double x; double expm1(), t, copysign(), sign; int finite(); -#if !defined(__vax__)&&!defined(tahoe) - if(x!=x) return(x); /* x is NaN */ -#endif /* !defined(__vax__)&&!defined(tahoe) */ + if (isnan(x)) + return (x); sign=copysign(one,x); x=copysign(x,one); |