summaryrefslogtreecommitdiff
path: root/include/Support/MathExtras.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/Support/MathExtras.h')
-rw-r--r--include/Support/MathExtras.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/Support/MathExtras.h b/include/Support/MathExtras.h
index ec742324b0..74958fbc35 100644
--- a/include/Support/MathExtras.h
+++ b/include/Support/MathExtras.h
@@ -16,6 +16,8 @@
#include "Support/DataTypes.h"
+namespace llvm {
+
inline unsigned log2(uint64_t C) {
unsigned getPow;
for (getPow = 0; C > 1; ++getPow)
@@ -33,4 +35,6 @@ inline bool isPowerOf2(int64_t C, unsigned &getPow) {
return false;
}
+} // End llvm namespace
+
#endif