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.14-371-gb61099b


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  b61099b50a028d3ac69aa9500ffa9871d23e3884 (commit)
      from  bcf01e6d800e837622ddbc851b42b55fa99e5636 (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=b61099b50a028d3ac69aa9500ffa9871d23e3884

commit b61099b50a028d3ac69aa9500ffa9871d23e3884
Author: Ulrich Drepper <drepper@gmail.com>
Date:   Sat Oct 15 20:47:01 2011 -0400

    Add cosh optimized for 64-bit architectures

diff --git a/ChangeLog b/ChangeLog
index 0b276d3..6ddea17 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
 
+	* sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
+	* sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
+
 	* math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
 	__expl_finite.
 	* math/bits/math-finite.h: Add entries for exp.
diff --git a/sysdeps/ieee754/dbl-64/e_cosh.c b/sysdeps/ieee754/dbl-64/e_cosh.c
index 180ca42..b9f79e4 100644
--- a/sysdeps/ieee754/dbl-64/e_cosh.c
+++ b/sysdeps/ieee754/dbl-64/e_cosh.c
@@ -10,10 +10,6 @@
  * ====================================================
  */
 
-#if defined(LIBM_SCCS) && !defined(lint)
-static char rcsid[] = "$NetBSD: e_cosh.c,v 1.7 1995/05/10 20:44:58 jtc Exp $";
-#endif
-
 /* __ieee754_cosh(x)
  * Method :
  * mathematically cosh(x) if defined to be (exp(x)+exp(-x))/2
diff --git a/sysdeps/ieee754/dbl-64/e_cosh.c b/sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c
similarity index 90%
copy from sysdeps/ieee754/dbl-64/e_cosh.c
copy to sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c
index 180ca42..41dc42c 100644
--- a/sysdeps/ieee754/dbl-64/e_cosh.c
+++ b/sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c
@@ -10,10 +10,6 @@
  * ====================================================
  */
 
-#if defined(LIBM_SCCS) && !defined(lint)
-static char rcsid[] = "$NetBSD: e_cosh.c,v 1.7 1995/05/10 20:44:58 jtc Exp $";
-#endif
-
 /* __ieee754_cosh(x)
  * Method :
  * mathematically cosh(x) if defined to be (exp(x)+exp(-x))/2
@@ -45,7 +41,6 @@ __ieee754_cosh (double x)
 {
 	double t,w;
 	int32_t ix;
-	u_int32_t lx;
 
     /* High word of |x|. */
 	GET_HIGH_WORD(ix,x);
@@ -70,8 +65,9 @@ __ieee754_cosh (double x)
 	if (ix < 0x40862e42)  return half*__ieee754_exp(fabs(x));
 
     /* |x| in [log(maxdouble), overflowthresold] */
-	GET_LOW_WORD(lx,x);
-	if (ix<0x408633ce || ((ix==0x408633ce)&&(lx<=(u_int32_t)0x8fb9f87d))) {
+	int64_t fix;
+	EXTRACT_WORDS64(fix, x);
+	if (fix <= UINT64_C(0x408633ce8fb9f87d)) {
 	    w = __ieee754_exp(half*fabs(x));
 	    t = half*w;
 	    return t*w;

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

Summary of changes:
 ChangeLog                                         |    3 +++
 sysdeps/ieee754/dbl-64/e_cosh.c                   |    4 ----
 sysdeps/ieee754/dbl-64/{ => wordsize-64}/e_cosh.c |   10 +++-------
 3 files changed, 6 insertions(+), 11 deletions(-)
 copy sysdeps/ieee754/dbl-64/{ => wordsize-64}/e_cosh.c (90%)


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]