mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-11 22:00:08 +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.
23 lines
166 B
Plaintext
23 lines
166 B
Plaintext
## 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
|