aboutsummaryrefslogtreecommitdiff
path: root/sysdeps
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/libm-ieee754/e_cosh.c5
-rw-r--r--sysdeps/libm-ieee754/e_gamma_r.c2
-rw-r--r--sysdeps/libm-ieee754/e_sinh.c4
-rw-r--r--sysdeps/posix/getaddrinfo.c6
4 files changed, 8 insertions, 9 deletions
diff --git a/sysdeps/libm-ieee754/e_cosh.c b/sysdeps/libm-ieee754/e_cosh.c
index 4f6b524..65106b9 100644
--- a/sysdeps/libm-ieee754/e_cosh.c
+++ b/sysdeps/libm-ieee754/e_cosh.c
@@ -77,12 +77,11 @@ static double one = 1.0, half=0.5, huge = 1.0e300;
}
/* |x| in [22, log(maxdouble)] return half*exp(|x|) */
- if (ix < 0x40862E42) return half*__ieee754_exp(fabs(x));
+ if (ix < 0x40862e42) return half*__ieee754_exp(fabs(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(half*fabs(x));
t = half*w;
return t*w;
diff --git a/sysdeps/libm-ieee754/e_gamma_r.c b/sysdeps/libm-ieee754/e_gamma_r.c
index eb80809..901f145 100644
--- a/sysdeps/libm-ieee754/e_gamma_r.c
+++ b/sysdeps/libm-ieee754/e_gamma_r.c
@@ -33,7 +33,7 @@ __ieee754_gamma_r (double x, int *signgamp)
EXTRACT_WORDS (hx, lx, x);
- if ((hx & 0x7fffffff | lx) == 0)
+ if (((hx & 0x7fffffff) | lx) == 0)
/* Return value for x == 0 is NaN with invalid exception. */
return x / x;
if (hx < 0 && (u_int32_t) hx < 0xfff00000 && __rint (x) == x)
diff --git a/sysdeps/libm-ieee754/e_sinh.c b/sysdeps/libm-ieee754/e_sinh.c
index 1b37256..1701b9b 100644
--- a/sysdeps/libm-ieee754/e_sinh.c
+++ b/sysdeps/libm-ieee754/e_sinh.c
@@ -71,11 +71,11 @@ static double one = 1.0, shuge = 1.0e307;
}
/* |x| in [22, log(maxdouble)] return 0.5*exp(|x|) */
- if (ix < 0x40862E42) return h*__ieee754_exp(fabs(x));
+ if (ix < 0x40862e42) return h*__ieee754_exp(fabs(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/sysdeps/posix/getaddrinfo.c b/sysdeps/posix/getaddrinfo.c
index fec30f9..30cc636 100644
--- a/sysdeps/posix/getaddrinfo.c
+++ b/sysdeps/posix/getaddrinfo.c
@@ -295,7 +295,7 @@ gaih_inet (const char *name, const struct gaih_service *service,
{
if (tp->name != NULL)
{
- if (rc = gaih_inet_serv (service->name, tp, &st))
+ if ((rc = gaih_inet_serv (service->name, tp, &st)))
return rc;
}
else
@@ -303,7 +303,7 @@ gaih_inet (const char *name, const struct gaih_service *service,
struct gaih_servtuple **pst = &st;
for (tp++; tp->name; tp++)
{
- if (rc = gaih_inet_serv (service->name, tp, pst))
+ if ((rc = gaih_inet_serv (service->name, tp, pst)))
{
if (rc & GAIH_OKIFUNSPEC)
continue;
@@ -567,7 +567,7 @@ getaddrinfo (const char *name, const char *service,
if ((pg == NULL) || (pg->gaih != g->gaih))
{
pg = g;
- if (i = g->gaih (name, pservice, hints, end))
+ if ((i = g->gaih (name, pservice, hints, end)))
{
if ((hints->ai_family == AF_UNSPEC) && (i & GAIH_OKIFUNSPEC))
continue;