Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 9 May 2015 17:29:10 -0700
From:      Steve Kargl <sgk@troutmask.apl.washington.edu>
To:        freebsd-numerics@freebsd.org
Subject:   small cleanup patch for e_pow.c
Message-ID:  <20150510002910.GA82261@troutmask.apl.washington.edu>

next in thread | raw e-mail | index | archive | help
In reading, e_pow.c I found a small piece of code that
can be remove.  Anyone object?

Index: src/e_pow.c
===================================================================
--- src/e_pow.c	(revision 1603)
+++ src/e_pow.c	(working copy)
@@ -187,10 +187,6 @@ __ieee754_pow(double x, double y)
 
     /* |y| is huge */
 	if(iy>0x41e00000) { /* if |y| > 2**31 */
-	    if(iy>0x43f00000){	/* if |y| > 2**64, must o/uflow */
-		if(ix<=0x3fefffff) return (hy<0)? huge*huge:tiny*tiny;
-		if(ix>=0x3ff00000) return (hy>0)? huge*huge:tiny*tiny;
-	    }
 	/* over/underflow if x is not close to one */
 	    if(ix<0x3fefffff) return (hy<0)? s*huge*huge:s*tiny*tiny;
 	    if(ix>0x3ff00000) return (hy>0)? s*huge*huge:s*tiny*tiny;
-- 
Steve



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20150510002910.GA82261>