Message ID | 20211029204431.61718-1-skpgkp2@gmail.com |
---|---|
Headers |
Return-Path: <libc-alpha-bounces+patchwork=sourceware.org@sourceware.org> X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id A9B823857C47 for <patchwork@sourceware.org>; Fri, 29 Oct 2021 20:44:54 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A9B823857C47 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1635540294; bh=ak0bOyUxiegmEHLrHlVCjPCQwraAk51JZXEkNMX6fB8=; h=To:Subject:Date:In-Reply-To:References:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=F0zEygSeqnFTasXQYGXZB8+2mvQfevVWu3unKiDdrg+ZObm5ohLVWCnfXhnC2ZCpP /hq9fYSAL9jiqOsVo6rr6WWkFyh4pDPSXMSHmbZ1uSug+GHUrRpLgOv+UETyEHf443 uh4DNazfyEwiTZX1e2aCeDNbDl3WLL+/75zQdR4M= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by sourceware.org (Postfix) with ESMTPS id 3C3DF3858423 for <libc-alpha@sourceware.org>; Fri, 29 Oct 2021 20:44:33 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 3C3DF3858423 X-IronPort-AV: E=McAfee;i="6200,9189,10152"; a="231013304" X-IronPort-AV: E=Sophos;i="5.87,193,1631602800"; d="scan'208";a="231013304" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Oct 2021 13:44:31 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.87,193,1631602800"; d="scan'208";a="495842650" Received: from scymds01.sc.intel.com ([10.148.94.138]) by fmsmga007.fm.intel.com with ESMTP; 29 Oct 2021 13:44:31 -0700 Received: from gskx-1.sc.intel.com (gskx-1.sc.intel.com [172.25.149.211]) by scymds01.sc.intel.com with ESMTP id 19TKiV7T010259; Fri, 29 Oct 2021 13:44:31 -0700 To: libc-alpha@sourceware.org Subject: [PATCH 0/4] benchtests: Add atan2f, expm1f, log1pf and tanf to bench-math Date: Fri, 29 Oct 2021 13:44:27 -0700 Message-Id: <20211029204431.61718-1-skpgkp2@gmail.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <CAMe9rOra4Gb4tW=178Y9JxCBVJmUY7veUVNMe+TCm-_Nmjp1CQ@mail.gmail.com> References: <CAMe9rOra4Gb4tW=178Y9JxCBVJmUY7veUVNMe+TCm-_Nmjp1CQ@mail.gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.4 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, FORGED_GMAIL_RCVD, FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM, HK_RANDOM_ENVFROM, HK_RANDOM_FROM, KAM_DMARC_NONE, KAM_DMARC_STATUS, NML_ADSP_CUSTOM_MED, SPF_HELO_NONE, SPF_SOFTFAIL, TXREP autolearn=no autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list <libc-alpha.sourceware.org> List-Unsubscribe: <https://sourceware.org/mailman/options/libc-alpha>, <mailto:libc-alpha-request@sourceware.org?subject=unsubscribe> List-Archive: <https://sourceware.org/pipermail/libc-alpha/> List-Post: <mailto:libc-alpha@sourceware.org> List-Help: <mailto:libc-alpha-request@sourceware.org?subject=help> List-Subscribe: <https://sourceware.org/mailman/listinfo/libc-alpha>, <mailto:libc-alpha-request@sourceware.org?subject=subscribe> From: Sunil K Pandey via Libc-alpha <libc-alpha@sourceware.org> Reply-To: Sunil K Pandey <skpgkp2@gmail.com> Errors-To: libc-alpha-bounces+patchwork=sourceware.org@sourceware.org Sender: "Libc-alpha" <libc-alpha-bounces+patchwork=sourceware.org@sourceware.org> |
Series |
benchtests: Add atan2f, expm1f, log1pf and tanf to bench-math
|
|
Message
Sunil Pandey
Oct. 29, 2021, 8:44 p.m. UTC
Motivation for this patch is to prepare for upcoming libmvec new functions. Float and double version of libmvec functions stays together. I understand double version of input files are not correct as Joseph mentioned in this thread. https://sourceware.org/pipermail/libc-alpha/2021-October/132294.html Float version of input file needed for libmvec and I will rerun conversion program once double input file get fixed for these functions. Float input files of these function generated from existing double input files 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. Sunil K Pandey (4): benchtests: Add atan2f function to bench-math benchtests: Add expm1f function to bench-math benchtests: Add log1pf function to bench-math benchtests: Add tanf function to bench-math benchtests/Makefile | 4 + benchtests/atan2f-inputs | 1005 +++++++++++ benchtests/expm1f-inputs | 798 +++++++++ benchtests/log1pf-inputs | 1004 +++++++++++ benchtests/tanf-inputs | 3449 ++++++++++++++++++++++++++++++++++++++ 5 files changed, 6260 insertions(+) create mode 100644 benchtests/atan2f-inputs create mode 100644 benchtests/expm1f-inputs create mode 100644 benchtests/log1pf-inputs create mode 100644 benchtests/tanf-inputs
Comments
Ok for trunk? On Fri, Oct 29, 2021 at 1:45 PM Sunil K Pandey via Libc-alpha < libc-alpha@sourceware.org> wrote: > Motivation for this patch is to prepare for upcoming libmvec new > functions. Float and double version of libmvec functions stays > together. > > I understand double version of input files are not correct as Joseph > mentioned in this thread. > > https://sourceware.org/pipermail/libc-alpha/2021-October/132294.html > > Float version of input file needed for libmvec and I will rerun > conversion program once double input file get fixed for these > functions. > > Float input files of these function generated from existing double > input files 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. > > > Sunil K Pandey (4): > benchtests: Add atan2f function to bench-math > benchtests: Add expm1f function to bench-math > benchtests: Add log1pf function to bench-math > benchtests: Add tanf function to bench-math > > benchtests/Makefile | 4 + > benchtests/atan2f-inputs | 1005 +++++++++++ > benchtests/expm1f-inputs | 798 +++++++++ > benchtests/log1pf-inputs | 1004 +++++++++++ > benchtests/tanf-inputs | 3449 ++++++++++++++++++++++++++++++++++++++ > 5 files changed, 6260 insertions(+) > create mode 100644 benchtests/atan2f-inputs > create mode 100644 benchtests/expm1f-inputs > create mode 100644 benchtests/log1pf-inputs > create mode 100644 benchtests/tanf-inputs > > -- > 2.31.1 > >
On Mon, 1 Nov 2021, Sunil Pandey via Libc-alpha wrote:
> Ok for trunk?
No. I have a sustained objection to adding such benchmark inputs where
there are clear reasons to consider them very unrepresentative of likely
uses of these functions.