mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-21 20:40:05 +00:00
Add benchtests for roundeven and roundevenf.
This patch adds benchtests for the roundeven and roundevenf functions. The inputs are copied from trunc-inputs.
This commit is contained in:
parent
933dc0e570
commit
642d5abaf1
@ -23,8 +23,8 @@ subdir := benchtests
|
|||||||
include ../Makeconfig
|
include ../Makeconfig
|
||||||
bench-math := acos acosh asin asinh atan atanh cos cosh exp exp2 log log2 \
|
bench-math := acos acosh asin asinh atan atanh cos cosh exp exp2 log log2 \
|
||||||
modf pow rint sin sincos sinh sqrt tan tanh fmin fmax fminf \
|
modf pow rint sin sincos sinh sqrt tan tanh fmin fmax fminf \
|
||||||
fmaxf powf trunc truncf expf exp2f logf log2f sincosf sinf \
|
fmaxf powf trunc truncf roundeven roundevenf expf exp2f logf \
|
||||||
cosf isnan isinf isfinite hypot logb logbf
|
log2f sincosf sinf cosf isnan isinf isfinite hypot logb logbf
|
||||||
|
|
||||||
bench-pthread := pthread_once thread_create
|
bench-pthread := pthread_once thread_create
|
||||||
|
|
||||||
@ -88,6 +88,8 @@ CFLAGS-bench-fmax.c += -fno-builtin
|
|||||||
CFLAGS-bench-fmaxf.c += -fno-builtin
|
CFLAGS-bench-fmaxf.c += -fno-builtin
|
||||||
CFLAGS-bench-trunc.c += -fno-builtin
|
CFLAGS-bench-trunc.c += -fno-builtin
|
||||||
CFLAGS-bench-truncf.c += -fno-builtin
|
CFLAGS-bench-truncf.c += -fno-builtin
|
||||||
|
CFLAGS-bench-roundeven.c += -fno-builtin
|
||||||
|
CFLAGS-bench-roundevenf.c += -fno-builtin
|
||||||
CFLAGS-bench-isnan.c += -fsignaling-nans
|
CFLAGS-bench-isnan.c += -fsignaling-nans
|
||||||
CFLAGS-bench-isinf.c += -fsignaling-nans
|
CFLAGS-bench-isinf.c += -fsignaling-nans
|
||||||
CFLAGS-bench-isfinite.c += -fsignaling-nans
|
CFLAGS-bench-isfinite.c += -fsignaling-nans
|
||||||
|
22
benchtests/roundeven-inputs
Normal file
22
benchtests/roundeven-inputs
Normal file
@ -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
|
21
benchtests/roundevenf-inputs
Normal file
21
benchtests/roundevenf-inputs
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user