This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Fix undue underflow in ldbl-128ibm version of expl


On Fri, Mar 23, 2012 at 6:47 PM, Andreas Schwab <schwab@linux-m68k.org> wrote:
> The constant was computed with mpfr from log (0x1p-1074).
>
> Andreas.
>
> ? ? ? ?* sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
> ? ? ? ?denormal result into account.
> ---
> ?sysdeps/ieee754/ldbl-128ibm/e_expl.c | ? ?4 ++--
> ?1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/sysdeps/ieee754/ldbl-128ibm/e_expl.c b/sysdeps/ieee754/ldbl-128ibm/e_expl.c
> index 133adc2..495caca 100644
> --- a/sysdeps/ieee754/ldbl-128ibm/e_expl.c
> +++ b/sysdeps/ieee754/ldbl-128ibm/e_expl.c
> @@ -1,5 +1,5 @@
> ?/* Quad-precision floating point e^x.
> - ? Copyright (C) 1999,2004,2006, 2008, 2011 Free Software Foundation, Inc.
> + ? Copyright (C) 1999,2004,2006, 2008, 2011, 2012 Free Software Foundation, Inc.

The line is too long, fold all years into 1999-2012.

> ? ?This file is part of the GNU C Library.
> ? ?Contributed by Jakub Jelinek <jj@ultra.linux.cz>
> ? ?Partly based on double-precision code
> @@ -74,7 +74,7 @@ static const long double C[] = {
>
> ?/* Largest integer x for which e^x underflows. ?*/
> ?#define lomark C[1]
> --709.08956571282405153382846025171462914L,
> +-744.44007192138121808966388925909996033L,
>
> ?/* 3x2^96 */
> ?#define THREEp96 C[2]
> --
> 1.7.9.4
>
>
> --
> Andreas Schwab, schwab@linux-m68k.org
> GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 ?01D3 44D5 214B 8276 4ED5
> "And now for something completely different."

Cheers,
Carlos.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]