This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Test scalbn and scalbln in all rounding modes, add more tests of negative arguments


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]