From patchwork Fri Apr 27 17:03:17 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: 905869 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-91887-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="MIEnERa6"; 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 40XgHy20Qyz9s1j for ; Sat, 28 Apr 2018 03:03:42 +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=I7LHKhrZ7vbd4NabqGFF/+gewpE1LZCZusSrhAzyGULZP9Wzu51wP 0T1Ju51ikWtEzqE/la53aGNP0AveJGgVv08A3lCTEY+/i+jyMwTmShWeIxdn0U3j C2KfCwH3VM9MC6+Nd5DkMiz/AHncY65T6hG3C9qPe2G5CK9vDQqwIs= 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=MlJXH9R4HUFBbJGhvOSY2H6poMo=; b=MIEnERa6Ou1tGuVxfvRA+sGYBy0p 63x+oXPfx+MgVH2CBIDiv2RdcGiWFLeorc9h32Di9YCtbWfWW+znpvt8p4R1X07L ZmZv7nLoxyVA15GEZAcFnIjRkB1TiIc0J5/dTCZev6XgiUuiOqnPRnTj97Melad2 P7i1Z82MF56oAhk= Received: (qmail 30119 invoked by alias); 27 Apr 2018 17:03:36 -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 30104 invoked by uid 89); 27 Apr 2018 17:03:35 -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= X-HELO: mx0a-001b2d01.pphosted.com From: Tulio Magno Quites Machado Filho To: libc-alpha@sourceware.org Subject: [PATCH] Replace M_SUF (M_LN2) with M_MLIT (M_LN2) Date: Fri, 27 Apr 2018 14:03:17 -0300 X-TM-AS-GCONF: 00 x-cbid: 18042717-0048-0000-0000-00000264415F 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.01024098; UDB=6.00522858; IPR=6.00803328; MB=3.00020809; MTD=3.00000008; XFM=3.00000015; UTC=2018-04-27 17:03:31 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18042717-0049-0000-0000-000044ED40DF Message-Id: <20180427170317.21864-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 According to math-type-macros.h, M_SUF should be used to paste the suffix used by functions, while M_MLIT is used with macro constants. 2018-04-27 Tulio Magno Quites Machado Filho * math/e_exp2_template.c: Replace M_SUF (M_LN2) with M_MLIT (M_LN2). Signed-off-by: Tulio Magno Quites Machado Filho --- math/e_exp2_template.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/math/e_exp2_template.c b/math/e_exp2_template.c index 5b82588c2a..94a21054c2 100644 --- a/math/e_exp2_template.c +++ b/math/e_exp2_template.c @@ -41,7 +41,7 @@ M_DECL_FUNC (__ieee754_exp2) (FLOAT x) if (M_FABS (fractx) < M_EPSILON / 4) result = M_SCALBN (1 + fractx, intx); else - result = M_SCALBN (M_EXP (M_SUF (M_LN2) * fractx), intx); + result = M_SCALBN (M_EXP (M_MLIT (M_LN2) * fractx), intx); math_check_force_underflow_nonneg (result); return result; }