Add parentheses around arithmetic near a shift operator, to get rid of a
gcc warning. The code was correct before, and this change causes it to
diverge from the LBFS sources it was derived from, but it is worthwhile to
get rid of the gcc warning.
nh ^= d;
for (int i = 62; i >= 0; i--)
if (nh & INT64 (1) << i) {
- nh ^= d >> 63 - i;
- nl ^= d << i + 1;
+ nh ^= d >> (63 - i);
+ nl ^= d << (i + 1);
}
}
for (int i = 63; i >= k; i--)
if (nl & INT64 (1) << i)
- nl ^= d >> 63 - i;
+ nl ^= d >> (63 - i);
return nl;
}