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: Fix clog / clog10 sign of zero result in round-downward mode (bug 16789)


On 04/01/2014 05:46 PM, Joseph S. Myers wrote:
> This patch fixes bug 16789, incorrect sign of (real part) zero result
> from clog and clog10 in round-downward mode, arising from that real
> part being computed as 0 - 0.  To ensure that an underflow exception
> occurred, the code used an underflowing value (the next term in the
> series for log1p) in arithmetic computing the real part of the result,
> yielding the problematic 0 - 0 computation in some cases even when the
> mathematical result would be small but positive.  The patch changes
> this code to use the math_force_eval approach to ensuring that an
> underflowing computation actually occurs.  Tests of clog and clog10
> are enabled in all rounding modes.

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]