mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-04-12 12:33:17 +00:00
Cygwin defines log2 as a macro. Undef it here IFF it has already been defined,
so that we always get the inline function instead. Remember, kids, like it says in the GCC manual, "An Inline Function is As Fast As a Macro." llvm-svn: 11815
This commit is contained in:
parent
8bf1c4c026
commit
5d29845f19
@ -18,6 +18,10 @@
|
||||
|
||||
namespace llvm {
|
||||
|
||||
#if defined(log2)
|
||||
# undef log2
|
||||
#endif
|
||||
|
||||
inline unsigned log2(uint64_t C) {
|
||||
unsigned getPow;
|
||||
for (getPow = 0; C > 1; ++getPow)
|
||||
|
Loading…
x
Reference in New Issue
Block a user