summaryrefslogtreecommitdiff
path: root/lib/libm/noieee_src/n_asinh.c
diff options
context:
space:
mode:
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)); }