Avoid -Wparentheses warning.
authordrepper <drepper>
Sun, 13 Dec 1998 12:13:30 +0000 (12:13 +0000)
committerdrepper <drepper>
Sun, 13 Dec 1998 12:13:30 +0000 (12:13 +0000)
sysdeps/libm-ieee754/e_log.c
sysdeps/libm-ieee754/e_logf.c
sysdeps/libm-ieee754/s_expm1.c
sysdeps/libm-ieee754/s_expm1f.c
sysdeps/libm-ieee754/s_log1p.c
sysdeps/libm-ieee754/s_log1pf.c

index 38ea069..851bd30 100644 (file)
@@ -128,8 +128,10 @@ static double zero   =  0.0;
        k += (i>>20);
        f = x-1.0;
        if((0x000fffff&(2+hx))<3) {     /* |f| < 2**-20 */
-           if(f==zero) if(k==0) return zero;  else {dk=(double)k;
-                                return dk*ln2_hi+dk*ln2_lo;}
+           if(f==zero) {
+             if(k==0) return zero;  else {dk=(double)k;
+                                          return dk*ln2_hi+dk*ln2_lo;}
+           }
            R = f*f*(half-0.33333333333333333*f);
            if(k==0) return f-R; else {dk=(double)k;
                     return dk*ln2_hi-((R-dk*ln2_lo)-f);}
index 0f1af93..de8f869 100644 (file)
@@ -70,8 +70,10 @@ static float zero   =  0.0;
        k += (i>>23);
        f = x-(float)1.0;
        if((0x007fffff&(15+ix))<16) {   /* |f| < 2**-20 */
-           if(f==zero) if(k==0) return zero;  else {dk=(float)k;
-                                return dk*ln2_hi+dk*ln2_lo;}
+           if(f==zero) {
+             if(k==0) return zero;  else {dk=(float)k;
+                                          return dk*ln2_hi+dk*ln2_lo;}
+           }
            R = f*f*((float)0.5-(float)0.33333333333333333*f);
            if(k==0) return f-R; else {dk=(float)k;
                     return dk*ln2_hi-((R-dk*ln2_lo)-f);}
index df6b1e4..bfd15b2 100644 (file)
@@ -207,9 +207,10 @@ Q[]  =  {1.0, -3.33333333333331316428e-02, /* BFA11111 111110F4 */
            e  = (x*(e-c)-c);
            e -= hxs;
            if(k== -1) return 0.5*(x-e)-0.5;
-           if(k==1)
+           if(k==1) {
                if(x < -0.25) return -2.0*(e-(x+0.5));
                else          return  one+2.0*(x-e);
+           }
            if (k <= -2 || k>56) {   /* suffice to return exp(x)-1 */
                u_int32_t high;
                y = one-(e-x);
index d158c9a..375e334 100644 (file)
@@ -103,9 +103,10 @@ Q5  =  -2.0109921195e-07; /* 0xb457edbb */
            e  = (x*(e-c)-c);
            e -= hxs;
            if(k== -1) return (float)0.5*(x-e)-(float)0.5;
-           if(k==1) 
+           if(k==1) {
                if(x < (float)-0.25) return -(float)2.0*(e-(x+(float)0.5));
                else          return  one+(float)2.0*(x-e);
+           }
            if (k <= -2 || k>56) {   /* suffice to return exp(x)-1 */
                int32_t i;
                y = one-(e-x);
index 4ca01b1..0a9801a 100644 (file)
@@ -162,8 +162,10 @@ static double zero = 0.0;
        }
        hfsq=0.5*f*f;
        if(hu==0) {     /* |f| < 2**-20 */
-           if(f==zero) if(k==0) return zero;
+           if(f==zero) {
+             if(k==0) return zero;
                        else {c += k*ln2_lo; return k*ln2_hi+c;}
+           }
            R = hfsq*(1.0-0.66666666666666666*f);
            if(k==0) return f-R; else
                     return k*ln2_hi-((R-(k*ln2_lo+c))-f);
index 5b1237b..bd3d576 100644 (file)
@@ -98,8 +98,10 @@ static float zero = 0.0;
        }
        hfsq=(float)0.5*f*f;
        if(hu==0) {     /* |f| < 2**-20 */
-           if(f==zero) if(k==0) return zero;
-                       else {c += k*ln2_lo; return k*ln2_hi+c;}
+           if(f==zero) {
+               if(k==0) return zero;
+               else {c += k*ln2_lo; return k*ln2_hi+c;}
+           }
            R = hfsq*((float)1.0-(float)0.66666666666666666*f);
            if(k==0) return f-R; else
                     return k*ln2_hi-((R-(k*ln2_lo+c))-f);