diff options
Diffstat (limited to 'include/llvm/Support/MathExtras.h')
-rw-r--r-- | include/llvm/Support/MathExtras.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/Support/MathExtras.h b/include/llvm/Support/MathExtras.h index 6cd44682fc..8e7ad58efd 100644 --- a/include/llvm/Support/MathExtras.h +++ b/include/llvm/Support/MathExtras.h @@ -142,12 +142,12 @@ inline unsigned CountLeadingZeros_64(uint64_t Value) { // if some bits in hi portion if (Hi) { // leading zeros in hi portion plus all bits in lo portion - Count = CountLeadingZeros_32(Hi) + 32; + Count = CountLeadingZeros_32(Hi); } else { // get lo portion unsigned Lo = Lo_32(Value); // same as 32 bit value - Count = CountLeadingZeros_32(Lo); + Count = CountLeadingZeros_32(Lo)+32; } } #endif |