This is the mail archive of the
glibc-cvs@sourceware.org
mailing list for the glibc project.
GNU C Library master sources branch master updated. glibc-2.17-539-g037714d
- From: siddhesh at sourceware dot org
- To: glibc-cvs at sourceware dot org
- Date: 17 Apr 2013 12:31:50 -0000
- Subject: GNU C Library master sources branch master updated. glibc-2.17-539-g037714d
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 037714dd49c1d43584163e80008bb53f693e2550 (commit)
from e913141d5f4d4eed4b65f55b0077aeb1c8234e25 (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=037714dd49c1d43584163e80008bb53f693e2550
commit 037714dd49c1d43584163e80008bb53f693e2550
Author: Siddhesh Poyarekar <siddhesh@redhat.com>
Date: Wed Apr 17 17:45:55 2013 +0530
Add benchmark inputs for cos and tan
diff --git a/ChangeLog b/ChangeLog
index 90d6d47..23e7296 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+2013-04-17 Siddhesh Poyarekar <siddhesh@redhat.com>
+
+ * benchtests/Makefile (bench): Add cos, tan, slowcos and
+ slowtan.
+ * benchtests/cos-inputs: New file.
+ * benchtests/slowcos-inputs: New file.
+ * benchtests/slowcos.c: New file.
+ * benchtests/slowtan-inputs: New file.
+ * benchtests/slowtan.c: New file.
+ * benchtests/tan-inputs: New file.
+
2013-04-16 Roland McGrath <roland@hack.frob.com>
* rt/tst-aio7.c (do_test): Don't test O_RDONLY fd case, which is now
diff --git a/benchtests/Makefile b/benchtests/Makefile
index 5d3de5d..c61fd87 100644
--- a/benchtests/Makefile
+++ b/benchtests/Makefile
@@ -45,7 +45,8 @@
# See pow-inputs for an example.
subdir := benchtests
-bench := exp pow rint sin atan slowexp slowpow slowsin slowatan
+bench := exp pow rint sin cos tan atan \
+ slowexp slowpow slowsin slowcos slowtan slowatan
# exp function fast path
exp-ITER = 5e8
@@ -77,6 +78,18 @@ sin-ARGLIST = double
sin-RET = double
LDFLAGS-bench-sin = -lm
+# cos function fast path
+cos-ITER = 3e9
+cos-ARGLIST = double
+cos-RET = double
+LDFLAGS-bench-cos = -lm
+
+# tan function fast path
+tan-ITER = 3e9
+tan-ARGLIST = double
+tan-RET = double
+LDFLAGS-bench-tan = -lm
+
# atan function fast path
atan-ITER = 6e9
atan-ARGLIST = double
@@ -97,6 +110,20 @@ slowsin-RET = double
slowsin-INCLUDE = slowsin.c
LDFLAGS-bench-slowsin = -lm
+# cos function slowest path
+slowcos-ITER = 3e7
+slowcos-ARGLIST = double
+slowcos-RET = double
+slowcos-INCLUDE = slowcos.c
+LDFLAGS-bench-slowcos = -lm
+
+# tan function slowest path
+slowtan-ITER = 3e7
+slowtan-ARGLIST = double
+slowtan-RET = double
+slowtan-INCLUDE = slowtan.c
+LDFLAGS-bench-slowtan = -lm
+
# atan function slowest path
slowatan-ITER = 3e8
slowatan-ARGLIST = double
diff --git a/benchtests/cos-inputs b/benchtests/cos-inputs
new file mode 100644
index 0000000..98f4122
--- /dev/null
+++ b/benchtests/cos-inputs
@@ -0,0 +1,5 @@
+0x1.000000cf4a2a1p0
+0x1.0000010b239a8p0
+0x1.00000162a932ap0
+0x1.000002d452a11p0
+0x1.000005bc7d86cp0
diff --git a/benchtests/slowcos-inputs b/benchtests/slowcos-inputs
new file mode 100644
index 0000000..b7eb235
--- /dev/null
+++ b/benchtests/slowcos-inputs
@@ -0,0 +1,5 @@
+0x1.000000cf4a2a2p0
+0x1.0000010b239a9p0
+0x1.00000162a932bp0
+0x1.000002d452a10p0
+0x1.000005bc7d86dp0
diff --git a/benchtests/slowcos.c b/benchtests/slowcos.c
new file mode 100644
index 0000000..9f56234
--- /dev/null
+++ b/benchtests/slowcos.c
@@ -0,0 +1,19 @@
+/* Define slowcos.
+ 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 slowcos cos
diff --git a/benchtests/slowtan-inputs b/benchtests/slowtan-inputs
new file mode 100644
index 0000000..74a7eab
--- /dev/null
+++ b/benchtests/slowtan-inputs
@@ -0,0 +1 @@
+0x1.dffffffffff1fp-22
diff --git a/benchtests/slowtan.c b/benchtests/slowtan.c
new file mode 100644
index 0000000..583f16f
--- /dev/null
+++ b/benchtests/slowtan.c
@@ -0,0 +1,19 @@
+/* Define slowtan.
+ 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 slowtan tan
diff --git a/benchtests/tan-inputs b/benchtests/tan-inputs
new file mode 100644
index 0000000..4369d75
--- /dev/null
+++ b/benchtests/tan-inputs
@@ -0,0 +1 @@
+0x1.dffffffffff1ep-22
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 11 +++++++++++
benchtests/Makefile | 29 ++++++++++++++++++++++++++++-
benchtests/cos-inputs | 5 +++++
benchtests/slowcos-inputs | 5 +++++
benchtests/slowcos.c | 19 +++++++++++++++++++
benchtests/slowtan-inputs | 1 +
benchtests/slowtan.c | 19 +++++++++++++++++++
benchtests/tan-inputs | 1 +
8 files changed, 89 insertions(+), 1 deletions(-)
create mode 100644 benchtests/cos-inputs
create mode 100644 benchtests/slowcos-inputs
create mode 100644 benchtests/slowcos.c
create mode 100644 benchtests/slowtan-inputs
create mode 100644 benchtests/slowtan.c
create mode 100644 benchtests/tan-inputs
hooks/post-receive
--
GNU C Library master sources