public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
From: Adhemerval Zanella <azanella@sourceware.org>
To: glibc-cvs@sourceware.org
Subject: [glibc] benchtests: Add logb{f} benchmark
Date: Mon, 08 Jul 2019 20:27:00 -0000	[thread overview]
Message-ID: <20190708202751.60426.qmail@sourceware.org> (raw)

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=0cccd37f70ba629a32773d6f253cb69a893fa652

commit 0cccd37f70ba629a32773d6f253cb69a893fa652
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Thu Mar 14 11:55:04 2019 +0000

    benchtests: Add logb{f} benchmark
    
    	* benchtests/Makefile (bench-math): Add logb.
    	* benchtests/logb-inputs: New file.
    	* benchtests/logbf-inputs: New file.
    
    Reviewed-by: Gabriel F. T. Gomes <gabrielftg@linux.ibm.com>

Diff:
---
 ChangeLog               |  4 ++++
 benchtests/Makefile     |  2 +-
 benchtests/logb-inputs  | 11 +++++++++++
 benchtests/logbf-inputs | 11 +++++++++++
 4 files changed, 27 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index a9aefa6..828f832 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2019-07-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
 
+	* benchtests/Makefile (bench-math): Add logb.
+	* benchtests/logb-inputs: New file.
+	* benchtests/logbf-inputs: New file.
+
 	* sysdeps/powerpc/power5+/fpu/s_modf.c: Move to ...
 	* sysdeps/powerpc/fpu/s_modf.c: ... here.  Add ISA 2.07 optimization.
 	* sysdeps/powerpc/power5+/fpu/s_modff.c: Move to ...
diff --git a/benchtests/Makefile b/benchtests/Makefile
index 2d49113..697e29f 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 hypot
+	      cosf isnan isinf isfinite hypot logb logbf
 
 bench-pthread := pthread_once thread_create
 
diff --git a/benchtests/logb-inputs b/benchtests/logb-inputs
new file mode 100644
index 0000000..ab3b161
--- /dev/null
+++ b/benchtests/logb-inputs
@@ -0,0 +1,11 @@
+## args: double
+## ret: double
+## includes: math.h
+
+## name: subnormal
+0x0.0000000000001p-1022
+0x0.fffffffffffffp-1022
+
+## name: normal
+1.0
+1024.0
diff --git a/benchtests/logbf-inputs b/benchtests/logbf-inputs
new file mode 100644
index 0000000..c97fa17
--- /dev/null
+++ b/benchtests/logbf-inputs
@@ -0,0 +1,11 @@
+## args: double
+## ret: double
+## includes: math.h
+
+## name: subnormal
+0x1p-149
+0x1.fffff8p-128
+
+## name: normal
+1.0
+1024.0


                 reply	other threads:[~2019-07-08 20:27 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190708202751.60426.qmail@sourceware.org \
    --to=azanella@sourceware.org \
    --cc=glibc-cvs@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).