diff options
author | Andoni Arregi <andoni.arregui@gtd-gmbh.de> | 2023-04-12 17:34:45 +0200 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2023-04-13 13:36:11 -0400 |
commit | ef75abddc76a914aabbb976dd116e39ab196bd28 (patch) | |
tree | 3bc7ebf5c7f5d3d8b0aafb6ca5b7fa7ae3b04769 /newlib | |
parent | 9e89e667299a1f17572930b45661ce98afca76c8 (diff) | |
download | newlib-ef75abddc76a914aabbb976dd116e39ab196bd28.zip newlib-ef75abddc76a914aabbb976dd116e39ab196bd28.tar.gz newlib-ef75abddc76a914aabbb976dd116e39ab196bd28.tar.bz2 |
Replace always true if with else
Diffstat (limited to 'newlib')
-rw-r--r-- | newlib/libm/math/e_pow.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/newlib/libm/math/e_pow.c b/newlib/libm/math/e_pow.c index 0e2251f..b217260 100644 --- a/newlib/libm/math/e_pow.c +++ b/newlib/libm/math/e_pow.c @@ -198,8 +198,11 @@ ivln2_l = 1.92596299112661746887e-08; /* 0x3E54AE0B, 0xF85DDF44 =1/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<=0x3fefffff) return (hy<0)? __math_oflow(0):__math_uflow(0); - if(ix>=0x3ff00000) return (hy>0)? __math_oflow(0):__math_uflow(0); + if(ix<=0x3fefffff) { /* |x| < 1 */ + return (hy<0)? __math_oflow(0):__math_uflow(0); + } else { /* |x| >= 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(sign<0); |