From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32382 invoked by alias); 8 Jul 2019 20:27:36 -0000 Mailing-List: contact glibc-cvs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: , Sender: glibc-cvs-owner@sourceware.org List-Subscribe: Received: (qmail 32204 invoked by uid 9943); 8 Jul 2019 20:27:36 -0000 Date: Mon, 08 Jul 2019 20:27:00 -0000 Message-ID: <20190708202736.32194.qmail@sourceware.org> Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Adhemerval Zanella To: glibc-cvs@sourceware.org Subject: [glibc] benchtests: hypot benchmark X-Act-Checkin: glibc X-Git-Author: Adhemerval Zanella X-Git-Refname: refs/heads/master X-Git-Oldrev: 97274b18463f29418e20d83ce9cc72ea06596a1c X-Git-Newrev: f215dbbdf18893b08e0b00eb12d369e7cf4a946d X-SW-Source: 2019-q3/txt/msg00037.txt.bz2 https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=f215dbbdf18893b08e0b00eb12d369e7cf4a946d commit f215dbbdf18893b08e0b00eb12d369e7cf4a946d Author: Adhemerval Zanella 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. Reviewed-by: Gabriel F. T. Gomes Diff: --- ChangeLog | 5 +++++ benchtests/Makefile | 2 +- benchtests/hypot-inputs | 16 ++++++++++++++++ 3 files changed, 22 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 21daab7..d335dd1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2019-07-08 Adhemerval Zanella + + * benchtests/Makefile (bench-math): Add hypot. + * benchtests/hypot-inputs: New file. + 2019-07-08 Vincent Chen * sysdeps/unix/sysv/linux/dl-vdso.h 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