X-Git-Url: http://nsz.repo.hu/git/?p=libm;a=blobdiff_plain;f=src%2Fmath%2Frint.c;h=775c7b8d0d4d206f8ebfedfe483fd6913b0e1eab;hp=fa6fef314b5ebd299ee27fceb695b42984c75f2a;hb=5298ab468eb88cace2413703ac409009efaa8ca7;hpb=781e3284dddd0d9cc713603f4bd05442df78e09a diff --git a/src/math/rint.c b/src/math/rint.c index fa6fef3..775c7b8 100644 --- a/src/math/rint.c +++ b/src/math/rint.c @@ -69,7 +69,7 @@ double rint(double x) else if (j0 == 18) i1 = 0x80000000; else - i0 = (i0&(~i))|((0x20000)>>j0); + i0 = (i0 & ~i)|(0x20000>>j0); } } } else if (j0 > 51) { @@ -82,7 +82,7 @@ double rint(double x) return x; /* x is integral */ i >>= 1; if ((i1&i) != 0) - i1 = (i1&(~i))|((0x40000000)>>(j0-20)); + i1 = (i1 & ~i)|(0x40000000>>(j0-20)); } INSERT_WORDS(x, i0, i1); STRICT_ASSIGN(double, w, TWO52[sx] + x);