Hopefully fix the Windows build by not including intrin.h

llvm-svn: 169855
This commit is contained in:
Timur Iskhodzhanov 2012-12-11 12:03:06 +00:00
parent e98b7a0389
commit aacd3d79b1
1 changed files with 6 additions and 1 deletions

View File

@ -205,7 +205,12 @@ void asan_mz_force_unlock();
// Log2 and RoundUpToPowerOfTwo should be inlined for performance.
#if defined(_WIN32) && !defined(__clang__)
#include <intrin.h>
unsigned char _BitScanForward(unsigned long *index, unsigned long mask);
unsigned char _BitScanReverse(unsigned long *index, unsigned long mask);
#if defined(_WIN64)
unsigned char _BitScanForward64(unsigned long *index, unsigned __int64 mask);
unsigned char _BitScanReverse64(unsigned long *index, unsigned __int64 mask);
#endif
#endif
static inline uptr Log2(uptr x) {