Fix x86/x86_64 expm1l spurious underflow exceptions (bug 16539)
Andreas Jaeger
aj@suse.com
Tue Jun 24 20:51:00 GMT 2014
On 06/24/2014 10:47 PM, Joseph S. Myers wrote:
> This patch fixes bug 16539, spurious underflow exceptions from x86 /
> x86-64 expm1l. The problem is that the computation of a base-2
> exponent with extra precision involves spurious underflows for
> arguments that are small but not subnormal, so a check is added to
> just return the argument in those cases. (If the argument *is*
> subnormal, underflowing is correct and the existing code will always
> underflow, so it suffices to keep using the existing code in that
> case; some expm1 implementations have a bug (bug 16353) with missing
> underflow exceptions, but I don't think there's such a bug in this
> particular version.)
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