summary refs log tree commit diff
path: root/sysdeps/libm-ieee754/w_atan2.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/libm-ieee754/w_atan2.c')
-rw-r--r--sysdeps/libm-ieee754/w_atan2.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/sysdeps/libm-ieee754/w_atan2.c b/sysdeps/libm-ieee754/w_atan2.c
index ec29d55eb9..3f6032f977 100644
--- a/sysdeps/libm-ieee754/w_atan2.c
+++ b/sysdeps/libm-ieee754/w_atan2.c
@@ -34,11 +34,10 @@ static char rcsid[] = "$NetBSD: w_atan2.c,v 1.6 1995/05/10 20:48:39 jtc Exp $";
 #else
 	double z;
 	z = __ieee754_atan2(y,x);
-	if(_LIB_VERSION == _IEEE_||__isnan(x)||__isnan(y)) return z;
+	if(_LIB_VERSION != _SVID_||__isnan(x)||__isnan(y)) return z;
 	if(x==0.0&&y==0.0) {
-	        return __kernel_standard(y,x,3); /* atan2(+-0,+-0) */
-	} else
-	    return z;
+	  return __kernel_standard(y,x,3); /* atan2(+-0,+-0) */
+	return z;
 #endif
 }
 weak_alias (__atan2, atan2)