summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSzabolcs Nagy <nsz@port70.net>2015-02-08 17:40:54 +0100
committerSzabolcs Nagy <nsz@port70.net>2015-02-08 17:40:54 +0100
commit6e76e1540fc58a418494bf5eb832b556f9c5763e (patch)
treea544e05d6a8e1639025a50a33bbcb6d1af99a4ca
parentc63c98a6067030a25a42703db1209ccbcc74803a (diff)
downloadmusl-6e76e1540fc58a418494bf5eb832b556f9c5763e.tar.gz
musl-6e76e1540fc58a418494bf5eb832b556f9c5763e.tar.bz2
musl-6e76e1540fc58a418494bf5eb832b556f9c5763e.tar.xz
musl-6e76e1540fc58a418494bf5eb832b556f9c5763e.zip
add parenthesis in fma.c to clarify intent and silence warnings
-rw-r--r--src/math/fma.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/math/fma.c b/src/math/fma.c
index 02f5c865..741ccd75 100644
--- 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);