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.15-364-g2a8ab7f


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  2a8ab7f26591053136bc17be34499db5c64e89d6 (commit)
      from  10f62770e115d9f16a67a974f79fa9b100cf827b (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://sources.redhat.com/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=2a8ab7f26591053136bc17be34499db5c64e89d6

commit 2a8ab7f26591053136bc17be34499db5c64e89d6
Author: David S. Miller <davem@davemloft.net>
Date:   Tue Mar 13 00:31:48 2012 -0700

    Fix generic ldbl-128 expm1l just like x86-64 and i386 variants were.
    
    	* sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
    	large parameters.

diff --git a/ChangeLog b/ChangeLog
index b11f82d..5704651 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2012-03-13  David S. Miller  <davem@davemloft.net>
 
+	* sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
+	large parameters.
+
 	* sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
 
 	* sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
diff --git a/sysdeps/ieee754/ldbl-128/s_expm1l.c b/sysdeps/ieee754/ldbl-128/s_expm1l.c
index 17769dd..ea63501 100644
--- a/sysdeps/ieee754/ldbl-128/s_expm1l.c
+++ b/sysdeps/ieee754/ldbl-128/s_expm1l.c
@@ -102,6 +102,11 @@ __expm1l (long double x)
   ix = u.parts32.w0;
   sign = ix & 0x80000000;
   ix &= 0x7fffffff;
+  if (!sign && ix >= 0x40060000)
+    {
+      /* If num is positive and exp >= 6 use plain exp.  */
+      return __expl (x);
+    }
   if (ix >= 0x7fff0000)
     {
       /* Infinity. */

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

Summary of changes:
 ChangeLog                           |    3 +++
 sysdeps/ieee754/ldbl-128/s_expm1l.c |    5 +++++
 2 files changed, 8 insertions(+), 0 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]