This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Don't use IGNORE_ZERO_INF_SIGN in hypot tests


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]