Fix log1pl (LDBL_MAX) in FE_UPWARD mode (bug 16564)

Andreas Jaeger aj@suse.com
Wed May 14 10:26:00 GMT 2014


On 05/12/2014 04:18 PM, Joseph S. Myers wrote:
> Bug 16564 is spurious overflow of log1pl (LDBL_MAX) in FE_UPWARD mode,
> resulting from log1pl adding 1 to its argument (for arguments not
> close to 0), which overflows in that mode.  This patch fixes this by
> avoiding adding 1 to large arguments (precisely what counts as large
> depends on the floating-point format).

Looks fine, 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



More information about the Libc-alpha mailing list