Module Name: src
Committed By: drochner
Date: Wed Sep 1 10:44:29 UTC 2010
Modified Files:
src/lib/libm/src: k_standard.c
Log Message:
EDOM should not be set on atan2(0,0) in POSIX mode, found by
Stathis Kamperis' testsuite
To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 src/lib/libm/src/k_standard.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/lib/libm/src/k_standard.c
diff -u src/lib/libm/src/k_standard.c:1.15 src/lib/libm/src/k_standard.c:1.16
--- src/lib/libm/src/k_standard.c:1.15 Wed Jan 27 20:23:53 2010
+++ src/lib/libm/src/k_standard.c Wed Sep 1 10:44:28 2010
@@ -12,7 +12,7 @@
#include <sys/cdefs.h>
#if defined(LIBM_SCCS) && !defined(lint)
-__RCSID("$NetBSD: k_standard.c,v 1.15 2010/01/27 20:23:53 drochner Exp $");
+__RCSID("$NetBSD: k_standard.c,v 1.16 2010/09/01 10:44:28 drochner Exp $");
#endif
#include "math.h"
@@ -139,7 +139,6 @@
exc.retval = zero;
if(_LIB_VERSION == _POSIX_) {
exc.retval = copysign(signbit(y) ? M_PI : zero, x);
- errno = EDOM;
} else if (!matherr(&exc)) {
if(_LIB_VERSION == _SVID_) {
(void) WRITE2("atan2: DOMAIN error\n", 20);