This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: Don't use IGNORE_ZERO_INF_SIGN in hypot tests
- From: Andreas Jaeger <aj at suse dot com>
- To: "Joseph S. Myers" <joseph at codesourcery dot com>
- Cc: libc-alpha at sourceware dot org
- Date: Fri, 03 May 2013 20:53:33 +0200
- Subject: Re: Don't use IGNORE_ZERO_INF_SIGN in hypot tests
- References: <Pine dot LNX dot 4 dot 64 dot 1305031441070 dot 503 at digraph dot polyomino dot org dot uk>
On 05/03/2013 04:41 PM, Joseph S. Myers wrote:
libm-test.inc has the IGNORE_ZERO_INF_SIGN facility, to say that an
expected result given as zero or infinity has indeterminate sign.
This is mostly used for complex.h functions where C99/C11 Annex G
explicitly says the sign is indeterminate. However, two tests for
hypot use it as well, and it makes no sense there: hypot (infinity, x)
should always be *positive* infinity, for any x not a signaling NaN;
it never makes sense for hypot to return a negative (non-NaN) result.
This patch removes the bogus uses of IGNORE_ZERO_INF_SIGN. Tested
x86_64 and x86.
2013-05-03 Joseph Myers <joseph@codesourcery.com>
* math/libm-test.inc (hypot_test): Do not use
IGNORE_ZERO_INF_SIGN.
Ok, thanks,
Andreas
--
Andreas Jaeger aj@{suse.com,opensuse.org} Twitter/Identica: jaegerandi
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn,Jennifer Guild,Felix Imendörffer,HRB16746 (AG Nürnberg)
GPG fingerprint = 93A3 365E CE47 B889 DF7F FED1 389A 563C C272 A126