Module Name: src
Committed By: dholland
Date: Tue Sep 8 05:23:31 UTC 2015
Modified Files:
src/lib/libm/src: k_standard.c
Log Message:
Apply patch in PR 45391 from Yui NARUSE: generate HUGE_VAL rather than
-HUGE_VAL for 0^negative. No objection after asking nearly two years
ago if I shouldn't just commit it.
To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20 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.19 src/lib/libm/src/k_standard.c:1.20
--- src/lib/libm/src/k_standard.c:1.19 Tue Nov 19 19:24:34 2013
+++ src/lib/libm/src/k_standard.c Tue Sep 8 05:23:31 2015
@@ -12,7 +12,7 @@
#include <sys/cdefs.h>
#if defined(LIBM_SCCS) && !defined(lint)
-__RCSID("$NetBSD: k_standard.c,v 1.19 2013/11/19 19:24:34 joerg Exp $");
+__RCSID("$NetBSD: k_standard.c,v 1.20 2015/09/08 05:23:31 dholland Exp $");
#endif
#include "math.h"
@@ -469,7 +469,7 @@ __kernel_standard(double x, double y, in
if (_LIB_VERSION == _SVID_)
exc.retval = zero;
else
- exc.retval = -HUGE_VAL;
+ exc.retval = HUGE_VAL;
if (_LIB_VERSION == _POSIX_)
errno = EDOM;
else if (!matherr(&exc)) {