X-Git-Url: http://nsz.repo.hu/git/?p=libm;a=blobdiff_plain;f=src%2Fmath%2Fremquof.c;h=11569ce8a386a892913c1121bc66585f1fd9434a;hp=beff3c578f8187973ce9a00c8aeb36ef52838b6b;hb=5298ab468eb88cace2413703ac409009efaa8ca7;hpb=781e3284dddd0d9cc713603f4bd05442df78e09a diff --git a/src/math/remquof.c b/src/math/remquof.c index beff3c5..11569ce 100644 --- a/src/math/remquof.c +++ b/src/math/remquof.c @@ -47,13 +47,13 @@ float remquof(float x, float y, int *quo) /* determine ix = ilogb(x) */ if (hx < 0x00800000) { /* subnormal x */ - for (ix = -126, i=hx<<8; i>0; i<<=1) ix -=1; + for (ix = -126, i=hx<<8; i>0; i<<=1) ix--; } else ix = (hx>>23) - 127; /* determine iy = ilogb(y) */ if (hy < 0x00800000) { /* subnormal y */ - for (iy = -126, i=hy<<8; i>0; i<<=1) iy -=1; + for (iy = -126, i=hy<<8; i>0; i<<=1) iy--; } else iy = (hy>>23) - 127; @@ -97,7 +97,7 @@ float remquof(float x, float y, int *quo) } while (hx < 0x00800000) { /* normalize x */ hx <<= 1; - iy -= 1; + iy--; } if (iy >= -126) { /* normalize output */ hx = (hx-0x00800000)|((iy+127)<<23);