Merge pull request #224 from TheLavaBlock/fix-win32-build

Fix build - 64 bit functions do not exist
This commit is contained in:
Adam Sawicki 2022-01-24 12:24:54 +01:00 committed by GitHub
commit 6e22ae3109
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3074,7 +3074,7 @@ static inline uint32_t VmaCountBitsSet(uint32_t v)
static inline uint8_t VmaBitScanLSB(uint64_t mask)
{
#ifdef _MSC_VER
#if defined(_MSC_VER) && defined(_WIN64)
unsigned long pos;
if (_BitScanForward64(&pos, mask))
return static_cast<uint8_t>(pos);
@ -3108,7 +3108,7 @@ static inline uint8_t VmaBitScanLSB(uint32_t mask)
static inline uint8_t VmaBitScanMSB(uint64_t mask)
{
#ifdef _MSC_VER
#if defined(_MSC_VER) && defined(_WIN64)
unsigned long pos;
if (_BitScanReverse64(&pos, mask))
return static_cast<uint8_t>(pos);