mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-07-06 19:38:41 +03:00
merge from dev-platform
This commit is contained in:
commit
61ae0d1d5e
9 changed files with 17 additions and 0 deletions
|
@ -792,6 +792,7 @@ static inline size_t mi_ctz(uintptr_t x) {
|
|||
#elif defined(_MSC_VER)
|
||||
|
||||
#include <limits.h> // LONG_MAX
|
||||
#include <intrin.h> // BitScanReverse64
|
||||
#define MI_HAVE_FAST_BITSCAN
|
||||
static inline size_t mi_clz(uintptr_t x) {
|
||||
if (x==0) return MI_INTPTR_BITS;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue