This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: Fix log1pl (LDBL_MAX) in FE_UPWARD mode (bug 16564)
- From: Andreas Jaeger <aj at suse dot com>
- To: "Joseph S. Myers" <joseph at codesourcery dot com>, libc-alpha at sourceware dot org
- Date: Wed, 14 May 2014 06:24:41 -0400
- Subject: Re: Fix log1pl (LDBL_MAX) in FE_UPWARD mode (bug 16564)
- Authentication-results: sourceware.org; auth=none
- References: <Pine dot LNX dot 4 dot 64 dot 1405122017540 dot 25715 at digraph dot polyomino dot org dot uk>
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