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: 27007 X-Patchwork-Delegate: joseph@codesourcery.com 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; }