diff options
author | Chris Lattner <sabre@nondot.org> | 2002-09-17 23:56:50 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-09-17 23:56:50 +0000 |
commit | 3eeba80732a77f09bba146d0d73d495afb31fc41 (patch) | |
tree | f7814ea7020292032323ff464c1bb25085112921 /llvm/include/Support/MathExtras.h | |
parent | 2d7730e3dd3bf2e71c056b18d8d025cc036ae5d6 (diff) | |
download | bcm5719-llvm-3eeba80732a77f09bba146d0d73d495afb31fc41.tar.gz bcm5719-llvm-3eeba80732a77f09bba146d0d73d495afb31fc41.zip |
Fix ambiguity problem due to builtin log2(double) function
llvm-svn: 3800
Diffstat (limited to 'llvm/include/Support/MathExtras.h')
-rw-r--r-- | llvm/include/Support/MathExtras.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/include/Support/MathExtras.h b/llvm/include/Support/MathExtras.h index bd5692b3ddb..d9076580b7e 100644 --- a/llvm/include/Support/MathExtras.h +++ b/llvm/include/Support/MathExtras.h @@ -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; } |