projects
/
oweals
/
musl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c63c98a
)
add parenthesis in fma.c to clarify intent and silence warnings
author
Szabolcs Nagy
<nsz@port70.net>
Sun, 8 Feb 2015 16:40:54 +0000
(17:40 +0100)
committer
Szabolcs Nagy
<nsz@port70.net>
Sun, 8 Feb 2015 16:40:54 +0000
(17:40 +0100)
src/math/fma.c
patch
|
blob
|
history
diff --git
a/src/math/fma.c
b/src/math/fma.c
index 02f5c865519d7c0e251b66242ad9930c930aec2e..741ccd757ab1544d5ed4d6fd2bd135d7cb0586e3 100644
(file)
--- a/
src/math/fma.c
+++ b/
src/math/fma.c
@@
-273,7
+273,7
@@
static inline double add_and_denormalize(double a, double b, int scale)
if (sum.lo != 0) {
uhi.f = sum.hi;
bits_lost = -((int)(uhi.i >> 52) & 0x7ff) - scale + 1;
- if (
bits_lost != 1
^ (int)(uhi.i & 1)) {
+ if (
(bits_lost != 1)
^ (int)(uhi.i & 1)) {
/* hibits += (int)copysign(1.0, sum.hi * sum.lo) */
ulo.f = sum.lo;
uhi.i += 1 - (((uhi.i ^ ulo.i) >> 62) & 2);