This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: Test scalbn and scalbln in all rounding modes, add more tests of negative arguments
- From: Andreas Jaeger <aj at suse dot com>
- To: "Joseph S. Myers" <joseph at codesourcery dot com>, libc-alpha at sourceware dot org
- Date: Tue, 18 Mar 2014 19:32:41 +0100
- Subject: Re: Test scalbn and scalbln in all rounding modes, add more tests of negative arguments
- Authentication-results: sourceware.org; auth=none
- References: <Pine dot LNX dot 4 dot 64 dot 1403181547500 dot 29154 at digraph dot polyomino dot org dot uk>
On 03/18/2014 04:48 PM, Joseph S. Myers wrote:
> Continuing the move to systematically testing libm functions in all
> rounding modes with ALL_RM_TEST, this patch converts the tests of
> scalbn and scalbln to use that macro.
>
> Those tests include cases of underflow and overflow, meaning the
> expected results depend on the rounding mode. For convenience in
> writing such tests manually, the patch adds the notation plus_oflow,
> minus_oflow, plus_uflow and minus_uflow for overflowing / underflowing
> results of each sign appropriate to the rounding mode being used, and
> gen-libm-test.pl is made to substitute in the appropriate values. The
> tests of underflow and overflow are extended to include negative
> arguments to provide better coverage (otherwise minus_oflow and
> minus_uflow wouldn't have been used at all).
>
> (A subsequent patch will make ldexp use the scalbn tests, as those
> functions are equivalent for binary floating point.)
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