From patchwork Fri Apr 27 17:02:37 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tulio Magno Quites Machado Filho X-Patchwork-Id: 905867 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=sourceware.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=libc-alpha-return-91886-incoming=patchwork.ozlabs.org@sourceware.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=linux.ibm.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.b="DZCPf6N9"; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 40XgHY5bRFz9s1v for ; Sat, 28 Apr 2018 03:03:21 +1000 (AEST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:date:message-id; q=dns; s= default; b=vn1g7o7dus7ZFKe9HY0yVyXTBrfuy037n2tp+1uWKZg70KXm59TgZ 8uyLBfdudXfLVR+X+UGu74MiZ+aenV6Cr9wWS7Ti+GCOE2s+kdBp6sqkF/ZviY5k etIEtDF76zvDkurbY6bK4lcn2f8k8+1COW8W/Mc3+Lj8Lplt4ffPK4= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:date:message-id; s=default; bh=GbcZjRG/b4gRBPN9BtaBgXFXAHE=; b=DZCPf6N9ki1sriNg117k5V3qfupl qf0bnvZM6mu6VE3sPdIIZmXd+tLYC+1zqifkTarxY1tZKy/UEYjBVL3LzQ7/HBiI ZSQpywWq06aljad+vlzmmGzjTE9uKeF4nWIiPD0NzBwm0hYM9TibR7kEQaCzJ3Yw x7lZcVRA4+l7T+I= Received: (qmail 27354 invoked by alias); 27 Apr 2018 17:03:09 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 27148 invoked by uid 89); 27 Apr 2018 17:03:07 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-27.6 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 spammy=Hx-languages-length:2013 X-HELO: mx0a-001b2d01.pphosted.com From: Tulio Magno Quites Machado Filho To: libc-alpha@sourceware.org Subject: [PATCH] Replace M_SUF (fabs) with M_FABS Date: Fri, 27 Apr 2018 14:02:37 -0300 X-TM-AS-GCONF: 00 x-cbid: 18042717-0040-0000-0000-000004234178 X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00008933; HX=3.00000241; KW=3.00000007; PH=3.00000004; SC=3.00000257; SDB=6.01024097; UDB=6.00522857; IPR=6.00803328; MB=3.00020809; MTD=3.00000008; XFM=3.00000015; UTC=2018-04-27 17:03:02 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18042717-0041-0000-0000-000008294394 Message-Id: <20180427170237.21539-1-tuliom@linux.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2018-04-27_05:, , signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=1 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1709140000 definitions=main-1804270163 math-type-macros.h provides the macro M_FABS in order to reference the correct fabs function for a specific type. In most of the cases, M_FABS is identical to M_SUF (fabs), but that may change in the future. 2018-04-27 Tulio Magno Quites Machado Filho * math/w_acos_template.c: Replace M_SUF (fabs) with M_FABS. * math/w_asin_template.c: Likewise. * math/w_atanh_template.c: Likewise. Signed-off-by: Tulio Magno Quites Machado Filho --- math/w_acos_template.c | 2 +- math/w_asin_template.c | 2 +- math/w_atanh_template.c | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/math/w_acos_template.c b/math/w_acos_template.c index 0861e9fbea..76537b27de 100644 --- a/math/w_acos_template.c +++ b/math/w_acos_template.c @@ -29,7 +29,7 @@ FLOAT M_DECL_FUNC (__acos) (FLOAT x) { - if (__glibc_unlikely (isgreater (M_SUF (fabs) (x), M_LIT (1.0)))) + if (__glibc_unlikely (isgreater (M_FABS (x), M_LIT (1.0)))) /* Domain error: acos(|x|>1). */ __set_errno (EDOM); return M_SUF (__ieee754_acos) (x); diff --git a/math/w_asin_template.c b/math/w_asin_template.c index a960a92e17..9487ada6ab 100644 --- a/math/w_asin_template.c +++ b/math/w_asin_template.c @@ -29,7 +29,7 @@ FLOAT M_DECL_FUNC (__asin) (FLOAT x) { - if (__glibc_unlikely (isgreater (M_SUF (fabs) (x), M_LIT (1.0)))) + if (__glibc_unlikely (isgreater (M_FABS (x), M_LIT (1.0)))) /* Domain error: asin(|x|>1). */ __set_errno (EDOM); return M_SUF (__ieee754_asin) (x); diff --git a/math/w_atanh_template.c b/math/w_atanh_template.c index d4b2838025..1e528256ff 100644 --- a/math/w_atanh_template.c +++ b/math/w_atanh_template.c @@ -29,9 +29,9 @@ FLOAT M_DECL_FUNC (__atanh) (FLOAT x) { - if (__glibc_unlikely (isgreaterequal (M_SUF (fabs) (x), M_LIT (1.0)))) + if (__glibc_unlikely (isgreaterequal (M_FABS (x), M_LIT (1.0)))) { - if (M_SUF (fabs) (x) == 1) + if (M_FABS (x) == 1) /* Pole error: atanh(|x|==1). */ __set_errno (ERANGE); else