From patchwork Fri Apr 27 17:16:18 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: 905877 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-91889-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="hEg9NuGI"; 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 40Xgb56NbCz9s1P for ; Sat, 28 Apr 2018 03:16:49 +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=Bw+Uff7cXI1cqNbuHDzos4IVl15VxQ5CK4D7zr4mlb6bh+FNe/J/q vKRCJP/GOD8NPmo55tRx6zTdxTjFoIWy9MEakE5IdcX+MhMXZX4EG5jEGhzcB9TZ 9DR8WJCB3z7GI9SCaEZPuVx3pNWSUhvFjLPr8owck23X0aywJ7ZedI= 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=w/+erwxGXoOoJPwj9WGL/7BG0FA=; b=hEg9NuGI8HiH1VTg+ny3qMTZvQ3i XgNNSysArcubMSht13sK+c/wtZBv3BPEGgpRA363hby6HyLwbYiLFRc4AhoEQPvv hqkaGGRaI32RXeYZ755j7Ras+rABQzVg2okBg+NCWKpQLVGGNhoBb+fSUsH76rSd TO7v1FRb8Tq/EJU= Received: (qmail 64629 invoked by alias); 27 Apr 2018 17:16:43 -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 64617 invoked by uid 89); 27 Apr 2018 17:16:43 -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=netbsd, sk:declare X-HELO: mx0a-001b2d01.pphosted.com From: Tulio Magno Quites Machado Filho To: libc-alpha@sourceware.org Subject: [PATCH] Replace hidden_def with libm_hidden_def in math Date: Fri, 27 Apr 2018 14:16:18 -0300 X-TM-AS-GCONF: 00 x-cbid: 18042717-0012-0000-0000-0000161ED242 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.01024102; UDB=6.00522860; IPR=6.00803332; MB=3.00020809; MTD=3.00000008; XFM=3.00000015; UTC=2018-04-27 17:16:38 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18042717-0013-0000-0000-0000527B950B Message-Id: <20180427171618.30576-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-1804270165 libm_hidden_def expand the parameters and do not require an extra layer of macros. These were the last 3 files in math/ still using hidden_def(). 2018-04-27 Tulio Magno Quites Machado Filho * math/w_exp_compat.c: Replace hidden_def with libm_hidden_def.. * math/w_expl_compat.c: Likewise. * math/w_exp_template.c: Likewise. Remove hidden_def_x. Signed-off-by: Tulio Magno Quites Machado Filho --- math/w_exp_compat.c | 2 +- math/w_exp_template.c | 5 +---- math/w_expl_compat.c | 3 ++- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/math/w_exp_compat.c b/math/w_exp_compat.c index 5b0f3ad50a..ccda100075 100644 --- a/math/w_exp_compat.c +++ b/math/w_exp_compat.c @@ -33,6 +33,6 @@ __exp (double x) return z; } -hidden_def (__exp) +libm_hidden_def (__exp) libm_alias_double (__exp, exp) #endif diff --git a/math/w_exp_template.c b/math/w_exp_template.c index 49a3e8f2a1..b24e4056a6 100644 --- a/math/w_exp_template.c +++ b/math/w_exp_template.c @@ -26,9 +26,6 @@ # include # include -/* Provide an additional macro expansion for hidden_def. */ -#define hidden_def_x(name) hidden_def (name) - FLOAT M_DECL_FUNC (__exp) (FLOAT x) { @@ -38,7 +35,7 @@ M_DECL_FUNC (__exp) (FLOAT x) __set_errno (ERANGE); return z; } -hidden_def_x (M_SUF (__exp)) +libm_hidden_def (M_SUF (__exp)) declare_mgen_alias (__exp, exp) #endif /* __USE_WRAPPER_TEMPLATE. */ diff --git a/math/w_expl_compat.c b/math/w_expl_compat.c index dda930405e..4e80ce82e3 100644 --- a/math/w_expl_compat.c +++ b/math/w_expl_compat.c @@ -22,6 +22,7 @@ static char rcsid[] = "$NetBSD: $"; * wrapper expl(x) */ +#include #include #include #include @@ -41,6 +42,6 @@ long double __expl(long double x) /* wrapper exp */ return z; # endif } -hidden_def (__expl) +libm_hidden_def (__expl) libm_alias_ldouble (__exp, exp) #endif