From eb375def3ddd2a1738ed6bc5ace98753f0f7e5e6 Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Tue, 19 Sep 2017 12:59:01 +0000 Subject: 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. --- benchtests/trunc-inputs | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 benchtests/trunc-inputs (limited to 'benchtests/trunc-inputs') diff --git a/benchtests/trunc-inputs b/benchtests/trunc-inputs new file mode 100644 index 0000000000..49ff407a6a --- /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 -- cgit 1.4.1