TODO list update
[libm] / src / math / sqrt.c
index 2c5642e..2ebd022 100644 (file)
@@ -74,9 +74,6 @@
  *      sqrt(inf) = inf
  *      sqrt(-ve) = NaN         ... with invalid signal
  *      sqrt(NaN) = NaN         ... with invalid signal for signaling NaN
- *
- * Other methods : see the appended file at the end of the program below.
- *---------------
  */
 
 #include "libm.h"
@@ -98,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 */