Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libm/src EDOM should not be set on atan2(0, 0) in POSIX m...
details: https://anonhg.NetBSD.org/src/rev/2d061e25c04d
branches: trunk
changeset: 757487:2d061e25c04d
user: drochner <drochner%NetBSD.org@localhost>
date: Wed Sep 01 10:44:28 2010 +0000
description:
EDOM should not be set on atan2(0,0) in POSIX mode, found by
Stathis Kamperis' testsuite
diffstat:
lib/libm/src/k_standard.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diffs (20 lines):
diff -r b90309cb5592 -r 2d061e25c04d lib/libm/src/k_standard.c
--- a/lib/libm/src/k_standard.c Wed Sep 01 09:18:03 2010 +0000
+++ b/lib/libm/src/k_standard.c Wed Sep 01 10:44:28 2010 +0000
@@ -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);
Home |
Main Index |
Thread Index |
Old Index