llvm.org GIT mirror llvm / 0468ab3
We want the number of bits needed, not the power of 2. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35977 91177308-0d34-0410-b5e6-96231b3b80d8 Reid Spencer 13 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
692692 APInt tmp(sufficient, str, slen, radix);
693693
694694 // Compute how many bits are required.
695 return isNegative + tmp.logBase2();
695 return isNegative + tmp.logBase2() + 1;
696696 }
697697
698698 uint64_t APInt::getHashValue() const {