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-452-gb7519f6


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  b7519f61fe2c57981c69c0c65996968b9a4d9b62 (commit)
      from  f8fc4b44942238dec3228c4e4d77553da2b3ec39 (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=b7519f61fe2c57981c69c0c65996968b9a4d9b62

commit b7519f61fe2c57981c69c0c65996968b9a4d9b62
Author: Joseph Myers <joseph@codesourcery.com>
Date:   Thu Jun 9 17:25:54 2016 +0000

    Fix ldbl-128ibm log1pl (sNaN) (bug 20234).
    
    The ldbl-128ibm version of log1pl 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 powerpc.
    
    	[BZ #20234]
    	* sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Add positive
    	infinity or NaN input to itself.

diff --git a/ChangeLog b/ChangeLog
index 6944ac5..81192ce 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2016-06-09  Joseph Myers  <joseph@codesourcery.com>
 
+	[BZ #20234]
+	* sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Add positive
+	infinity or NaN input to itself.
+
 	[BZ #20233]
 	* sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Add NaN input
 	to itself.
diff --git a/sysdeps/ieee754/ldbl-128ibm/s_log1pl.c b/sysdeps/ieee754/ldbl-128ibm/s_log1pl.c
index 743693b..5457892 100644
--- a/sysdeps/ieee754/ldbl-128ibm/s_log1pl.c
+++ b/sysdeps/ieee754/ldbl-128ibm/s_log1pl.c
@@ -132,7 +132,7 @@ __log1pl (long double xm1)
   xhi = ldbl_high (xm1);
   EXTRACT_WORDS (hx, lx, xhi);
   if (hx >= 0x7ff00000)
-    return xm1;
+    return xm1 + xm1;
 
   /* log1p(+- 0) = +- 0.  */
   if (((hx & 0x7fffffff) | lx) == 0)

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

Summary of changes:
 ChangeLog                              |    4 ++++
 sysdeps/ieee754/ldbl-128ibm/s_log1pl.c |    2 +-
 2 files changed, 5 insertions(+), 1 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]