[llvm] r335427 - Also forward declare BitScanReverse.
Zachary Turner via llvm-commits
llvm-commits at lists.llvm.org
Sat Jun 23 18:48:25 PDT 2018
Author: zturner
Date: Sat Jun 23 18:48:25 2018
New Revision: 335427
URL: http://llvm.org/viewvc/llvm-project?rev=335427&view=rev
Log:
Also forward declare BitScanReverse.
With the removal of intrin.h in an earlier patch, the intrinsics
that we were actually using were manually re-declared, however
several of them were missed leading to compilation failures with
MSVC. Fix those.
Modified:
llvm/trunk/include/llvm/Support/MathExtras.h
Modified: llvm/trunk/include/llvm/Support/MathExtras.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/MathExtras.h?rev=335427&r1=335426&r2=335427&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/MathExtras.h (original)
+++ llvm/trunk/include/llvm/Support/MathExtras.h Sat Jun 23 18:48:25 2018
@@ -34,6 +34,8 @@
extern "C" {
unsigned char _BitScanForward(unsigned long *_Index, unsigned long _Mask);
unsigned char _BitScanForward64(unsigned long *_Index, unsigned __int64 _Mask);
+unsigned char _BitScanReverse(unsigned long * _Index, unsigned long _Mask);
+unsigned char _BitScanReverse64(unsigned long * _Index, unsigned __int64 _Mask);
}
#endif
More information about the llvm-commits
mailing list