mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-29 14:40:25 +00:00
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:
parent
5fda99744e
commit
16ca2b991b
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user