Fixed compiler warnings after uClibc code update

This commit is contained in:
Sam Lantinga 2017-11-04 17:39:28 -07:00
parent bcdf8b916b
commit 34a8cf767c
3 changed files with 4 additions and 4 deletions

View File

@ -57,8 +57,8 @@ double attribute_hidden __ieee754_atan2(double y, double x)
ix = hx&0x7fffffff; ix = hx&0x7fffffff;
EXTRACT_WORDS(hy,ly,y); EXTRACT_WORDS(hy,ly,y);
iy = hy&0x7fffffff; iy = hy&0x7fffffff;
if(((ix|((lx|-lx)>>31))>0x7ff00000)|| if(((ix|((lx|-(int32_t)lx)>>31))>0x7ff00000)||
((iy|((ly|-ly)>>31))>0x7ff00000)) /* x or y is NaN */ ((iy|((ly|-(int32_t)ly)>>31))>0x7ff00000)) /* x or y is NaN */
return x+y; 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) */ m = ((hy>>31)&1)|((hx>>30)&2); /* 2*sign(x)+sign(y) */

View File

@ -33,7 +33,7 @@ double attribute_hidden __ieee754_fmod(double x, double y)
/* purge off exception values */ /* purge off exception values */
if((hy|ly)==0||(hx>=0x7ff00000)|| /* y=0,or x not finite */ if((hy|ly)==0||(hx>=0x7ff00000)|| /* y=0,or x not finite */
((hy|((ly|-ly)>>31))>0x7ff00000)) /* or y is NaN */ ((hy|((ly|-(int32_t)ly)>>31))>0x7ff00000)) /* or y is NaN */
return (x*y)/(x*y); return (x*y)/(x*y);
if(hx<=hy) { if(hx<=hy) {
if((hx<hy)||(lx<ly)) return x; /* |x|<|y| return x */ if((hx<hy)||(lx<ly)) return x; /* |x|<|y| return x */

View File

@ -58,7 +58,7 @@ double floor(double x)
if(j0==20) i0+=1; if(j0==20) i0+=1;
else { else {
j = i1+(1<<(52-j0)); j = i1+(1<<(52-j0));
if(j<i1) i0 +=1 ; /* got a carry */ if(j<(u_int32_t)i1) i0 +=1 ; /* got a carry */
i1=j; i1=j;
} }
} }