From patchwork Mon Apr 4 19:30:08 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella Netto X-Patchwork-Id: 52625 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 B0D07385843E for ; Mon, 4 Apr 2022 19:30:41 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B0D07385843E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1649100641; bh=UUrAbt1rzinY3jzgcfBXQg8s36gmzAvB3Tgm10QcnAY=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=dbhjFOD7o6RdHnRRNPWKDehRR3FlcoJ+0CWnciG94clpb5FHgbBk9DTJUfaOt3B3l niy0irrvx/1cXjMYHi7ecyanI0l7l1MrjPZT+ZRI4LBbWyV11IkNMOMEPGhWM7wlWj gITOizpPSP0WvvWD7juSU8Znpe5yBox8QL5JErt0= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-oa1-x2b.google.com (mail-oa1-x2b.google.com [IPv6:2001:4860:4864:20::2b]) by sourceware.org (Postfix) with ESMTPS id B93923858D37 for ; Mon, 4 Apr 2022 19:30:20 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org B93923858D37 Received: by mail-oa1-x2b.google.com with SMTP id 586e51a60fabf-ddfa38f1c1so11894608fac.11 for ; Mon, 04 Apr 2022 12:30:20 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=UUrAbt1rzinY3jzgcfBXQg8s36gmzAvB3Tgm10QcnAY=; b=TW3Gga16X9UZWIaUUew0gmEpkTrLualdxqk1b6ycO30EKIsL/CcAVpd7BWiHlCIcvJ 78eoKcfaOSKmzObd3qnOrwmQldlkCt6lyp9qmVqtFJo/TPraCiQR0SyBUYbZEE7JlLvm t/A6w3uG0hMt+wq47xxPRcTRKHhEtljKU1YALD1P9ejchYCmNOs4cWkuqAuXhkqIgJ5X 5erf0VVJxyf7S5RO5lThT2vIijdO370jSnlcSh07zg5GWpc1D9aTs4HKVwgN749K9VYF GoDuOKFYyEeJLGllyDSdc63r6klNexK3PdVIPPaUenMTOCh1ey929kwBblgPXcu6kOkd bSLQ== X-Gm-Message-State: AOAM531Y5MXWxbMDDeZgLxLNQZfXtQAlowEYZtXHx8YQqevMKL2gsBqv 6dyeTV4C/5veCzSn00bQlvtLpFEXmDHj/g== X-Google-Smtp-Source: ABdhPJzc6LS39by4B999cVoE8tM9VFB64330jpRb7cG+EGTa+pG8BOkRinaF/r1LTdLZ0e4h/we1zQ== X-Received: by 2002:a05:6870:4254:b0:e1:f1e2:68d8 with SMTP id v20-20020a056870425400b000e1f1e268d8mr439343oac.116.1649100619588; Mon, 04 Apr 2022 12:30:19 -0700 (PDT) Received: from birita.. ([2804:431:c7cb:a6c0:94cf:60bc:16d1:2727]) by smtp.gmail.com with ESMTPSA id 1-20020a05687011c100b000de98359b43sm4678677oav.1.2022.04.04.12.30.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Apr 2022 12:30:19 -0700 (PDT) To: libc-alpha@sourceware.org Subject: [PATCH] x86: Remove fabs{f} implementation Date: Mon, 4 Apr 2022 16:30:08 -0300 Message-Id: <20220404193008.2808643-1-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 X-Spam-Status: No, score=-12.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_SHORT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham 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: Adhemerval Zanella via Libc-alpha From: Adhemerval Zanella Netto Reply-To: Adhemerval Zanella Errors-To: libc-alpha-bounces+patchwork=sourceware.org@sourceware.org Sender: "Libc-alpha" For x86_64 is the same as the generic implementation, while for i686 the builtin generates the same code. --- sysdeps/i386/fpu/s_fabs.S | 10 ---------- sysdeps/i386/fpu/s_fabsf.S | 10 ---------- sysdeps/x86_64/fpu/s_fabs.c | 27 --------------------------- sysdeps/x86_64/fpu/s_fabsf.c | 27 --------------------------- 4 files changed, 74 deletions(-) delete mode 100644 sysdeps/i386/fpu/s_fabs.S delete mode 100644 sysdeps/i386/fpu/s_fabsf.S delete mode 100644 sysdeps/x86_64/fpu/s_fabs.c delete mode 100644 sysdeps/x86_64/fpu/s_fabsf.c diff --git a/sysdeps/i386/fpu/s_fabs.S b/sysdeps/i386/fpu/s_fabs.S deleted file mode 100644 index c623eb526c..0000000000 --- a/sysdeps/i386/fpu/s_fabs.S +++ /dev/null @@ -1,10 +0,0 @@ -#include -#include - - .text -ENTRY(__fabs) - fldl 4(%esp) - fabs - ret -END(__fabs) -libm_alias_double (__fabs, fabs) diff --git a/sysdeps/i386/fpu/s_fabsf.S b/sysdeps/i386/fpu/s_fabsf.S deleted file mode 100644 index 3185946ec1..0000000000 --- a/sysdeps/i386/fpu/s_fabsf.S +++ /dev/null @@ -1,10 +0,0 @@ -#include -#include - - .text -ENTRY(__fabsf) - flds 4(%esp) - fabs - ret -END(__fabsf) -libm_alias_float (__fabs, fabs) diff --git a/sysdeps/x86_64/fpu/s_fabs.c b/sysdeps/x86_64/fpu/s_fabs.c deleted file mode 100644 index 6e716a23f9..0000000000 --- a/sysdeps/x86_64/fpu/s_fabs.c +++ /dev/null @@ -1,27 +0,0 @@ -/* Absolute value of floating point number. - Copyright (C) 2002-2022 Free Software Foundation, Inc. - This file is part of the GNU C Library. - - The GNU C Library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - The GNU C Library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with the GNU C Library; if not, see - . */ - -#include -#include - -double -__fabs (double x) -{ - return __builtin_fabs (x); -} -libm_alias_double (__fabs, fabs) diff --git a/sysdeps/x86_64/fpu/s_fabsf.c b/sysdeps/x86_64/fpu/s_fabsf.c deleted file mode 100644 index 501bc87d3c..0000000000 --- a/sysdeps/x86_64/fpu/s_fabsf.c +++ /dev/null @@ -1,27 +0,0 @@ -/* Absolute value of floating point number. - Copyright (C) 2002-2022 Free Software Foundation, Inc. - This file is part of the GNU C Library. - - The GNU C Library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - The GNU C Library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with the GNU C Library; if not, see - . */ - -#include -#include - -float -__fabsf (float x) -{ - return __builtin_fabsf (x); -} -libm_alias_float (__fabs, fabs)