This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: Make tst-strtod-round use ROUNDING_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, 14 Jun 2013 08:21:30 +0200
- Subject: Re: Make tst-strtod-round use ROUNDING_TESTS
- References: <Pine dot LNX dot 4 dot 64 dot 1306140116130 dot 13182 at digraph dot polyomino dot org dot uk>
On 06/14/2013 03:17 AM, Joseph S. Myers wrote:
This patch makes tst-strtod-round use ROUNDING_TESTS from math-tests.h
to handle cases where rounding modes are not fully supported for all
floating-point types. (In fact this issue only affects the cases of
overflowing results, or results that underflow either to zero or the
smallest subnormal of the right sign depending on the rounding mode,
because those cases use floating-point arithmetic to get the
rounding-mode-dependent result from strtod whereas other cases do the
rounding in software.) Tested on ARM.
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