projects
/
libm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
prefer (uint)-1>>1 to ~((uint)1<<n), remove some unnecessary ()
[libm]
/
src
/
math
/
modf.c
diff --git
a/src/math/modf.c
b/src/math/modf.c
index
362733e
..
ff85b2a
100644
(file)
--- a/
src/math/modf.c
+++ b/
src/math/modf.c
@@
-43,7
+43,7
@@
double modf(double x, double *iptr)
INSERT_WORDS(x, high & 0x80000000, 0); /* return +-0 */
return x;
}
INSERT_WORDS(x, high & 0x80000000, 0); /* return +-0 */
return x;
}
- INSERT_WORDS(*iptr, i0&
(~i)
, 0);
+ INSERT_WORDS(*iptr, i0&
~i
, 0);
return x - *iptr;
} else if (j0 > 51) { /* no fraction part */
uint32_t high;
return x - *iptr;
} else if (j0 > 51) { /* no fraction part */
uint32_t high;
@@
-64,7
+64,7
@@
double modf(double x, double *iptr)
INSERT_WORDS(x, high & 0x80000000, 0); /* return +-0 */
return x;
}
INSERT_WORDS(x, high & 0x80000000, 0); /* return +-0 */
return x;
}
- INSERT_WORDS(*iptr, i0, i1&
(~i)
);
+ INSERT_WORDS(*iptr, i0, i1&
~i
);
return x - *iptr;
}
}
return x - *iptr;
}
}