about summary refs log tree commit diff
path: root/sysdeps/libm-ieee754
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/libm-ieee754')
-rw-r--r--sysdeps/libm-ieee754/w_pow.c5
-rw-r--r--sysdeps/libm-ieee754/w_powf.c5
-rw-r--r--sysdeps/libm-ieee754/w_powl.c5
3 files changed, 9 insertions, 6 deletions
diff --git a/sysdeps/libm-ieee754/w_pow.c b/sysdeps/libm-ieee754/w_pow.c
index 1711d71bda..5850651a1a 100644
--- a/sysdeps/libm-ieee754/w_pow.c
+++ b/sysdeps/libm-ieee754/w_pow.c
@@ -39,14 +39,15 @@
 	    else
 		return z;
 	}
-	if(x==0.0){
+	if(x==0.0) {
 	    if(y==0.0)
 	        return __kernel_standard(x,y,20); /* pow(0.0,0.0) */
-	    if(__finite(y)&&y<0.0)
+	    if(__finite(y)&&y<0.0) {
 	      if (signbit (x) && signbit (z))
 	        return __kernel_standard(x,y,23); /* pow(-0.0,negative) */
 	      else
 	        return __kernel_standard(x,y,43); /* pow(+0.0,negative) */
+	    }
 	    return z;
 	}
 	if(!__finite(z)) {
diff --git a/sysdeps/libm-ieee754/w_powf.c b/sysdeps/libm-ieee754/w_powf.c
index 0b20822be8..32196fd89f 100644
--- a/sysdeps/libm-ieee754/w_powf.c
+++ b/sysdeps/libm-ieee754/w_powf.c
@@ -45,16 +45,17 @@ static char rcsid[] = "$NetBSD: w_powf.c,v 1.3 1995/05/10 20:49:41 jtc Exp $";
 	    else
 		return z;
 	}
-	if(x==(float)0.0){
+	if(x==(float)0.0) {
 	    if(y==(float)0.0)
 	        /* powf(0.0,0.0) */
 	        return (float)__kernel_standard((double)x,(double)y,120);
-	    if(__finitef(y)&&y<(float)0.0)
+	    if(__finitef(y)&&y<(float)0.0) {
 	      if (signbit (x) && signbit (z))
 	        /* powf(0.0,negative) */
 	        return (float)__kernel_standard((double)x,(double)y,123);
 	      else
 	        return (float)__kernel_standard((double)x,(double)y,143);
+	    }
 	    return z;
 	}
 	if(!__finitef(z)) {
diff --git a/sysdeps/libm-ieee754/w_powl.c b/sysdeps/libm-ieee754/w_powl.c
index 3529b5024c..17feb9fc61 100644
--- a/sysdeps/libm-ieee754/w_powl.c
+++ b/sysdeps/libm-ieee754/w_powl.c
@@ -41,14 +41,15 @@
 	    else
 		return z;
 	}
-	if(x==0.0){
+	if(x==0.0) {
 	    if(y==0.0)
 	        return __kernel_standard(x,y,220); /* pow(0.0,0.0) */
-	    if(__finitel(y)&&y<0.0)
+	    if(__finitel(y)&&y<0.0) {
 	      if (signbit (x) && signbit (z))
 	        return __kernel_standard(x,y,223); /* pow(-0.0,negative) */
 	      else
 	        return __kernel_standard(x,y,243); /* pow(+0.0,negative) */
+	    }
 	    return z;
 	}
 	if(!__finitel(z)) {