mirror of git://sourceware.org/git/glibc.git
benchtests: Add more benchtests for rounding functions.
This patch adds more benchtests for rounding functions. The double inputs are copied from trunc-inputs, the float inputs are copied from truncf-inputs. and the rintf is copied from rint-inputs. Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
This commit is contained in:
parent
59e0441d4a
commit
0a4d6c8254
|
|
@ -32,6 +32,8 @@ bench-math := \
|
||||||
atan2 \
|
atan2 \
|
||||||
atanh \
|
atanh \
|
||||||
cbrt \
|
cbrt \
|
||||||
|
ceil \
|
||||||
|
ceilf \
|
||||||
cos \
|
cos \
|
||||||
cosf \
|
cosf \
|
||||||
cosh \
|
cosh \
|
||||||
|
|
@ -44,6 +46,8 @@ bench-math := \
|
||||||
exp2f \
|
exp2f \
|
||||||
expf \
|
expf \
|
||||||
expm1 \
|
expm1 \
|
||||||
|
floor \
|
||||||
|
floorf \
|
||||||
fmax \
|
fmax \
|
||||||
fmaxf \
|
fmaxf \
|
||||||
fmin \
|
fmin \
|
||||||
|
|
@ -60,6 +64,8 @@ bench-math := \
|
||||||
j0 \
|
j0 \
|
||||||
j1 \
|
j1 \
|
||||||
lgamma \
|
lgamma \
|
||||||
|
llrint \
|
||||||
|
llrintf \
|
||||||
log \
|
log \
|
||||||
log10 \
|
log10 \
|
||||||
log1p \
|
log1p \
|
||||||
|
|
@ -68,10 +74,15 @@ bench-math := \
|
||||||
logb \
|
logb \
|
||||||
logbf \
|
logbf \
|
||||||
logf \
|
logf \
|
||||||
|
lrint \
|
||||||
|
lrintf \
|
||||||
modf \
|
modf \
|
||||||
|
nearbyint \
|
||||||
|
nearbyintf \
|
||||||
pow \
|
pow \
|
||||||
powf \
|
powf \
|
||||||
rint \
|
rint \
|
||||||
|
rintf \
|
||||||
roundeven \
|
roundeven \
|
||||||
roundevenf \
|
roundevenf \
|
||||||
sin \
|
sin \
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
@ -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
|
||||||
|
|
@ -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
|
||||||
|
|
@ -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
|
||||||
|
|
@ -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
|
||||||
|
|
@ -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
|
||||||
|
|
@ -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
|
||||||
|
|
@ -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
|
||||||
|
|
@ -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
|
||||||
|
|
@ -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
|
||||||
|
|
@ -0,0 +1,7 @@
|
||||||
|
## args: float
|
||||||
|
## ret: float
|
||||||
|
## includes: math.h
|
||||||
|
78.5
|
||||||
|
-78.5
|
||||||
|
4503599627370497.0
|
||||||
|
-4503599627370497.0
|
||||||
Loading…
Reference in New Issue