summary refs log tree commit diff
path: root/benchtests/truncf-inputs
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2017-09-19 12:59:01 +0000
committerJoseph Myers <joseph@codesourcery.com>2017-09-19 12:59:01 +0000
commiteb375def3ddd2a1738ed6bc5ace98753f0f7e5e6 (patch)
treeccaa8a1599d1601cbdc7c3c8f6a35971cba1e86b /benchtests/truncf-inputs
parentbd17ba29eb5cb4ec7251c1ed0b4dcd7d287c0c0c (diff)
downloadglibc-eb375def3ddd2a1738ed6bc5ace98753f0f7e5e6.tar.gz
glibc-eb375def3ddd2a1738ed6bc5ace98753f0f7e5e6.tar.xz
glibc-eb375def3ddd2a1738ed6bc5ace98753f0f7e5e6.zip
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.
Diffstat (limited to 'benchtests/truncf-inputs')
-rw-r--r--benchtests/truncf-inputs21
1 files changed, 21 insertions, 0 deletions
diff --git a/benchtests/truncf-inputs b/benchtests/truncf-inputs
new file mode 100644
index 0000000000..c37c5dacba
--- /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