This is the mail archive of the glibc-cvs@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]

GNU C Library master sources branch master updated. glibc-2.23-450-g59e53a7


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".

The branch, master has been updated
       via  59e53a78985be92134f126c5597d15a9998001d1 (commit)
      from  ac187dc4abde9ca6504c646106e2a7f7b2806262 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=59e53a78985be92134f126c5597d15a9998001d1

commit 59e53a78985be92134f126c5597d15a9998001d1
Author: Joseph Myers <joseph@codesourcery.com>
Date:   Thu Jun 9 17:23:51 2016 +0000

    Fix ldbl-128 expm1l (sNaN) (bug 20232).
    
    The ldbl-128 version of expm1l returns sNaN for sNaN input.  This
    patch fixes it to add such inputs to themselves so that qNaN is
    returned in this case.
    
    Tested for mips64.
    
    	[BZ #20232]
    	* sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Add NaN input to
    	itself.

diff --git a/ChangeLog b/ChangeLog
index f72f22e..2d88f74 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2016-06-09  Joseph Myers  <joseph@codesourcery.com>
+
+	[BZ #20232]
+	* sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Add NaN input to
+	itself.
+
 2016-06-09  H.J. Lu  <hongjiu.lu@intel.com>
 
 	* sysdeps/x86_64/start.S (_start): Always indirect branch to
diff --git a/sysdeps/ieee754/ldbl-128/s_expm1l.c b/sysdeps/ieee754/ldbl-128/s_expm1l.c
index b1100a9..da902ef 100644
--- a/sysdeps/ieee754/ldbl-128/s_expm1l.c
+++ b/sysdeps/ieee754/ldbl-128/s_expm1l.c
@@ -111,8 +111,8 @@ __expm1l (long double x)
       /* Infinity (which must be negative infinity). */
       if (((ix & 0xffff) | u.parts32.w1 | u.parts32.w2 | u.parts32.w3) == 0)
 	return -1.0L;
-      /* NaN. No invalid exception. */
-      return x;
+      /* NaN.  Invalid exception if signaling.  */
+      return x + x;
     }
 
   /* expm1(+- 0) = +- 0.  */

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog                           |    6 ++++++
 sysdeps/ieee754/ldbl-128/s_expm1l.c |    4 ++--
 2 files changed, 8 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
GNU C Library master sources


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