about summary refs log tree commit diff
path: root/sysdeps/libm-ieee754/w_atan2l.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/libm-ieee754/w_atan2l.c')
-rw-r--r--sysdeps/libm-ieee754/w_atan2l.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sysdeps/libm-ieee754/w_atan2l.c b/sysdeps/libm-ieee754/w_atan2l.c
index 437a04c760..2897c8c5f9 100644
--- a/sysdeps/libm-ieee754/w_atan2l.c
+++ b/sysdeps/libm-ieee754/w_atan2l.c
@@ -38,7 +38,9 @@ static char rcsid[] = "$NetBSD: $";
 #else
 	long double z;
 	z = __ieee754_atan2l(y,x);
-	if(_LIB_VERSION == _IEEE_||__isnanl(x)||__isnanl(y)) return z;
+	if(_LIB_VERSION != _SVID_||__isnanl(x)||__isnanl(y)) return z;
+	if(x==0.0&&y==0.0)
+	  return __kernel_standard(y,x,203); /* atan2(+-0,+-0) */
 	return z;
 #endif
 }