delorie.com/archives/browse.cgi | search |
X-Authentication-Warning: | delorie.com: mail set sender to djgpp-workers-bounces using -f |
X-Recipient: | djgpp-workers AT delorie DOT com |
Date: | Tue, 15 Sep 2009 06:13:22 +0300 |
From: | Eli Zaretskii <eliz AT gnu DOT org> |
Subject: | Re: atan2 bug |
In-reply-to: | <200909150025.37854.juan.guerrero@gmx.de> |
X-012-Sender: | halo1 AT inter DOT net DOT il |
To: | djgpp-workers AT delorie DOT com |
Message-id: | <83r5u8yk6l.fsf@gnu.org> |
References: | <200909142122 DOT 34236 DOT juan DOT guerrero AT gmx DOT de> <83y6ohxos6 DOT fsf AT gnu DOT org> <200909150025 DOT 37854 DOT juan DOT guerrero AT gmx DOT de> |
Reply-To: | djgpp-workers AT delorie DOT com |
Errors-To: | nobody AT delorie DOT com |
X-Mailing-List: | djgpp-workers AT delorie DOT com |
X-Unsubscribes-To: | listserv AT delorie DOT com |
> From: Juan Manuel Guerrero <juan DOT guerrero AT gmx DOT de> > Date: Tue, 15 Sep 2009 00:25:37 +0200 > > Am Montag, 14. September 2009 schrieb Eli Zaretskii: > [snip] > > Do you have a test that actually trips it? If so, how about adding it > > to tests/libc/ansi/math? > > > > Below is a test progran that will trigger the bug. > If y is positive finite and x is positive infinity then the result of atan2(y, x) > must be +0.0 but atan2 returns errno=1 and NaN as result. The explanaition has > already be given in the previuos post. If y is negative finite and x is negative > infinite the result must be -PI, but again errno=1 and result set to NaN. Thanks. Assuming that you have run all the other related tests and they still succeed as before the change to atan2 you suggest, I approve the changes. Please install it.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |