From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2134) id 5774F3858D39; Thu, 13 Apr 2023 17:37:11 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5774F3858D39 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1681407431; bh=rhHHKLYJy/wfSdsSkziunJjN6mVDM8RkVoSR3aXop8I=; h=From:To:Subject:Date:From; b=neiXqbFAbTyfqKfxwtFHn/c1vst3p3FHYjkv/abDQtGug8N67HTEPVbSnpc7Ego9/ /RJfSRq4pPwZYayfBARgIYH3PcrQFguicyh1ITYCaOqElHr7BLnXs6O8gnXJ/+eYS8 BiV7Ol5+bPgYkJwLy8uYZuhYXhUqmcJRVnEZ7+PM= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Jeff Johnston To: newlib-cvs@sourceware.org Subject: [newlib-cygwin] Replace always true if with else X-Act-Checkin: newlib-cygwin X-Git-Author: Andoni Arregi X-Git-Refname: refs/heads/master X-Git-Oldrev: 9e89e667299a1f17572930b45661ce98afca76c8 X-Git-Newrev: ef75abddc76a914aabbb976dd116e39ab196bd28 Message-Id: <20230413173711.5774F3858D39@sourceware.org> Date: Thu, 13 Apr 2023 17:37:11 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dnewlib-cygwin.git;h=3Def75abddc76= a914aabbb976dd116e39ab196bd28 commit ef75abddc76a914aabbb976dd116e39ab196bd28 Author: Andoni Arregi Date: Wed Apr 12 17:34:45 2023 +0200 Replace always true if with else Diff: --- newlib/libm/math/e_pow.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/newlib/libm/math/e_pow.c b/newlib/libm/math/e_pow.c index 0e2251f10..b21726007 100644 --- a/newlib/libm/math/e_pow.c +++ b/newlib/libm/math/e_pow.c @@ -198,8 +198,11 @@ ivln2_l =3D 1.92596299112661746887e-08; /* 0x3E54AE0= B, 0xF85DDF44 =3D1/ln2 tail*/ /* |y| is huge */ if(iy>0x42000000) { /* if |y| > ~2**33 (does not regard mantissa) */ if(iy>0x43f00000){ /* if |y| > ~2**64, must o/uflow and y is an even = integer */ - if(ix<=3D0x3fefffff) return (hy<0)? __math_oflow(0):__math_uflow(0); - if(ix>=3D0x3ff00000) return (hy>0)? __math_oflow(0):__math_uflow(0); + if(ix<=3D0x3fefffff) { /* |x| < 1 */ + return (hy<0)? __math_oflow(0):__math_uflow(0); + } else { /* |x| >=3D 1 */ + return (hy>0)? __math_oflow(0):__math_uflow(0); + } } /* over/underflow if x is not close to one */ if(ix<0x3fefffff) return (hy<0)? __math_oflow(sign<0):__math_uflow(si= gn<0);