diff options
-rw-r--r-- | include/llvm/Support/MathExtras.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/Support/MathExtras.h b/include/llvm/Support/MathExtras.h index 720ab6333c..ae3f752cc7 100644 --- a/include/llvm/Support/MathExtras.h +++ b/include/llvm/Support/MathExtras.h @@ -164,7 +164,7 @@ inline unsigned Log2_32(unsigned Value) { // Log2_64 - This function returns the floor log base 2 of the specified value, // -1 if the value is zero. (64 bit edition.) -inline unsigned Log2_64(unsigned Value) { +inline unsigned Log2_64(uint64_t Value) { return 63 - CountLeadingZeros_64(Value); } |