about summary refs log tree commit diff
path: root/benchtests/nearbyint-inputs
diff options
context:
space:
mode:
authorJunxian Zhu <zhujunxian@oss.cipunited.com>2024-01-22 10:16:19 +0800
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2024-02-23 08:50:00 -0300
commit0a4d6c825405bb0dd5058566b01f12704cfc3731 (patch)
tree24a3fa943b4b192dad00374714df91fd2be11345 /benchtests/nearbyint-inputs
parent59e0441d4a1198aa9d21643a6e4f370faec4ffbf (diff)
downloadglibc-0a4d6c825405bb0dd5058566b01f12704cfc3731.tar.gz
glibc-0a4d6c825405bb0dd5058566b01f12704cfc3731.tar.xz
glibc-0a4d6c825405bb0dd5058566b01f12704cfc3731.zip
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>
Diffstat (limited to 'benchtests/nearbyint-inputs')
-rw-r--r--benchtests/nearbyint-inputs22
1 files changed, 22 insertions, 0 deletions
diff --git a/benchtests/nearbyint-inputs b/benchtests/nearbyint-inputs
new file mode 100644
index 0000000000..49ff407a6a
--- /dev/null
+++ b/benchtests/nearbyint-inputs
@@ -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