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.26-364-geb375de
- From: jsm28 at sourceware dot org
- To: glibc-cvs at sourceware dot org
- Date: 19 Sep 2017 12:59:23 -0000
- Subject: GNU C Library master sources branch master updated. glibc-2.26-364-geb375de
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 eb375def3ddd2a1738ed6bc5ace98753f0f7e5e6 (commit)
from bd17ba29eb5cb4ec7251c1ed0b4dcd7d287c0c0c (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=eb375def3ddd2a1738ed6bc5ace98753f0f7e5e6
commit eb375def3ddd2a1738ed6bc5ace98753f0f7e5e6
Author: Joseph Myers <joseph@codesourcery.com>
Date: Tue Sep 19 12:59:01 2017 +0000
Add benchtests for trunc and truncf.
This patch adds benchtests for the trunc and truncf functions. The
inputs listed are fairly arbitrary; I do not assert they are
representative of any particular application.
* benchtests/Makefile (bench-math): Add trunc and truncf.
(CFLAGS-bench-trunc.c): New variable.
(CFLAGS-bench-truncf.c): Likewise.
* benchtests/trunc-inputs: New file.
* benchtests/truncf-inputs: Likewise.
diff --git a/ChangeLog b/ChangeLog
index 25b05f2..eae0557 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2017-09-19 Joseph Myers <joseph@codesourcery.com>
+
+ * benchtests/Makefile (bench-math): Add trunc and truncf.
+ (CFLAGS-bench-trunc.c): New variable.
+ (CFLAGS-bench-truncf.c): Likewise.
+ * benchtests/trunc-inputs: New file.
+ * benchtests/truncf-inputs: Likewise.
+
2017-09-19 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
* sysdeps/powerpc/powerpc64/power8/memset.S: Avoid misaligned stores.
diff --git a/benchtests/Makefile b/benchtests/Makefile
index a0c3470..886ec58 100644
--- a/benchtests/Makefile
+++ b/benchtests/Makefile
@@ -23,7 +23,7 @@ subdir := benchtests
include ../Makeconfig
bench-math := acos acosh asin asinh atan atanh cos cosh exp exp2 log log2 \
modf pow rint sin sincos sinh sqrt tan tanh fmin fmax fminf \
- fmaxf powf
+ fmaxf powf trunc truncf
bench-pthread := pthread_once thread_create
@@ -76,6 +76,8 @@ CFLAGS-bench-fmin.c += -fno-builtin
CFLAGS-bench-fminf.c += -fno-builtin
CFLAGS-bench-fmax.c += -fno-builtin
CFLAGS-bench-fmaxf.c += -fno-builtin
+CFLAGS-bench-trunc.c += -fno-builtin
+CFLAGS-bench-truncf.c += -fno-builtin
bench-malloc := malloc-thread
diff --git a/benchtests/trunc-inputs b/benchtests/trunc-inputs
new file mode 100644
index 0000000..49ff407
--- /dev/null
+++ b/benchtests/trunc-inputs
@@ -0,0 +1,22 @@
+## args: double
+## ret: double
+## includes: math.h
+0.0
+-0.0
+0.001
+-0.001
+0.5
+-0.5
+0.999
+-0.999
+1.0
+-1.0
+1.001
+-1.001
+123.5
+-123.5
+12345.1
+-1000000.1
+1e15
+-1e30
+1e200
diff --git a/benchtests/truncf-inputs b/benchtests/truncf-inputs
new file mode 100644
index 0000000..c37c5da
--- /dev/null
+++ b/benchtests/truncf-inputs
@@ -0,0 +1,21 @@
+## args: float
+## ret: float
+## includes: math.h
+0.0f
+-0.0f
+0.001f
+-0.001f
+0.5f
+-0.5f
+0.999f
+-0.999f
+1.0f
+-1.0f
+1.001f
+-1.001f
+123.5f
+-123.5f
+12345.1f
+-1000000.5f
+1e15f
+-1e30f
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 8 ++++++++
benchtests/Makefile | 4 +++-
benchtests/trunc-inputs | 22 ++++++++++++++++++++++
benchtests/truncf-inputs | 21 +++++++++++++++++++++
4 files changed, 54 insertions(+), 1 deletions(-)
create mode 100644 benchtests/trunc-inputs
create mode 100644 benchtests/truncf-inputs
hooks/post-receive
--
GNU C Library master sources