public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
From: Sunil K Pandey <skpgkp2@gmail.com>
To: libc-alpha@sourceware.org
Subject: [PATCH 05/12] benchtests: Add atanhf function to bench-math
Date: Fri, 29 Oct 2021 10:19:34 -0700	[thread overview]
Message-ID: <20211029171941.4161172-6-skpgkp2@gmail.com> (raw)
In-Reply-To: <20211029171941.4161172-1-skpgkp2@gmail.com>

Add atanhf function to bench-math and copy atanhf-inputs to benchtests.
Motivation for this patch is to prepare for upcoming libmvec new
functions.  Float and double version of libmvec functions stays
together.

atanhf-inputs file generated from atanh-inputs file using following
scaling formula:

f = d * (FLT_MAX/DBL_MAX)

Where d is input(double) and f is output(float).  If scaled float value
is duplicate in new input file, nextafterf() function used to find next
float value, ensuring no duplicates.
---
 benchtests/Makefile      |   1 +
 benchtests/atanhf-inputs | 203 +++++++++++++++++++++++++++++++++++++++
 2 files changed, 204 insertions(+)
 create mode 100644 benchtests/atanhf-inputs

diff --git a/benchtests/Makefile b/benchtests/Makefile
index 1768fd859b..bb3edd3e3b 100644
--- a/benchtests/Makefile
+++ b/benchtests/Makefile
@@ -35,6 +35,7 @@ bench-math := \
   atan2 \
   atanf \
   atanh \
+  atanhf \
   cbrt \
   cos \
   cosf \
diff --git a/benchtests/atanhf-inputs b/benchtests/atanhf-inputs
new file mode 100644
index 0000000000..d651daae7d
--- /dev/null
+++ b/benchtests/atanhf-inputs
@@ -0,0 +1,203 @@
+## args: float
+## ret: float
+## includes: math.h
+0x1.5a273p-1
+-0x1.b57eb4p-21
+-0x1.c0b186p-17
+-0x1.bd6e16p-1
+-0x1.4cfdd4p-10
+0x1.aadb58p-1
+0x1.827ab4p-1
+0x1.6d4e56p-14
+0x1.667d84p-1
+0x1.67223p-1
+-0x1.35ec26p-19
+0x1.9cf328p-21
+-0x1.a60896p-1
+0x1.ad5068p-1
+-0x1.8a4422p-1
+0x1.aba154p-14
+-0x1.249862p-1
+-0x1.aa2c42p-26
+-0x1.43d972p-1
+0x1.12d69p-25
+-0x1.eec6a4p-1
+-0x1.987b44p-21
+0x1.96a646p-11
+0x1.b961f4p-3
+-0x1.51d594p-1
+-0x1.72a778p-8
+-0x1.21fcd2p-1
+-0x1.094ea2p-1
+-0x1.79ea72p-9
+0x1.c63fc4p-5
+0x1.b1c0b8p-3
+-0x1.9957f2p-19
+-0x1.ecc604p-21
+0x1.7e0bc4p-1
+0x1.4e7cd6p-22
+-0x1.6b2774p-27
+0x1.db9e08p-1
+0x1.293836p-1
+0x1.f59e84p-1
+0x1.094c26p-22
+-0x1.922cb4p-3
+0x1.8a9b48p-1
+0x1.59e184p-1
+-0x1.77eb62p-1
+0x1.63e246p-1
+-0x1.8adb68p-1
+-0x1.c34f82p-1
+0x1.83f2e6p-25
+-0x1.6b8d34p-1
+-0x1.f50ce2p-23
+0x1.ceb5a4p-19
+-0x1.3d0616p-11
+-0x1.5ff058p-1
+0x1.263f96p-25
+0x1.5d5fap-9
+-0x1.5070a4p-7
+-0x1.299708p-5
+-0x1.64f624p-3
+0x1.2bc994p-3
+-0x1.e27d94p-1
+0x1.8092d6p-21
+-0x1.9c3138p-25
+-0x1.b3e44p-11
+-0x1.fc9e46p-16
+0x1.7d4f16p-1
+0x1.d220d2p-25
+-0x1.f327d6p-9
+0x1.0fbf54p-16
+-0x1.9d4c18p-18
+-0x1.6ab736p-5
+0x1.ecff82p-1
+-0x1.102122p-1
+-0x1.44a7fp-18
+0x1.369d18p-1
+0x1.2c1ec4p-1
+0x1.b2a4a2p-1
+0x1.1aa844p-18
+-0x1.2083e2p-1
+-0x1.158976p-1
+0x1.e3c782p-1
+-0x1.e08b04p-1
+0x1.290f16p-8
+0x1.7edf22p-1
+-0x1.521242p-2
+-0x1.0307d4p-18
+-0x1.ccb366p-1
+-0x1.95aa46p-1
+0x1.83b6d2p-13
+0x1.497778p-21
+0x1.265e68p-1
+0x1.857de2p-1
+-0x1.6e69d6p-24
+0x1.d4f01p-1
+0x1.9ab284p-15
+-0x1.17d9bp-1
+0x1.75a322p-1
+0x1.53a5d4p-1
+-0x1.618cp-1
+0x1.e99bd2p-1
+-0x1.89c342p-21
+-0x1.82b124p-21
+0x1.6b0486p-1
+-0x1.425982p-1
+-0x1.ecfff8p-2
+-0x1.90eac4p-1
+-0x1.ba38b6p-6
+0x1.1ebbb6p-22
+0x1.6c2ee2p-1
+-0x1.0c2d82p-1
+-0x1.6d7264p-1
+-0x1.43fe9p-4
+0x1.46eb62p-10
+0x1.e4e264p-4
+-0x1.96ef54p-1
+0x1.47dca6p-1
+0x1.08ea66p-4
+0x1.ef8f34p-6
+0x1.5b2b84p-10
+-0x1.2762d2p-1
+0x1.508d56p-1
+-0x1.2f6166p-24
+0x1.0260d4p-11
+-0x1.0988f6p-1
+-0x1.d35698p-14
+0x1.ffaf02p-1
+0x1.0afa02p-1
+0x1.c7cbb6p-6
+-0x1.23eb62p-1
+-0x1.b87e62p-1
+0x1.1646f4p-18
+0x1.4cd3ap-1
+-0x1.5c7a86p-14
+-0x1.9457a4p-1
+0x1.a154f6p-1
+0x1.ba8ad2p-6
+0x1.af9176p-1
+-0x1.430564p-8
+0x1.a2a2d2p-1
+0x1.df4c74p-1
+-0x1.d049e6p-23
+-0x1.325e34p-1
+0x1.3da496p-27
+-0x1.88d502p-8
+0x1.f41c06p-1
+-0x1.2e7716p-16
+-0x1.ab8a56p-1
+-0x1.b5e792p-1
+-0x1.c958c2p-12
+-0x1.0a0b96p-1
+0x1.b05f46p-1
+0x1.a21664p-8
+0x1.3049c6p-27
+0x1.e5ea44p-1
+-0x1.884176p-5
+0x1.45aa62p-13
+-0x1.634bc8p-1
+0x1.b68126p-9
+-0x1.97abfp-15
+0x1.f687e6p-5
+-0x1.1040e2p-25
+-0x1.6ba8e8p-10
+0x1.16e38p-1
+0x1.df2ad2p-26
+-0x1.8e1172p-1
+-0x1.b2264p-19
+-0x1.fa5552p-13
+-0x1.e8ad88p-1
+0x1.c91492p-26
+-0x1.4ec448p-1
+0x1.5f1862p-1
+-0x1.dce0e6p-1
+0x1.fa68d2p-1
+-0x1.919486p-1
+0x1.d303d6p-1
+-0x1.afff56p-23
+0x1.28b7d4p-16
+0x1.9ca494p-1
+-0x1.542a06p-1
+-0x1.f7e794p-7
+0x1.bb029p-15
+0x1.bba002p-1
+0x1.1ada36p-1
+-0x1.896d96p-21
+-0x1.3a3014p-1
+0x1.256444p-14
+-0x1.4ef374p-4
+0x1.04dac8p-1
+0x1.d46464p-1
+0x1.9c4674p-9
+-0x1.da6bd2p-1
+-0x1.eb2076p-1
+0x1.4aeba2p-11
+0x1.af791p-6
+0x1.04ad6p-1
+0x1.eafe16p-1
+0x1.1c65e6p-1
+-0x1.4eb612p-1
+-0x1.693d86p-10
+0x1.254d74p-2
+-0x1.ff34f2p-3
-- 
2.31.1


  parent reply	other threads:[~2021-10-29 17:19 UTC|newest]

Thread overview: 47+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-22 19:04 [PATCH] Add missing math functions to benchtests Sunil K Pandey
2021-10-22 20:24 ` Noah Goldstein
2021-10-22 20:38 ` Adhemerval Zanella
2021-10-22 23:12   ` Sunil Pandey
2021-10-25 17:05   ` Joseph Myers
2021-10-27 23:04     ` [PATCH v2] benchtests: Add acosf to bench-math Sunil K Pandey
2021-10-29 13:38       ` Sunil Pandey
2021-10-29 13:51         ` H.J. Lu
2021-10-29 17:19           ` [PATCH 00/12] benchtests: Add float version of math functions " Sunil K Pandey
2021-10-29 17:19             ` [PATCH 01/12] benchtests: Add acoshf function " Sunil K Pandey
2021-11-03 17:00               ` Paul Zimmermann
2021-10-29 17:19             ` [PATCH 02/12] benchtests: Add asinf " Sunil K Pandey
2021-11-04  7:48               ` Paul Zimmermann
2021-10-29 17:19             ` [PATCH 03/12] benchtests: Add asinhf " Sunil K Pandey
2021-11-04  8:16               ` Paul Zimmermann
2021-10-29 17:19             ` [PATCH 04/12] benchtests: Add atanf " Sunil K Pandey
2021-11-04  8:03               ` Paul Zimmermann
2021-10-29 17:19             ` Sunil K Pandey [this message]
2021-11-04  8:14               ` [PATCH 05/12] benchtests: Add atanhf " Paul Zimmermann
2021-10-29 17:19             ` [PATCH 06/12] benchtests: Add cbrtf " Sunil K Pandey
2021-11-04  7:58               ` Paul Zimmermann
2021-10-29 17:19             ` [PATCH 07/12] benchtests: Add coshf " Sunil K Pandey
2021-11-03 16:43               ` Paul Zimmermann
2021-10-29 17:19             ` [PATCH 08/12] benchtests: Add erfcf " Sunil K Pandey
2021-11-04  8:11               ` Paul Zimmermann
2021-10-29 17:19             ` [PATCH 09/12] benchtests: Add erff " Sunil K Pandey
2021-11-03 17:07               ` Paul Zimmermann
2021-10-29 17:19             ` [PATCH 10/12] benchtests: Add log10f " Sunil K Pandey
2021-11-04  8:00               ` Paul Zimmermann
2021-10-29 17:19             ` [PATCH 11/12] benchtests: Add sinhf " Sunil K Pandey
2021-11-04  7:53               ` Paul Zimmermann
2021-10-29 17:19             ` [PATCH 12/12] benchtests: Add tanhf " Sunil K Pandey
2021-11-03 16:53               ` Paul Zimmermann
2021-11-01 13:31             ` [PATCH 00/12] benchtests: Add float version of math functions " Sunil Pandey
2021-11-01 13:55               ` H.J. Lu
2021-10-29 20:44           ` [PATCH 0/4] benchtests: Add atan2f, expm1f, log1pf and tanf " Sunil K Pandey
2021-10-29 20:44             ` [PATCH 1/4] benchtests: Add atan2f function " Sunil K Pandey
2021-11-03 16:22               ` Paul Zimmermann
2021-10-29 20:44             ` [PATCH 2/4] benchtests: Add expm1f " Sunil K Pandey
2021-11-03 16:33               ` Paul Zimmermann
2021-10-29 20:44             ` [PATCH 3/4] benchtests: Add log1pf " Sunil K Pandey
2021-11-03 16:17               ` Paul Zimmermann
2021-10-29 20:44             ` [PATCH 4/4] benchtests: Add tanf " Sunil K Pandey
2021-11-01 13:33             ` [PATCH 0/4] benchtests: Add atan2f, expm1f, log1pf and tanf " Sunil Pandey
2021-11-01 20:33               ` Joseph Myers
2021-11-04  8:57       ` [PATCH v2] benchtests: Add acosf " Paul Zimmermann
2021-11-05 22:20         ` Sunil Pandey

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=20211029171941.4161172-6-skpgkp2@gmail.com \
    --to=skpgkp2@gmail.com \
    --cc=libc-alpha@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).