Fix ambiguity problem due to builtin log2(double) function

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3800 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2002-09-17 23:56:50 +00:00
parent 5fda99744e
commit 16ca2b991b
2 changed files with 2 additions and 2 deletions

View File

@ -19,7 +19,7 @@ inline unsigned log2(uint64_t C) {
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;
}

View File

@ -19,7 +19,7 @@ inline unsigned log2(uint64_t C) {
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;
}