Commit b8a51cb0 authored by Paul Ramsey's avatar Paul Ramsey

Handle nbits > 63

3.6 branch
Closes #869
parent 8a0f6d0e
......@@ -43,6 +43,7 @@ CommonBits::numCommonMostSigMantissaBits(int64 num1, int64 num2)
int64
CommonBits::zeroLowerBits(int64 bits, int nBits)
{
if (nBits >= 64) return 0;
int64 invMask = (1<< nBits)-1;
int64 mask = ~ invMask;
int64 zeroed = bits & mask;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment