Fix ldbl-128ibm powl spurious underflows
David Miller
davem@davemloft.net
Wed Nov 21 23:13:00 GMT 2012
From: "Joseph S. Myers" <joseph@codesourcery.com>
Date: Wed, 21 Nov 2012 22:59:51 +0000
> This patch fixes spurious underflow exceptions from ldbl-128ibm powl
> in a similar way to other floating-point formats. As with existing
> practice in this and other ldbl-128ibm functions, it doesn't attempt
> to do anything special regarding the peculiarities of IBM long double
> (where values very close to 1 can be represented with discontiguous
> mantissa).
>
> Tested that this eliminates the underflow exceptions on powerpc.
>
> 2012-11-21 Joseph Myers <joseph@codesourcery.com>
>
> [BZ #14811]
> * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Saturate
> nonzero exponents with absolute value below 0x1p-117 to +/-
> 0x1p-117.
Thanks for taking care of this Joseph, looks great.
More information about the Libc-alpha
mailing list