Skip to content

Commit

Permalink
Fix undue underflow in ldbl-128ibm version of expl
Browse files Browse the repository at this point in the history
  • Loading branch information
Andreas Schwab committed Mar 26, 2012
1 parent d6a403f commit a3f6131
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
2012-03-26 Andreas Schwab <schwab@linux-m68k.org>

* sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
denormal result into account.

2012-03-25 Roland McGrath <roland@hack.frob.com>

* posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
Expand Down
4 changes: 2 additions & 2 deletions sysdeps/ieee754/ldbl-128ibm/e_expl.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* Quad-precision floating point e^x.
Copyright (C) 1999,2004,2006, 2008, 2011 Free Software Foundation, Inc.
Copyright (C) 1999-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
Expand Down Expand Up @@ -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]
Expand Down

0 comments on commit a3f6131

Please sign in to comment.