NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: port-amd64/45391: pow(3) wrong result for x = 0.0 and y < 0
The following reply was made to PR port-amd64/45391; it has been noted by GNATS.
From: "NARUSE, Yui" <naruse%airemix.jp@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc:
Subject: Re: port-amd64/45391: pow(3) wrong result for x = 0.0 and y < 0
Date: Tue, 15 May 2012 09:25:38 +0900
Hi,
I reported a duplicated pr, lib/45755, and attached a patch.
But I noticed it is wrong.
I show a correct patch as below.
It makes related tests pass.
Thanks,
Index: lib/libm/src/k_standard.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /cvsroot/src/lib/libm/src/k_standard.c,v
retrieving revision 1.17
diff -u -r1.17 k_standard.c
--- lib/libm/src/k_standard.c 11 Apr 2011 15:17:33 -0000 1.17
+++ lib/libm/src/k_standard.c 15 May 2012 00:24:07 -0000
@@ -469,7 +469,7 @@
if (_LIB_VERSION =3D=3D _SVID_)
exc.retval =3D zero;
else
- exc.retval =3D -HUGE_VAL;
+ exc.retval =3D HUGE_VAL;
if (_LIB_VERSION =3D=3D _POSIX_)
errno =3D EDOM;
else if (!matherr(&exc)) {
--=20
NARUSE, Yui =A0<naruse%airemix.jp@localhost>
Home |
Main Index |
Thread Index |
Old Index