This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH] Fix undue underflow in ldbl-128ibm version of expl
- From: Andreas Schwab <schwab at linux-m68k dot org>
- To: libc-alpha at sourceware dot org
- Date: Fri, 23 Mar 2012 23:47:29 +0100
- Subject: [PATCH] Fix undue underflow in ldbl-128ibm version of expl
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.
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."