[llvm-commits] CVS: llvm/include/Support/MathExtras.h
Chris Lattner
lattner at cs.uiuc.edu
Tue Sep 17 18:57:01 PDT 2002
Changes in directory llvm/include/Support:
MathExtras.h updated: 1.3 -> 1.4
---
Log message:
Fix ambiguity problem due to builtin log2(double) function
---
Diffs of the changes:
Index: llvm/include/Support/MathExtras.h
diff -u llvm/include/Support/MathExtras.h:1.3 llvm/include/Support/MathExtras.h:1.4
--- llvm/include/Support/MathExtras.h:1.3 Sun May 19 16:19:55 2002
+++ llvm/include/Support/MathExtras.h Tue Sep 17 18:56:50 2002
@@ -19,7 +19,7 @@
inline bool isPowerOf2(int64_t C, unsigned &getPow) {
if (C < 0) C = -C;
if (C > 0 && C == (C & ~(C - 1))) {
- getPow = log2(C);
+ getPow = log2((uint64_t)C);
return true;
}
More information about the llvm-commits
mailing list