Fix cacos (+Inf + finite*i) in round-downward mode (bug 16928)
Andreas Jaeger
aj@suse.com
Wed May 14 10:26:00 GMT 2014
On 05/09/2014 07:26 PM, Joseph S. Myers wrote:
> According to C99/C11 Annex G, cacos applied to a value with real part
> +Inf and finite imaginary part should produce a result with real part
> +0. glibc wrongly produces a result with real part -0 in FE_DOWNWARD
> mode. This patch fixes this by checking for zero results in the
> relevant case of non-finite arguments (where there should never be a
> result with -0 real part), and converts the tests of cacos to
> ALL_RM_TEST.
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
More information about the Libc-alpha
mailing list