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.17-497-g90d5d5b


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  90d5d5bbd8a6d41926c8bb6ac9f367bf956c623f (commit)
       via  73e0cd5d0de276a6c41c78920ff79d8e11991240 (commit)
       via  64aabd4b80b5a769f2308d5a6dd9393fd2943d0c (commit)
       via  c871eccd1e0102402901b67c0a9a453a38c0e3f9 (commit)
      from  d755bba40f880c01ced8740a26fecc85534454b9 (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=90d5d5bbd8a6d41926c8bb6ac9f367bf956c623f

commit 90d5d5bbd8a6d41926c8bb6ac9f367bf956c623f
Author: Siddhesh Poyarekar <siddhesh@redhat.com>
Date:   Wed Apr 3 14:20:56 2013 +0530

    Update bench.out and bench.out.old only upon completion
    
    Write output from the currently running benchmark into a temporary
    file and move files around only once the current run is complete.
    That way we don't lose data from the last two runs due to an
    incomplete run.

diff --git a/ChangeLog b/ChangeLog
index bb6fc28..78a0fa3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 2013-04-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
 
+	* Rules (bench): Move bench.out after the run is complete.
+
 	* Rules (bench): Echo currently running benchmark.
 
 	* benchtests/Makefile (bench): Add atan and slowatan.
diff --git a/Rules b/Rules
index 9ad1d11..d4a0027 100644
--- a/Rules
+++ b/Rules
@@ -197,13 +197,14 @@ run-bench = $(test-wrapper-env) \
 	    $($*-ENV) $(run-via-rtld-prefix) $${run}
 
 bench: $(binaries-bench)
-	if [ -f $(objpfx)bench.out ]; then \
-	  mv -f $(objpfx)bench.out $(objpfx)bench.out.old; \
-	fi
 	for run in $^; do \
 	  echo "Running $${run}"; \
-	  eval $(run-bench) >>  $(objpfx)bench.out; \
-	done
+	  eval $(run-bench) >>  $(objpfx)bench.out-tmp; \
+	done; \
+	if [ -f $(objpfx)bench.out ]; then \
+	  mv -f $(objpfx)bench.out $(objpfx)bench.out.old; \
+	fi; \
+	mv -f $(objpfx)bench.out-tmp $(objpfx)bench.out
 
 $(binaries-bench): %: %.o \
   $(sort $(filter $(common-objpfx)lib%,$(link-libc))) \

http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=73e0cd5d0de276a6c41c78920ff79d8e11991240

commit 73e0cd5d0de276a6c41c78920ff79d8e11991240
Author: Siddhesh Poyarekar <siddhesh@redhat.com>
Date:   Wed Apr 3 13:32:37 2013 +0530

    Echo benchmark that is currently running
    
    This will be useful when the benchmark has many functions.

diff --git a/ChangeLog b/ChangeLog
index 6de6999..bb6fc28 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 2013-04-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
 
+	* Rules (bench): Echo currently running benchmark.
+
 	* benchtests/Makefile (bench): Add atan and slowatan.
 	* benchtests/atan-inputs: New file.
 	* benchtests/slowatan-inputs: New file.
diff --git a/Rules b/Rules
index 02cdb4a..9ad1d11 100644
--- a/Rules
+++ b/Rules
@@ -201,6 +201,7 @@ bench: $(binaries-bench)
 	  mv -f $(objpfx)bench.out $(objpfx)bench.out.old; \
 	fi
 	for run in $^; do \
+	  echo "Running $${run}"; \
 	  eval $(run-bench) >>  $(objpfx)bench.out; \
 	done
 

http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=64aabd4b80b5a769f2308d5a6dd9393fd2943d0c

commit 64aabd4b80b5a769f2308d5a6dd9393fd2943d0c
Author: Siddhesh Poyarekar <siddhesh@redhat.com>
Date:   Wed Apr 3 13:38:39 2013 +0530

    Add benchmark inputs for atan
    
    Add separate inputs for slow and fast paths of atan

diff --git a/ChangeLog b/ChangeLog
index 492b439..6de6999 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2013-04-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
 
+	* benchtests/Makefile (bench): Add atan and slowatan.
+	* benchtests/atan-inputs: New file.
+	* benchtests/slowatan-inputs: New file.
+	* benchtests/slowatan.c: New file.
+
 	* sysdeps/ieee754/dbl-64/mpa.h (TWO): Remove definition.
 	* sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Replace TWO with
 	its value.
diff --git a/benchtests/Makefile b/benchtests/Makefile
index 751694a..a6a9299 100644
--- a/benchtests/Makefile
+++ b/benchtests/Makefile
@@ -45,7 +45,7 @@
 #   See pow-inputs for an example.
 
 subdir := benchtests
-bench := exp pow rint sin slowexp slowpow slowsin
+bench := exp pow rint sin atan slowexp slowpow slowsin slowatan
 
 # exp function fast path
 exp-ITER = 5e8
@@ -77,6 +77,12 @@ sin-ARGLIST = double
 sin-RET = double
 LDFLAGS-bench-sin = -lm
 
+# atan function fast path
+atan-ITER = 6e9
+atan-ARGLIST = double
+atan-RET = double
+LDFLAGS-bench-atan = -lm
+
 # pow function slowest path
 slowpow-ITER = 1e5
 slowpow-ARGLIST = double:double
@@ -91,5 +97,12 @@ slowsin-RET = double
 slowsin-INCLUDE = slowsin.c
 LDFLAGS-bench-slowsin = -lm
 
+# atan function slowest path
+slowatan-ITER = 3e8
+slowatan-ARGLIST = double
+slowatan-RET = double
+slowatan-INCLUDE = slowatan.c
+LDFLAGS-bench-slowatan = -lm
+
 include ../Makeconfig
 include ../Rules
diff --git a/benchtests/atan-inputs b/benchtests/atan-inputs
new file mode 100644
index 0000000..c685db3
--- /dev/null
+++ b/benchtests/atan-inputs
@@ -0,0 +1,3 @@
+0x1.000000c5cba86p0
+0x1.000001883003ap0
+0x1.00000dfb2b674p0
diff --git a/benchtests/slowatan-inputs b/benchtests/slowatan-inputs
new file mode 100644
index 0000000..e557a3c
--- /dev/null
+++ b/benchtests/slowatan-inputs
@@ -0,0 +1,3 @@
+0x1.000000c5cba87p0
+0x1.000001883003bp0
+0x1.00000dfb2b675p0
diff --git a/benchtests/slowatan.c b/benchtests/slowatan.c
new file mode 100644
index 0000000..9a11d30
--- /dev/null
+++ b/benchtests/slowatan.c
@@ -0,0 +1,19 @@
+/* Define slowatan.
+   Copyright (C) 2013 Free Software Foundation, Inc.
+   This file is part of the GNU C Library.
+
+   The GNU C Library is free software; you can redistribute it and/or
+   modify it under the terms of the GNU Lesser General Public
+   License as published by the Free Software Foundation; either
+   version 2.1 of the License, or (at your option) any later version.
+
+   The GNU C Library is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+   Lesser General Public License for more details.
+
+   You should have received a copy of the GNU Lesser General Public
+   License along with the GNU C Library; if not, see
+   <http://www.gnu.org/licenses/>.  */
+
+#define slowatan atan

http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=c871eccd1e0102402901b67c0a9a453a38c0e3f9

commit c871eccd1e0102402901b67c0a9a453a38c0e3f9
Author: Siddhesh Poyarekar <siddhesh@redhat.com>
Date:   Wed Apr 3 11:14:39 2013 +0530

    Remove TWO
    
    Minor cleanup to remove the macro TWO and use the value directly
    instead.

diff --git a/ChangeLog b/ChangeLog
index 64e9c88..492b439 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2013-04-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
 
+	* sysdeps/ieee754/dbl-64/mpa.h (TWO): Remove definition.
+	* sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Replace TWO with
+	its value.
+
 	[BZ #15305]
 	* sysdeps/unix/sysv/linux/kernel-features.h
 	[__LINUX_KERNEL_VERSION >= 0x02061d]: Define
diff --git a/sysdeps/ieee754/dbl-64/mpa.h b/sysdeps/ieee754/dbl-64/mpa.h
index 0d82115..5fad584 100644
--- a/sysdeps/ieee754/dbl-64/mpa.h
+++ b/sysdeps/ieee754/dbl-64/mpa.h
@@ -91,8 +91,6 @@ extern const mp_no mptwo;
 # define  TWO52     0x1.0p52		/* 2^52    */
 #endif
 
-#define  TWO       2.0			/*  2      */
-
 #define  TWO5      TWOPOW (5)		/* 2^5     */
 #define  TWO8      TWOPOW (8)		/* 2^52    */
 #define  TWO10     TWOPOW (10)		/* 2^10    */
diff --git a/sysdeps/ieee754/dbl-64/mpatan.c b/sysdeps/ieee754/dbl-64/mpatan.c
index 33c6847..807b16a 100644
--- a/sysdeps/ieee754/dbl-64/mpatan.c
+++ b/sysdeps/ieee754/dbl-64/mpatan.c
@@ -102,7 +102,7 @@ __mpatan (mp_no *x, mp_no *y, int p)
   __dvd (&mpsm, &mptwoim1, &mpt, p);
   for (i = n - 1; i > 1; i--)
     {
-      mptwoim1.d[1] -= TWO;
+      mptwoim1.d[1] -= 2;
       __dvd (&mpsm, &mptwoim1, &mpt1, p);
       __mul (&mpsm, &mpt, &mpt2, p);
       __sub (&mpt1, &mpt2, &mpt, p);

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

Summary of changes:
 ChangeLog                       |   13 +++++++++++++
 Rules                           |   10 ++++++----
 benchtests/Makefile             |   15 ++++++++++++++-
 benchtests/atan-inputs          |    3 +++
 benchtests/slowatan-inputs      |    3 +++
 benchtests/slowatan.c           |   19 +++++++++++++++++++
 sysdeps/ieee754/dbl-64/mpa.h    |    2 --
 sysdeps/ieee754/dbl-64/mpatan.c |    2 +-
 8 files changed, 59 insertions(+), 8 deletions(-)
 create mode 100644 benchtests/atan-inputs
 create mode 100644 benchtests/slowatan-inputs
 create mode 100644 benchtests/slowatan.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]