summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorOtto Moerbeek <otto@cvs.openbsd.org>2006-04-24 18:36:02 +0000
committerOtto Moerbeek <otto@cvs.openbsd.org>2006-04-24 18:36:02 +0000
commit48feaa1929341c44873d329d90f393a0e8a05571 (patch)
treeae2e7d4c054354824a09eedd62552d5b2c28d8e5 /lib
parentf88a9c78bea37e19af92ce83a2a626f995a33aaf (diff)
small delint; ok deraadt@
Diffstat (limited to 'lib')
-rw-r--r--lib/libm/src/e_atan2.c2
-rw-r--r--lib/libm/src/e_cosh.c2
-rw-r--r--lib/libm/src/e_jnf.c1
-rw-r--r--lib/libm/src/e_sinh.c2
-rw-r--r--lib/libm/src/s_trunc.c2
5 files changed, 4 insertions, 5 deletions
diff --git a/lib/libm/src/e_atan2.c b/lib/libm/src/e_atan2.c
index dbe95359dd8..d469450efe0 100644
--- a/lib/libm/src/e_atan2.c
+++ b/lib/libm/src/e_atan2.c
@@ -66,7 +66,7 @@ __ieee754_atan2(double y, double x)
if(((ix|((lx|-lx)>>31))>0x7ff00000)||
((iy|((ly|-ly)>>31))>0x7ff00000)) /* x or y is NaN */
return x+y;
- if((hx-0x3ff00000|lx)==0) return atan(y); /* x=1.0 */
+ if(((hx-0x3ff00000)|lx)==0) return atan(y); /* x=1.0 */
m = ((hy>>31)&1)|((hx>>30)&2); /* 2*sign(x)+sign(y) */
/* when y = 0 */
diff --git a/lib/libm/src/e_cosh.c b/lib/libm/src/e_cosh.c
index 1d4aef70e3b..4d7b61bfdc9 100644
--- a/lib/libm/src/e_cosh.c
+++ b/lib/libm/src/e_cosh.c
@@ -74,7 +74,7 @@ __ieee754_cosh(double x)
/* |x| in [log(maxdouble), overflowthresold] */
GET_LOW_WORD(lx,x);
if (ix<0x408633CE ||
- (ix==0x408633ce)&&(lx<=(u_int32_t)0x8fb9f87d)) {
+ ((ix==0x408633ce)&&(lx<=(u_int32_t)0x8fb9f87d))) {
w = __ieee754_exp(half*fabs(x));
t = half*w;
return t*w;
diff --git a/lib/libm/src/e_jnf.c b/lib/libm/src/e_jnf.c
index d3e849bd449..3512c9f51a2 100644
--- a/lib/libm/src/e_jnf.c
+++ b/lib/libm/src/e_jnf.c
@@ -21,7 +21,6 @@ static char rcsid[] = "$NetBSD: e_jnf.c,v 1.5 1995/05/10 20:45:37 jtc Exp $";
#include "math_private.h"
static const float
-invsqrtpi= 5.6418961287e-01, /* 0x3f106ebb */
two = 2.0000000000e+00, /* 0x40000000 */
one = 1.0000000000e+00; /* 0x3F800000 */
diff --git a/lib/libm/src/e_sinh.c b/lib/libm/src/e_sinh.c
index a4d00a0d66b..03cb60b3ef3 100644
--- a/lib/libm/src/e_sinh.c
+++ b/lib/libm/src/e_sinh.c
@@ -67,7 +67,7 @@ __ieee754_sinh(double x)
/* |x| in [log(maxdouble), overflowthresold] */
GET_LOW_WORD(lx,x);
- if (ix<0x408633CE || (ix==0x408633ce)&&(lx<=(u_int32_t)0x8fb9f87d)) {
+ if (ix<0x408633CE || ((ix==0x408633ce)&&(lx<=(u_int32_t)0x8fb9f87d))) {
w = __ieee754_exp(0.5*fabs(x));
t = h*w;
return t*w;
diff --git a/lib/libm/src/s_trunc.c b/lib/libm/src/s_trunc.c
index 93416511851..079956b1178 100644
--- a/lib/libm/src/s_trunc.c
+++ b/lib/libm/src/s_trunc.c
@@ -33,7 +33,7 @@ double
trunc(double x)
{
int32_t i0,i1,j0;
- u_int32_t i,j;
+ u_int32_t i;
EXTRACT_WORDS(i0,i1,x);
j0 = ((i0>>20)&0x7ff)-0x3ff;
if(j0<20) {