diff options
-rw-r--r-- | include/Support/MathExtras.h | 4 | ||||
-rw-r--r-- | include/llvm/Support/MathExtras.h | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/include/Support/MathExtras.h b/include/Support/MathExtras.h index 125aff3..1540de3 100644 --- a/include/Support/MathExtras.h +++ b/include/Support/MathExtras.h @@ -18,6 +18,10 @@ namespace llvm { +#if defined(log2) +# undef log2 +#endif + inline unsigned log2(uint64_t C) { unsigned getPow; for (getPow = 0; C > 1; ++getPow) diff --git a/include/llvm/Support/MathExtras.h b/include/llvm/Support/MathExtras.h index 125aff3..1540de3 100644 --- a/include/llvm/Support/MathExtras.h +++ b/include/llvm/Support/MathExtras.h @@ -18,6 +18,10 @@ namespace llvm { +#if defined(log2) +# undef log2 +#endif + inline unsigned log2(uint64_t C) { unsigned getPow; for (getPow = 0; C > 1; ++getPow) |