This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: Test signs of NaNs in libm-test.inc where appropriate
- From: Andreas Jaeger <aj at suse dot com>
- To: "Joseph S. Myers" <joseph at codesourcery dot com>, libc-alpha at sourceware dot org
- Date: Thu, 14 Nov 2013 14:41:06 -0500
- Subject: Re: Test signs of NaNs in libm-test.inc where appropriate
- Authentication-results: sourceware.org; auth=none
- References: <Pine dot LNX dot 4 dot 64 dot 1311141650160 dot 26499 at digraph dot polyomino dot org dot uk>
On 11/14/2013 11:51 AM, Joseph S. Myers wrote:
> libm-test.inc does not check the signs of NaN results. This is
> correct for most functions, where the sign of a NaN result is
> unspecified, but for fabs and copysign the sign of the result is
> specified even when it's a NaN. This patch (relative to a tree with
> <https://sourceware.org/ml/libc-alpha/2013-11/msg00393.html>,
> <https://sourceware.org/ml/libc-alpha/2013-11/msg00408.html> and
> <https://sourceware.org/ml/libc-alpha/2013-11/msg00409.html> applied)
> adds a TEST_NAN_SIGN flag tests can use to check the signs of NaN
> results, uses it for fabs and copysign tests as applicable, and adds
> more tests of NaN inputs for those functions and signbit.
>
> Tested x86_64 and x86.
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