projects
/
libm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
various minor style fixes
[libm]
/
src
/
math
/
rint.c
diff --git
a/src/math/rint.c
b/src/math/rint.c
index
fa6fef3
..
775c7b8
100644
(file)
--- a/
src/math/rint.c
+++ b/
src/math/rint.c
@@
-69,7
+69,7
@@
double rint(double x)
else if (j0 == 18)
i1 = 0x80000000;
else
else if (j0 == 18)
i1 = 0x80000000;
else
- i0 = (i0
&(~i))|((0x20000)
>>j0);
+ i0 = (i0
& ~i)|(0x20000
>>j0);
}
}
} else if (j0 > 51) {
}
}
} else if (j0 > 51) {
@@
-82,7
+82,7
@@
double rint(double x)
return x; /* x is integral */
i >>= 1;
if ((i1&i) != 0)
return x; /* x is integral */
i >>= 1;
if ((i1&i) != 0)
- i1 = (i1
&(~i))|((0x40000000)
>>(j0-20));
+ i1 = (i1
& ~i)|(0x40000000
>>(j0-20));
}
INSERT_WORDS(x, i0, i1);
STRICT_ASSIGN(double, w, TWO52[sx] + x);
}
INSERT_WORDS(x, i0, i1);
STRICT_ASSIGN(double, w, TWO52[sx] + x);