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
/
modff.c
diff --git
a/src/math/modff.c
b/src/math/modff.c
index
7ab10a5
..
d535314
100644
(file)
--- a/
src/math/modff.c
+++ b/
src/math/modff.c
@@
-37,7
+37,7
@@
float modff(float x, float *iptr)
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;