This is the mail archive of the
glibc-cvs@sourceware.org
mailing list for the glibc project.
[glibc/master-ppc-refactor] benchtests: hypot benchmark
- From: Adhemerval Zanella <azanella at sourceware dot org>
- To: glibc-cvs at sourceware dot org
- Date: 25 Jun 2019 17:50:07 -0000
- Subject: [glibc/master-ppc-refactor] benchtests: hypot benchmark
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=24b7f9604925fc646fd09ad8ca3a833c815eb2e6
commit 24b7f9604925fc646fd09ad8ca3a833c815eb2e6
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date: Mon Mar 11 17:01:11 2019 +0000
benchtests: hypot benchmark
Inputs are based on argument reductions from generic and powerpc
implementation.
* benchtests/Makefile (bench-math): Add hypot.
* benchtests/hypot-inputs: New file.
Diff:
---
benchtests/Makefile | 2 +-
benchtests/hypot-inputs | 16 ++++++++++++++++
2 files changed, 17 insertions(+), 1 deletion(-)
diff --git a/benchtests/Makefile b/benchtests/Makefile
index ef400a8..2d49113 100644
--- a/benchtests/Makefile
+++ b/benchtests/Makefile
@@ -24,7 +24,7 @@ include ../Makeconfig
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 \
fmaxf powf trunc truncf expf exp2f logf log2f sincosf sinf \
- cosf isnan isinf isfinite
+ cosf isnan isinf isfinite hypot
bench-pthread := pthread_once thread_create
diff --git a/benchtests/hypot-inputs b/benchtests/hypot-inputs
new file mode 100644
index 0000000..e987e5d
--- /dev/null
+++ b/benchtests/hypot-inputs
@@ -0,0 +1,16 @@
+## includes: math.h
+## args: double:double
+## ret: double
+
+## name: overflow
+0x3.ffffffffffffcp-1024, 0x8p-152
+## name: higher_two500
+0x1.000002027941dp+500, 0x1.0000000000001p+500
+## name: subnormal
+0x0.fffffffffffffp-1022, 0x0.fffffffffffffp-1022
+## name: less_two500
+0x1.fffffffffffffp-501, 0x1.fffffffffffffp-501
+
+## name: default
+3.0 , 4.0
+5.0 , 4.0