Skip to content
Snippets Groups Projects
Commit 6ea8fc64 authored by Raymond Toy's avatar Raymond Toy
Browse files

Add parens around && expressions to silence a clang warning.

parent 917655e7
No related branches found
No related tags found
No related merge requests found
...@@ -80,7 +80,7 @@ static double one = 1.0, half=0.5, huge = 1.0e300; ...@@ -80,7 +80,7 @@ static double one = 1.0, half=0.5, huge = 1.0e300;
/* |x| in [log(maxdouble), overflowthresold] */ /* |x| in [log(maxdouble), overflowthresold] */
lx = *( (((*(unsigned*)&one)>>29)) + (unsigned*)&x); lx = *( (((*(unsigned*)&one)>>29)) + (unsigned*)&x);
if (ix<0x408633CE || if (ix<0x408633CE ||
(ix==0x408633ce)&&(lx<=(unsigned)0x8fb9f87d)) { ((ix==0x408633ce)&&(lx<=(unsigned)0x8fb9f87d))) {
w = __ieee754_exp(half*fabs(x)); w = __ieee754_exp(half*fabs(x));
t = half*w; t = half*w;
return t*w; return t*w;
......
...@@ -73,7 +73,7 @@ static double one = 1.0, shuge = 1.0e307; ...@@ -73,7 +73,7 @@ static double one = 1.0, shuge = 1.0e307;
/* |x| in [log(maxdouble), overflowthresold] */ /* |x| in [log(maxdouble), overflowthresold] */
lx = *( (((*(unsigned*)&one)>>29)) + (unsigned*)&x); lx = *( (((*(unsigned*)&one)>>29)) + (unsigned*)&x);
if (ix<0x408633CE || (ix==0x408633ce)&&(lx<=(unsigned)0x8fb9f87d)) { if (ix<0x408633CE || ((ix==0x408633ce)&&(lx<=(unsigned)0x8fb9f87d))) {
w = __ieee754_exp(0.5*fabs(x)); w = __ieee754_exp(0.5*fabs(x));
t = h*w; t = h*w;
return t*w; return t*w;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment