prefer (uint)-1>>1 to ~((uint)1<<n), remove some unnecessary ()
[libm] / src / math / modff.c
index 7ab10a5..d535314 100644 (file)
@@ -37,7 +37,7 @@ float modff(float x, float *iptr)
                        SET_FLOAT_WORD(x, ix & 0x80000000);  /* return +-0 */
                        return x;
                }
                        SET_FLOAT_WORD(x, ix & 0x80000000);  /* return +-0 */
                        return x;
                }
-               SET_FLOAT_WORD(*iptr, i0&(~i));
+               SET_FLOAT_WORD(*iptr, i0&~i);
                return x - *iptr;
        } else {        /* no fraction part */
                uint32_t ix;
                return x - *iptr;
        } else {        /* no fraction part */
                uint32_t ix;