mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-25 20:21:07 +00:00
eb375def3d
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.
22 lines
176 B
Plaintext
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
|