public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
From: Raphael Moreira Zinsly <rzinsly@linux.ibm.com>
To: libc-alpha@sourceware.org
Cc: tuliom@linux.ibm.com, Raphael Moreira Zinsly <rzinsly@linux.ibm.com>
Subject: [PATCH 2/2] benchtests: Add ilogbf128 test
Date: Tue, 22 Dec 2020 12:30:39 -0300	[thread overview]
Message-ID: <20201222153039.17722-2-rzinsly@linux.ibm.com> (raw)
In-Reply-To: <20201222153039.17722-1-rzinsly@linux.ibm.com>

Add a benchtest to ilogbf128 based on the logb benchtests.
---
 benchtests/Makefile         |  2 +-
 benchtests/ilogbf128-inputs | 11 +++++++++++
 2 files changed, 12 insertions(+), 1 deletion(-)
 create mode 100644 benchtests/ilogbf128-inputs

diff --git a/benchtests/Makefile b/benchtests/Makefile
index 5cd211ee9a..9c7d99ae66 100644
--- a/benchtests/Makefile
+++ b/benchtests/Makefile
@@ -28,7 +28,7 @@ bench-math := acos acosh asin asinh atan atanh cos cosh exp exp2 log log2 \
 	      exp10f
 
 ifneq (,$(filter yes,$(float128-fcts) $(float128-alias-fcts)))
-bench-math += expf128 powf128 sinf128
+bench-math += expf128 powf128 sinf128 ilogbf128
 endif
 
 bench-pthread := pthread_once thread_create pthread-locks
diff --git a/benchtests/ilogbf128-inputs b/benchtests/ilogbf128-inputs
new file mode 100644
index 0000000000..bfbfc93714
--- /dev/null
+++ b/benchtests/ilogbf128-inputs
@@ -0,0 +1,11 @@
+## args: _Float128
+## ret: int
+## includes: math.h
+
+## name: subnormal
+6.47517511943802511092443895822764655e-4966f128
+0x1.fffffffffffffff8p-16383f128
+
+## name: normal
+1.0
+-0x8.2faf442f390a9211f5af128673fp+0L
-- 
2.29.2


  reply	other threads:[~2020-12-22 15:31 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-22 15:30 [PATCH] powerpc: Add optimized ilogbf128 for POWER9 Raphael Moreira Zinsly
2020-12-22 15:30 ` Raphael Moreira Zinsly [this message]
2020-12-22 15:36 ` Raphael M Zinsly
2021-01-04 23:20 ` Paul E Murphy
2021-01-05 18:19   ` Paul E Murphy

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=20201222153039.17722-2-rzinsly@linux.ibm.com \
    --to=rzinsly@linux.ibm.com \
    --cc=libc-alpha@sourceware.org \
    --cc=tuliom@linux.ibm.com \
    /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).