mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-07-12 22:24:58 +03:00
Fix compilation error with MSVC C++
This commit is contained in:
parent
7e743dfb58
commit
7f0137a617
5 changed files with 22 additions and 11 deletions
|
@ -56,7 +56,7 @@ static inline uint8_t mi_bsr32(uint32_t x);
|
|||
#include <intrin.h>
|
||||
static inline uint8_t mi_bsr32(uint32_t x) {
|
||||
uint32_t idx;
|
||||
_BitScanReverse(&idx, x);
|
||||
_BitScanReverse((DWORD*)&idx, x);
|
||||
return idx;
|
||||
}
|
||||
#elif defined(__GNUC__) || defined(__clang__)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue