summaryrefslogtreecommitdiff
path: root/lib/libm/src
diff options
context:
space:
mode:
authorchristos <christos@NetBSD.org>2006-03-19 20:46:25 +0000
committerchristos <christos@NetBSD.org>2006-03-19 20:46:25 +0000
commita42e5c8db91d1bf47a04a875c995f5c38f20b15e (patch)
tree9faf770fd9905a660ca927aa1f94708d5751617a /lib/libm/src
parentfef1370818e5edee72c32aea9425934ca69c8a35 (diff)
Coverity CID 562: Flip the order of the if statement to prevent unreachable
code.
Diffstat (limited to 'lib/libm/src')
-rw-r--r--lib/libm/src/e_powf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libm/src/e_powf.c b/lib/libm/src/e_powf.c
index 9c6481d1745..59756c1e25b 100644
--- a/lib/libm/src/e_powf.c
+++ b/lib/libm/src/e_powf.c
@@ -15,7 +15,7 @@
#include <sys/cdefs.h>
#if defined(LIBM_SCCS) && !defined(lint)
-__RCSID("$NetBSD: e_powf.c,v 1.11 2004/06/30 18:45:25 drochner Exp $");
+__RCSID("$NetBSD: e_powf.c,v 1.12 2006/03/19 20:46:25 christos Exp $");
#endif
#include "math.h"
@@ -208,11 +208,11 @@ __ieee754_powf(float x, float y)
else if (j==0x43000000) { /* if z == 128 */
if(p_l+ovt>z-p_h) return s*huge*huge; /* overflow */
}
- else if ((j&0x7fffffff)>0x43160000) /* z <= -150 */
- return s*tiny*tiny; /* underflow */
else if (j==0xc3160000){ /* z == -150 */
if(p_l<=z-p_h) return s*tiny*tiny; /* underflow */
}
+ else if ((j&0x7fffffff)>0x43160000) /* z <= -150 */
+ return s*tiny*tiny; /* underflow */
/*
* compute 2**(p_h+p_l)
*/