| Message ID | 20250203212546.911043-1-adhemerval.zanella@linaro.org (mailing list archive) |
|---|---|
| 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 643833858C35 for <patchwork@sourceware.org>; Mon, 3 Feb 2025 21:27:24 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 643833858C35 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=s18A2y8e X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-pj1-x102f.google.com (mail-pj1-x102f.google.com [IPv6:2607:f8b0:4864:20::102f]) by sourceware.org (Postfix) with ESMTPS id 64C4B3858D20 for <libc-alpha@sourceware.org>; Mon, 3 Feb 2025 21:25:53 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 64C4B3858D20 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 64C4B3858D20 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::102f ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1738617953; cv=none; b=OCiUqzkZ9SqqCyh3Umevh2E1hRB+HAlWwhmHsrSw16ZzcVu7/N3Kj/kMTxoJTvFl4fDbQaaulR8jUbUvwsbRLbu70ToQl1kOpn79R2R3Rak/fsGOa/+mmIPhAM5BebOxXwrLRsDyT1TA8klGiGJilonOuVd7psrbfFIuHJ/UfeA= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1738617953; c=relaxed/simple; bh=x0Mf/OHxvntnXYWigIfo3sxugDYieIJJxuxoy7cN9ls=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=t0MUWlZ9yHvKTKdFqsYFcg9bxkfdnByxZqtbmCvY+KsF0x5C+zx/CjxHKfsVFjfKMapp3sV4bn/xiEYAPzMR3v86ZXYraMVIThk1IOXXnak064k9R/cgA4cYvGnedruq+xDBi5MyP6t4p1+MTEMN1NKlHV/3hMOX4GH+4GFedDI= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 64C4B3858D20 Received: by mail-pj1-x102f.google.com with SMTP id 98e67ed59e1d1-2ee51f8c47dso6424753a91.1 for <libc-alpha@sourceware.org>; Mon, 03 Feb 2025 13:25:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1738617952; x=1739222752; 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=bcrrfDtAuxNpr16fmOd2COz8yAVg3PRri04Nd0ZoRP8=; b=s18A2y8e+S7fKN+kA/1Hxo8zl9BP6s7XkCXvDlorWLY4mMuHOUEJrM0u3Y41st7+pS 5tUbigfMed+1bDqx09rcaLbPOhvft77q/tFjT/ETmqrqm+IyX6m7dhZ5nYFHq/uDQIFk aQiqttvsAsgYFna/HKWmM/g9rJaUPviNE3vr0tTOJ1asbT/BvhLfFZiWVZ1kaxTZD83w k2dcK197NIU82oYiLGV3qV08sR+XSrQHYJj0p7NmtcsXibOwoQyQrdq++L+cKp4RQeQX O7FYvYxPtONPP5PaVAI5DL9xRX33Ld5KfpzKj2UI8VTALFcvI1AvpqQ/6sxinH6ACMfU uDtw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1738617952; x=1739222752; 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=bcrrfDtAuxNpr16fmOd2COz8yAVg3PRri04Nd0ZoRP8=; b=w5daGNzy93XUH6/U0bhvBnlMehqCShbnJ+F27wxPLSMwIjHCwpQYLExYaGKzEtB6l+ F1Wp/2kZScH8AXovv8SV8wKFa/NoqRhlZnRP2jIwglL2gfdr6/LdOtoFz2qOg5YHRoVj M9vO7V6pTOHzPRZ7iu1aB1yE7WxTDfCs4uXSsGm/swoKER6kx49f9mEucngFaT8Qy66s Y9y1lJ3D1i/vdJqRrYvlgnNnh1VuyvHvxH1bjAaZQVLzOO7wrs7FxmIytKTqfDdEPQzR b5ovAOWjPsA8aG0gA7PsQBh8/PKPF36lmlZKjCk1VxcZRPL306tI0Fz6nsXE5n9c1NjO OpMw== X-Gm-Message-State: AOJu0Yz4O2/xMd1vL1D/omTx8x9fIE8zZvxPgsoBepVX+vGh2kwjBKVB ursoHifC+s6s2Rz1X5t/1AZvM5p7adfTU+kiihbw0oxfyPZ64N8Zl7G17KEz+tUyoQmVsTrYJvV c X-Gm-Gg: ASbGncv2j3LsRyE/H4eQnP5d/++5J50Ajvi8xU/YwUXw/LW+wzemGyd+Ajmn7ljh3Wj UcvXnyg95ZkIgV494YiEmGNhvAgXJOQ2uOF2BYwXHUaV6h4zUVEIR0b9e74teFgYk9HiDnRbupz 4rYLl7NvJ4HrU/r6RkBO85fbD94Pa3cWgAcC55KCfauV7zxHxFmsvJYGu02+kH5m1fWKEmq2pcg EYGlj9R08LKr+DdS5Tb3MF0CFPpVFYCcaHNLzbMTZtEEe6ApLrmvDV0xbYySOsmzVDhfwypQXSC 8eQEon/EWX3gC/A1TOmfySjFFzcG X-Google-Smtp-Source: AGHT+IFB0hHYy7iAb2j0L0kbycAk60Rd0Q9dMkr9ipmhS6Ig8XhhkuQ5+V////gsEkNPwP3jUf/46w== X-Received: by 2002:a05:6a00:44ca:b0:729:597:4faa with SMTP id d2e1a72fcca58-72fd0c65895mr30860121b3a.16.1738617952071; Mon, 03 Feb 2025 13:25:52 -0800 (PST) Received: from ubuntu-vm.. ([177.103.113.88]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-72fe69ba418sm9184218b3a.105.2025.02.03.13.25.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Feb 2025 13:25:51 -0800 (PST) From: Adhemerval Zanella <adhemerval.zanella@linaro.org> To: libc-alpha@sourceware.org Cc: Joseph Myers <josmyers@redhat.com>, Paul Zimmermann <Paul.Zimmermann@inria.fr>, Alexei Sibidanov <sibid@uvic.ca>, DJ Delorie <dj@redhat.com> Subject: [PATCH 0/3] Optimize CORE-MATH internal tables Date: Mon, 3 Feb 2025 18:24:16 -0300 Message-ID: <20250203212546.911043-1-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_BARRACUDACENTRAL, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.30 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> Errors-To: libc-alpha-bounces~patchwork=sourceware.org@sourceware.org |
| Series |
Optimize CORE-MATH internal tables
|
|
Message
Adhemerval Zanella Netto
Feb. 3, 2025, 9:24 p.m. UTC
Some implementation share internal table, which can be optimized to avoid duplicate data. The are small code or no changes for x86_64 and powerpc64le, which do not affect performance; but on aarch64 with gcc-14 I see a slight better code generation due the usage of ldq for floating point constant loading. Adhemerval Zanella (3): math: Consolidate acosf and asinf internal tables math: Consolidate acoshf and asinhf internal tables math: Consolidate coshf and sinhf internal tables math/Makefile | 3 + sysdeps/ieee754/flt-32/e_acosf.c | 36 ++----- sysdeps/ieee754/flt-32/e_acoshf.c | 111 ++------------------ sysdeps/ieee754/flt-32/e_asincosf_data.c | 53 ++++++++++ sysdeps/ieee754/flt-32/e_asincosf_data.h | 37 +++++++ sysdeps/ieee754/flt-32/e_asinf.c | 38 ++----- sysdeps/ieee754/flt-32/e_coshf.c | 38 ++----- sysdeps/ieee754/flt-32/e_sincoshf_data.c | 49 +++++++++ sysdeps/ieee754/flt-32/e_sincoshf_data.h | 36 +++++++ sysdeps/ieee754/flt-32/e_sinhf.c | 37 ++----- sysdeps/ieee754/flt-32/s_asincoshf_data.c | 121 ++++++++++++++++++++++ sysdeps/ieee754/flt-32/s_asincoshf_data.h | 36 +++++++ sysdeps/ieee754/flt-32/s_asinhf.c | 109 ++----------------- 13 files changed, 382 insertions(+), 322 deletions(-) create mode 100644 sysdeps/ieee754/flt-32/e_asincosf_data.c create mode 100644 sysdeps/ieee754/flt-32/e_asincosf_data.h create mode 100644 sysdeps/ieee754/flt-32/e_sincoshf_data.c create mode 100644 sysdeps/ieee754/flt-32/e_sincoshf_data.h create mode 100644 sysdeps/ieee754/flt-32/s_asincoshf_data.c create mode 100644 sysdeps/ieee754/flt-32/s_asincoshf_data.h
Comments
Dear Adhemerval, > Some implementation share internal table, which can be optimized > to avoid duplicate data. The are small code or no changes for x86_64 The are -> There are ? Paul