[PATCH 4/4] Replace always true if with else

Andoni Arregi <[email protected]>
Newsgroups gmane.comp.lib.newlib
Message-ID <[email protected]>
---
 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  =  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);
-- 
2.40.0
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.