From patchwork Fri Oct 29 17:19:29 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sunil Pandey X-Patchwork-Id: 1548123 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.a=rsa-sha256 header.s=default header.b=HUjLVVex; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=sourceware.org (client-ip=8.43.85.97; helo=sourceware.org; envelope-from=libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org; receiver=) Received: from sourceware.org (ip-8-43-85-97.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4Hgq1Y3VHlz9sRK for ; Sat, 30 Oct 2021 04:20:01 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 099A8385781C for ; Fri, 29 Oct 2021 17:19:59 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 099A8385781C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1635527999; bh=75emh0z5W2FUk4EfRAN132wRahosGp5KygP/TsNs8KQ=; 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=HUjLVVexQEq+y9vgrEEtVWzySNmXgoD7D557/VNN9slsDzubXeDD+17Phs9Ll+bqa N+KktRhlQyzH4mX6MdzvV2rXkFPrAyU731ny70/cWDP47YOCf29vEWi3/npezF1Ty7 gBuH8o/z0CexOP0pJgYCp4AtauzUDldm3n6G6Huc= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by sourceware.org (Postfix) with ESMTPS id BBE053858439 for ; Fri, 29 Oct 2021 17:19:43 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org BBE053858439 X-IronPort-AV: E=McAfee;i="6200,9189,10152"; a="230570595" X-IronPort-AV: E=Sophos;i="5.87,193,1631602800"; d="scan'208";a="230570595" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Oct 2021 10:19:42 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.87,193,1631602800"; d="scan'208";a="448183971" Received: from scymds01.sc.intel.com ([10.148.94.138]) by orsmga006.jf.intel.com with ESMTP; 29 Oct 2021 10:19:42 -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 19THJfMH021212; Fri, 29 Oct 2021 10:19:42 -0700 To: libc-alpha@sourceware.org Subject: [PATCH 00/12] benchtests: Add float version of math functions to bench-math Date: Fri, 29 Oct 2021 10:19:29 -0700 Message-Id: <20211029171941.4161172-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.5 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, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, 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+incoming=patchwork.ozlabs.org@sourceware.org Sender: "Libc-alpha" Add float version of math functions to bench-math and copy input files to benchtests. Motivation for this patch is to prepare for upcoming libmvec new functions. Float and double version of libmvec functions stays together. Float input files 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 (12): benchtests: Add acoshf function to bench-math benchtests: Add asinf function to bench-math benchtests: Add asinhf function to bench-math benchtests: Add atanf function to bench-math benchtests: Add atanhf function to bench-math benchtests: Add cbrtf function to bench-math benchtests: Add coshf function to bench-math benchtests: Add erfcf function to bench-math benchtests: Add erff function to bench-math benchtests: Add log10f function to bench-math benchtests: Add sinhf function to bench-math benchtests: Add tanhf function to bench-math benchtests/Makefile | 12 + benchtests/acoshf-inputs | 303 +++++ benchtests/asinf-inputs | 2508 ++++++++++++++++++++++++++++++++++++++ benchtests/asinhf-inputs | 303 +++++ benchtests/atanf-inputs | 806 ++++++++++++ benchtests/atanhf-inputs | 203 +++ benchtests/cbrtf-inputs | 1004 +++++++++++++++ benchtests/coshf-inputs | 403 ++++++ benchtests/erfcf-inputs | 795 ++++++++++++ benchtests/erff-inputs | 794 ++++++++++++ benchtests/log10f-inputs | 1004 +++++++++++++++ benchtests/sinhf-inputs | 303 +++++ benchtests/tanhf-inputs | 203 +++ 13 files changed, 8641 insertions(+) create mode 100644 benchtests/acoshf-inputs create mode 100644 benchtests/asinf-inputs create mode 100644 benchtests/asinhf-inputs create mode 100644 benchtests/atanf-inputs create mode 100644 benchtests/atanhf-inputs create mode 100644 benchtests/cbrtf-inputs create mode 100644 benchtests/coshf-inputs create mode 100644 benchtests/erfcf-inputs create mode 100644 benchtests/erff-inputs create mode 100644 benchtests/log10f-inputs create mode 100644 benchtests/sinhf-inputs create mode 100644 benchtests/tanhf-inputs