X-Git-Url: http://nsz.repo.hu/git/?p=libm;a=blobdiff_plain;f=src%2Fmath%2Fsqrt.c;h=2ebd022b0c3cb73ca4300fb5da24072f7a61da1f;hp=e4b166da4845e2b1aeebf871854f3b30199868e7;hb=f1278a53fcf066facd97c8c782a412b39d0f2bc4;hpb=21d0f5c85063b4e1f8168fc53fb4238d78375f08;ds=sidebyside diff --git a/src/math/sqrt.c b/src/math/sqrt.c index e4b166d..2ebd022 100644 --- a/src/math/sqrt.c +++ b/src/math/sqrt.c @@ -95,7 +95,7 @@ double sqrt(double x) } /* take care of zero */ if (ix0 <= 0) { - if (((ix0&(~sign))|ix1) == 0) + if (((ix0&~sign)|ix1) == 0) return x; /* sqrt(+-0) = +-0 */ if (ix0 < 0) return (x-x)/(x-x); /* sqrt(-ve) = sNaN */