summaryrefslogtreecommitdiff
path: root/lib/libm/noieee_src/n_asinh.c
diff options
context:
space:
mode:
authorMartynas Venckus <martynas@cvs.openbsd.org>2008-06-12 15:58:00 +0000
committerMartynas Venckus <martynas@cvs.openbsd.org>2008-06-12 15:58:00 +0000
commit1e72660127a56fdf02b5b43293d426076aff795f (patch)
treeb848a12220058f38f7dba2fd1b67cf6517b74714 /lib/libm/noieee_src/n_asinh.c
parentbccef4d20904e9126be50edde929a5d97eb7fa9f (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_asinh.c')
-rw-r--r--lib/libm/noieee_src/n_asinh.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libm/noieee_src/n_asinh.c b/lib/libm/noieee_src/n_asinh.c
index 1efcf5c1a7b..c11130e58c6 100644
--- a/lib/libm/noieee_src/n_asinh.c
+++ b/lib/libm/noieee_src/n_asinh.c
@@ -85,9 +85,9 @@ double x;
big =1.0E20, /* fl(1+big) == big */
one =1.0 ;
-#if !defined(__vax__)&&!defined(tahoe)
- if(x!=x) return(x); /* x is NaN */
-#endif /* !defined(__vax__)&&!defined(tahoe) */
+ if (isnan(x))
+ return (x);
+
if((t=copysign(x,one))>small)
if(t<big) {
s=one/t; return(copysign(log1p(t+t/(s+sqrt(one+s*s))),x)); }