From patchwork Fri Oct 29 20:44:27 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sunil Pandey X-Patchwork-Id: 46809 Return-Path: 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 ; 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 ; 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: References: MIME-Version: 1.0 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Sunil K Pandey via Libc-alpha From: Sunil Pandey Reply-To: Sunil K Pandey Errors-To: libc-alpha-bounces+patchwork=sourceware.org@sourceware.org Sender: "Libc-alpha" 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