Fix ctan, ctanh overflow (bug 11521)

Andreas Jaeger aj@suse.com
Tue Apr 24 07:14:00 GMT 2012


On Monday, April 23, 2012 22:03:05 Adhemerval Zanella wrote:
> On 04/09/2012 12:46 PM, Joseph S. Myers wrote:
> > Bug 11521 reports a problem with ctanh returning incorrect results in
> > cases where both numerator and denominator in the internal
> > calculations overflowed.
> 
> IBM long double version correction based on original patch and ulp file
> update.
> 
> ---
> 
> 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
> 
> 	[BZ #11521]
> 	* sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Avoid internal overflow or
> 	cancellation in calculating denominator.
> 	* sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
> 	* sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.

This looks fine to me but I'd like to have Ryan comment as well,

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