mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-05-13 10:36:07 +00:00
Fix ambiguity problem due to builtin log2(double) function
llvm-svn: 3800
This commit is contained in:
parent
86e6e0f6e3
commit
af94e5bd3b
@ -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…
x
Reference in New Issue
Block a user