public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc/master-ppc-refactor] benchtests: Add logb{f} benchmark
@ 2019-06-25 17:50 Adhemerval Zanella
  0 siblings, 0 replies; only message in thread
From: Adhemerval Zanella @ 2019-06-25 17:50 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=8a2b9b2e62e4c2a65ff9cbd87f48580b6f0b939e

commit 8a2b9b2e62e4c2a65ff9cbd87f48580b6f0b939e
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.

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

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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-06-25 17:50 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-25 17:50 [glibc/master-ppc-refactor] benchtests: Add logb{f} benchmark Adhemerval Zanella

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).