glibc/benchtests/truncf-inputs
Joseph Myers eb375def3d 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.
2017-09-19 12:59:01 +00:00

22 lines
176 B
Plaintext

## 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