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.10-306-g65b14bc


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  65b14bcee2da7f56299357d1dab9f0ab986c2255 (commit)
      from  e9f145cba8691a81dac379914bb3895360795a9b (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=65b14bcee2da7f56299357d1dab9f0ab986c2255

commit 65b14bcee2da7f56299357d1dab9f0ab986c2255
Author: Ulrich Drepper <drepper@redhat.com>
Date:   Tue Aug 25 16:46:34 2009 -0700

    Optimize out duplicated scalbln code for x86-64.

diff --git a/ChangeLog b/ChangeLog
index 365b0b8..4b1faea 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -4,7 +4,10 @@
 
 2009-08-25  Ulrich Drepper  <drepper@redhat.com>
 
-	* sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
+	* sysdeps/x86_64/fpu/s_scalbln.c: New file.
+	* sysdeps/x86_64/fpu/s_scalbn.c: New file.
+
+	* sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
 
 	* sysdeps/x86_64/fpu/s_signbit.S: New file.
 	* sysdeps/x86_64/fpu/s_signbitf.S: New file.
diff --git a/sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c b/sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c
similarity index 90%
rename from sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c
rename to sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c
index 25b283f..25cf3b1 100644
--- a/sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c
+++ b/sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c
@@ -31,10 +31,10 @@ huge   = 1.0e+300,
 tiny   = 1.0e-300;
 
 #ifdef __STDC__
-	double __scalbln (double x, long int n)
+	double __scalbn (double x, int n)
 #else
-	double __scalbln (x,n)
-	double x; long int n;
+	double __scalbn (x,n)
+	double x; int n;
 #endif
 {
 	int64_t ix;
@@ -61,8 +61,8 @@ tiny   = 1.0e-300;
 	INSERT_WORDS64(x,(ix&INT64_C(0x800fffffffffffff))|(k<<52));
 	return x*twom54;
 }
-weak_alias (__scalbln, scalbln)
+weak_alias (__scalbn, scalbn)
 #ifdef NO_LONG_DOUBLE
-strong_alias (__scalbln, __scalblnl)
-weak_alias (__scalbln, scalblnl)
+strong_alias (__scalbn, __scalbnl)
+weak_alias (__scalbn, scalbnl)
 #endif
diff --git a/sysdeps/x86_64/fpu/s_scalbln.c b/sysdeps/x86_64/fpu/s_scalbln.c
new file mode 100644
index 0000000..1009713
--- /dev/null
+++ b/sysdeps/x86_64/fpu/s_scalbln.c
@@ -0,0 +1,2 @@
+/* Nothing to do.  This function is the same as scalbn.  So we define an
+   alias.  */
diff --git a/sysdeps/x86_64/fpu/s_scalbn.c b/sysdeps/x86_64/fpu/s_scalbn.c
new file mode 100644
index 0000000..74d3465
--- /dev/null
+++ b/sysdeps/x86_64/fpu/s_scalbn.c
@@ -0,0 +1,9 @@
+#define scalbln __renamed_scalbln
+#define __scalbln __renamed___scalbln
+
+#include <sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c>
+
+#undef scalbln
+#undef __scalbln
+strong_alias (__scalbn, __scalbln)
+weak_alias (__scalbn, scalbln)

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

Summary of changes:
 ChangeLog                                          |    5 ++++-
 .../dbl-64/wordsize-64/{s_scalbln.c => s_scalbn.c} |   12 ++++++------
 sysdeps/{i386 => x86_64}/fpu/s_scalbln.c           |    0
 sysdeps/x86_64/fpu/s_scalbn.c                      |    9 +++++++++
 4 files changed, 19 insertions(+), 7 deletions(-)
 rename sysdeps/ieee754/dbl-64/wordsize-64/{s_scalbln.c => s_scalbn.c} (90%)
 copy sysdeps/{i386 => x86_64}/fpu/s_scalbln.c (100%)
 create mode 100644 sysdeps/x86_64/fpu/s_scalbn.c


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]