Fix cproj handling of (finite, NaN) arguments (bug 15531)
Andreas Jaeger
aj@suse.com
Tue Aug 20 19:36:00 GMT 2013
On 08/20/2013 07:22 PM, Joseph S. Myers wrote:
> Bug 15531 (extracted from reported LSB test failures) is cproj
> returning an infinity for an argument with one finite and one NaN
> part, when the ISO C specification is that it should return the
> argument unchanged in that case.
>
> This patch simplifies the code to follow the ISO C specification more
> directly to fix this bug. Tested x86_64 and x86.
>
> 2013-08-20 Joseph Myers <joseph@codesourcery.com>
>
> [BZ #15531]
> * math/s_cproj.c (__cproj): Only return an infinity if one part of
> argument is infinite.
> * math/s_cprojf.c (__cprojf): Likewise.
> * math/s_cprojl.c (__cprojl): Likewise.
> * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c (__cprojl): Likewise.
> * math/libm-test.inc (cproj_test_data): Add more tests.
Looks fine, 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
More information about the Libc-alpha
mailing list