From patchwork Thu Dec 19 20:13:04 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella X-Patchwork-Id: 852048 Delivered-To: patch@linaro.org Received: by 2002:a5d:4888:0:b0:385:e875:8a9e with SMTP id g8csp1696445wrq; Thu, 19 Dec 2024 12:20:27 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWC0jgJNkkdm1KVBxH7ikQsn8EOR5u7g9f7gOW0h0hO7FoZzU3NJ0BSfXE37PeznijxrZElBw==@linaro.org X-Google-Smtp-Source: AGHT+IHGve0zp4Ob5lHiEZLhdr6Pchl3FOypZ6umQKRSnZf72Kjlh8UMBRS4eSS8egCXkZcCDcAH X-Received: by 2002:a05:620a:4452:b0:7b1:48ff:6b62 with SMTP id af79cd13be357-7b9ba738951mr41592585a.16.1734639627596; Thu, 19 Dec 2024 12:20:27 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1734639627; cv=pass; d=google.com; s=arc-20240605; b=DdmtrmIFepEmh6j8tuepe5VqMl45uMbXjlfE4h77eyix6aMml79FMxf3pQQlxnogl4 7dTMM5P0kEhBjoGXx3NLdNWJ5v8EK5w1euukdsUi9i2xHEWdhWc0bDONl/jh9DxPKjBL xkeNRfnMJ4XFHPYIglh9PHxu1sLvwmu5SXksZv4kchx4si0Llsvt9wLurvVkgNKBGFeF jWUcAjZmYohGScYuJWFBJYrz44xGpkoDaoGUBXYvbQxK2mZJSbFoFSGoVMAPd0PUazDh LCD2PmDkDI4bvpN0tojZbsCHWhdNLRWS7pCXhYR28edH8iuvSIEmQNoZfgnwH8Jl14vs q7Rg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature :dkim-filter:arc-filter:dmarc-filter:delivered-to; bh=1gzmp8JsiK0qK4PzfBJAxoj6yVhilakp/w+j8ySa5wQ=; fh=c0s3Uezv7Rag51rMi6q2BcriyJCPC/LMNTAVHmiKG0w=; b=R8fVtwOvgF++CjpE+KjX0HgdqDh0GP06IIhyfUl47tv26l9F5B7NP1iGFsHUH1X1Hx juzz+07lFgA3e6joVLHRr5AF5EM+dKujfr3lu04aI5yN2sJoqWe2KrwyXxt4ovlEN+bA 0XxyVn5ytn/Ce7SiwV4UKTo3nwBWexpRenLiB8mG269Y4mwMhRf/Ig1RCG2eTVcnW40D lobX7XmFtE3gIDkANoth32vUwC4l7r+cXnnGnRfibh/gY3o9/OlWwsY3/tZROp4pznql h8/qJQLSjPmSJ/avZbfdIEJMYqltx/dnXhsA8FVwJx3FX5imif50BLrW4ZKJ/U5nCL9s 4m5w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="lu2Qk//a"; arc=pass (i=1); spf=pass (google.com: domain of libc-alpha-bounces~patch=linaro.org@sourceware.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="libc-alpha-bounces~patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from server2.sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id af79cd13be357-7b9ac478667si225938085a.252.2024.12.19.12.20.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Dec 2024 12:20:27 -0800 (PST) Received-SPF: pass (google.com: domain of libc-alpha-bounces~patch=linaro.org@sourceware.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="lu2Qk//a"; arc=pass (i=1); spf=pass (google.com: domain of libc-alpha-bounces~patch=linaro.org@sourceware.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="libc-alpha-bounces~patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 3A1943858C31 for ; Thu, 19 Dec 2024 20:20:27 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-pl1-x62f.google.com (mail-pl1-x62f.google.com [IPv6:2607:f8b0:4864:20::62f]) by sourceware.org (Postfix) with ESMTPS id F29193858D20 for ; Thu, 19 Dec 2024 20:20:08 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org F29193858D20 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=linaro.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org F29193858D20 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::62f ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1734639609; cv=none; b=e+6HrNv2AUSaY8UWOZ1Sq/mHrdk1Hme1IqReNici61eH/gjSErogZ6poF7RAv2H+NRfs2QJdUQ7U3qmKgF2NL7WljE72vzsdf72CgOVcEcPALpR5gWhuD2EUSrQy304j8OQq/iBAqQWdhmXeoZOjbR07064zJBDReEkJblVahIM= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1734639609; c=relaxed/simple; bh=OOIzchq8b4tAGmq9jsbYpsox4dyBv8H0NJGGhPCGeO8=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=NlPR+l3x4krhbupp0vACusfude86QEal2hRR3vzYsofwdgEv1ehtm9WBECBuuuvJUQ5Gk7r27rBLUYTUUxZDAPmhBr3zuGZuZEdNd1K+xicjFRoztuaL1Itk6RsMVMpR8TdkjeaijmgMX/HoBvrVHbndOilbayGUoTonKtEvABM= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org F29193858D20 Authentication-Results: sourceware.org; dkim=pass (2048-bit key, unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=lu2Qk//a Received: by mail-pl1-x62f.google.com with SMTP id d9443c01a7336-2164b1f05caso11743855ad.3 for ; Thu, 19 Dec 2024 12:20:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734639607; x=1735244407; darn=sourceware.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=1gzmp8JsiK0qK4PzfBJAxoj6yVhilakp/w+j8ySa5wQ=; b=lu2Qk//aaum1QAWIUMwBO0Z+TjPFd35kx650sk2Pld14Lf8FfXAS8VT/Ao1BHbDWIx hRlSGT9+eT3XefkdGgMglc1gPTX9AhLy5RVUldQ3AYeBroko2sBdtFlpXqcaTHpI7rbV yCIElyLssTHhBK4stvyT7XuqopBDD0eGuFdKLC6WRM4PEKPRrSgx1+3XbDeVSeH0mlum u7TPx00r2gnKbtPN2QrvwTAWTQhpnqEY+3NIPgWk1AlaTJzk2+6YapbOGjXlrDZU84/z Tn0SZotMybd3v5UsrG4GVI46y5T+gNIYnHMlkTYoIg9XZzPRu4pBAvVVVdHaa83uw2+8 SSAQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734639607; x=1735244407; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=1gzmp8JsiK0qK4PzfBJAxoj6yVhilakp/w+j8ySa5wQ=; b=ShOIb2IUflV2oY7YLjhmtZlcq/CU/dpxx0C1e8WR0fXDr+kKfOOCxLJKiaZFbDkv4Z S09WwEK4QK1ifk7i3rgM4BK3wQbbJ7hCZApHMZ0Y4k8LQH3IBa7y3njash1++mbbIpCy puo02wY1hDAIqNX26RSKOGfh1/zjnyAktRZOCfYbRVfR1vRIDkBGnZKhXcuJB1vcRn5H 2LEV6Ng7n0ytrKN3BuZ2ama9PePnNPqwJxVINt3CzUR7kDU1bNhhtlnDoEIfKAEPAf7X eZP77/2P5tSJerffBxTXoCgh49iRGP1CvMfQyGfxppP5r0ZBZufTaL7X2gj97Wrh99C4 otWw== X-Gm-Message-State: AOJu0YyA5w4nlcMkVH31t1dar8rXg2Hef3x6F3zXCpHiHdF3pUejbJMi QV10jlye7ezGJZ5zw4ag/RdqB+FhKAQUepmj1o6BLiaHB3DodOSMIkHq6PScoO6Cgut9Yt8c2HZ 2 X-Gm-Gg: ASbGncsLgTDuaQosDEC15VYFPmHKrQrdf5FTJcSxVQ8QYmLvO7zs4om8PIbYE+qW8eI LTDCfNK5M28D4+TlQJXhVvw69O07qvx9e9Y4jYn6+uYIZ5bHW99VkiFLt8zZx6phJUEJUvw5Iv8 /Gnlo/M4u547jm2AJx54qk7EhignyOO6oQkncEUcGKHVGm+4jlOU15qhvXnWAfACmv1S4WAcdDd R9vaBFnvAbJtlQ1c/sYRloePqeYSqort02cVIeLmqIt+HE88wMB6HS7jEJAbTJLpsTOMQ== X-Received: by 2002:a17:902:e806:b0:216:410d:4c53 with SMTP id d9443c01a7336-219e6f12d6emr858155ad.41.1734639607458; Thu, 19 Dec 2024 12:20:07 -0800 (PST) Received: from mandiga.. ([2804:1b3:a7c3:2d5b:c4ce:4df0:8543:f129]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-219dca02589sm16360645ad.257.2024.12.19.12.20.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Dec 2024 12:20:07 -0800 (PST) From: Adhemerval Zanella To: libc-alpha@sourceware.org Cc: DJ Delorie , Joseph Myers , Paul Zimmermann Subject: [PATCH 00/10] Remove the SVID wrapper from CORE-MATH functions. Date: Thu, 19 Dec 2024 17:13:04 -0300 Message-ID: <20241219202003.2651277-1-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libc-alpha-bounces~patch=linaro.org@sourceware.org It only adds performance overhead for the optimized implementations. As from previous similar work, it requires new symbol versions. Adhemerval Zanella (10): benchtests: Add lgammaf_r benchmark math: Remove the error handling wrapper from log10f math: Remove the error handling wrapper from lgammaf/lgammaf_r math: Remove the error handling wrapper from acosf math: Remove the error handling wrapper from asinf math: Remove the error handling wrapper from acoshf math: Remove the error handling wrapper from atan2f math: Remove the error handling wrapper from atanhf math: Remove the error handling wrapper from coshf math: Remove the error handling wrapper from sinhf benchtests/Makefile | 1 + benchtests/lgammaf_r-inputs | 1005 +++++++++++++++++ math/Versions | 10 + math/lgamma-compat.h | 15 +- math/w_acosf.c | 8 + math/w_acosf_compat.c | 10 +- math/w_acoshf.c | 8 + math/w_acoshf_compat.c | 6 +- math/w_asinf.c | 8 + math/w_asinf_compat.c | 10 +- math/w_atan2f.c | 8 + math/w_atan2f_compat.c | 11 +- math/w_atanhf.c | 8 + math/w_atanhf_compat.c | 11 +- math/w_coshf.c | 8 + math/w_coshf_compat.c | 12 +- math/w_lgammaf_compat2.c | 2 +- math/w_lgammaf_main.c | 7 +- math/w_log10f.c | 8 + math/w_log10f_compat.c | 10 +- math/w_sinhf.c | 8 + math/w_sinhf_compat.c | 11 +- sysdeps/ieee754/flt-32/e_acosf.c | 11 +- sysdeps/ieee754/flt-32/e_acoshf.c | 11 +- sysdeps/ieee754/flt-32/e_asinf.c | 11 +- sysdeps/ieee754/flt-32/e_atan2f.c | 19 +- sysdeps/ieee754/flt-32/e_atanhf.c | 11 +- sysdeps/ieee754/flt-32/e_coshf.c | 11 +- sysdeps/ieee754/flt-32/e_lgammaf_r.c | 12 +- sysdeps/ieee754/flt-32/e_log10f.c | 11 +- sysdeps/ieee754/flt-32/e_sinhf.c | 13 +- sysdeps/ieee754/flt-32/w_acosf.c | 1 + sysdeps/ieee754/flt-32/w_acoshf.c | 1 + sysdeps/ieee754/flt-32/w_asinf.c | 1 + sysdeps/ieee754/flt-32/w_atan2f.c | 1 + sysdeps/ieee754/flt-32/w_atanhf.c | 1 + sysdeps/ieee754/flt-32/w_coshf.c | 1 + sysdeps/ieee754/flt-32/w_lgammaf.c | 17 + sysdeps/ieee754/flt-32/w_log10f.c | 1 + sysdeps/ieee754/flt-32/w_sinhf.c | 1 + sysdeps/m68k/m680x0/fpu/w_acosf_compat.c | 8 + sysdeps/m68k/m680x0/fpu/w_asinf_compat.c | 8 + sysdeps/m68k/m680x0/fpu/w_atan2f_compat.c | 8 + sysdeps/m68k/m680x0/fpu/w_atanhf_compat.c | 8 + sysdeps/m68k/m680x0/fpu/w_coshf_compat.c | 8 + sysdeps/m68k/m680x0/fpu/w_log10f_compat.c | 8 + sysdeps/m68k/m680x0/fpu/w_sinhf_compat.c | 8 + sysdeps/mach/hurd/i386/libm.abilist | 10 + sysdeps/unix/sysv/linux/aarch64/libm.abilist | 10 + sysdeps/unix/sysv/linux/alpha/libm.abilist | 10 + sysdeps/unix/sysv/linux/arm/be/libm.abilist | 10 + sysdeps/unix/sysv/linux/arm/le/libm.abilist | 10 + sysdeps/unix/sysv/linux/hppa/libm.abilist | 10 + sysdeps/unix/sysv/linux/i386/libm.abilist | 10 + .../sysv/linux/m68k/coldfire/libm.abilist | 10 + .../unix/sysv/linux/m68k/m680x0/libm.abilist | 3 + .../sysv/linux/microblaze/be/libm.abilist | 10 + .../sysv/linux/microblaze/le/libm.abilist | 10 + .../unix/sysv/linux/mips/mips32/libm.abilist | 10 + .../unix/sysv/linux/mips/mips64/libm.abilist | 10 + .../linux/powerpc/powerpc32/fpu/libm.abilist | 10 + .../powerpc/powerpc32/nofpu/libm.abilist | 10 + .../linux/powerpc/powerpc64/be/libm.abilist | 10 + .../linux/powerpc/powerpc64/le/libm.abilist | 10 + .../unix/sysv/linux/s390/s390-32/libm.abilist | 10 + .../unix/sysv/linux/s390/s390-64/libm.abilist | 10 + sysdeps/unix/sysv/linux/sh/be/libm.abilist | 10 + sysdeps/unix/sysv/linux/sh/le/libm.abilist | 10 + .../sysv/linux/sparc/sparc32/libm.abilist | 10 + .../sysv/linux/sparc/sparc64/libm.abilist | 10 + .../unix/sysv/linux/x86_64/64/libm.abilist | 10 + .../unix/sysv/linux/x86_64/x32/libm.abilist | 10 + 72 files changed, 1573 insertions(+), 46 deletions(-) create mode 100644 benchtests/lgammaf_r-inputs create mode 100644 math/w_acosf.c create mode 100644 math/w_acoshf.c create mode 100644 math/w_asinf.c create mode 100644 math/w_atan2f.c create mode 100644 math/w_atanhf.c create mode 100644 math/w_coshf.c create mode 100644 math/w_log10f.c create mode 100644 math/w_sinhf.c create mode 100644 sysdeps/ieee754/flt-32/w_acosf.c create mode 100644 sysdeps/ieee754/flt-32/w_acoshf.c create mode 100644 sysdeps/ieee754/flt-32/w_asinf.c create mode 100644 sysdeps/ieee754/flt-32/w_atan2f.c create mode 100644 sysdeps/ieee754/flt-32/w_atanhf.c create mode 100644 sysdeps/ieee754/flt-32/w_coshf.c create mode 100644 sysdeps/ieee754/flt-32/w_lgammaf.c create mode 100644 sysdeps/ieee754/flt-32/w_log10f.c create mode 100644 sysdeps/ieee754/flt-32/w_sinhf.c create mode 100644 sysdeps/m68k/m680x0/fpu/w_acosf_compat.c create mode 100644 sysdeps/m68k/m680x0/fpu/w_asinf_compat.c create mode 100644 sysdeps/m68k/m680x0/fpu/w_atan2f_compat.c create mode 100644 sysdeps/m68k/m680x0/fpu/w_atanhf_compat.c create mode 100644 sysdeps/m68k/m680x0/fpu/w_coshf_compat.c create mode 100644 sysdeps/m68k/m680x0/fpu/w_log10f_compat.c create mode 100644 sysdeps/m68k/m680x0/fpu/w_sinhf_compat.c