Windows build ready. Program icon, however, exceeds string length on MSVC.
This commit is contained in:
@@ -48,7 +48,9 @@ static bit_scan_result FindLeastSignificantSetBit(U32 Value)
|
||||
memset(&Result, 0, sizeof(Result));
|
||||
|
||||
#if COMPILER_MSVC
|
||||
Result.Found = _BitScanForward(&Result.Index, Value); // TODO: I have not tested this.
|
||||
unsigned long Index;
|
||||
Result.Found = _BitScanForward(&Index, Value);
|
||||
Result.Index = (U32)Index;
|
||||
#elif COMPILER_CLANG
|
||||
Result.Index = __builtin_ffsll(Value); // NOTE: It is a GCC function, but is supported by clang compiler.
|
||||
// https://gcc.gnu.org/onlinedocs/gcc/Bit-Operation-Builtins.html
|
||||
|
||||
Reference in New Issue
Block a user