Windows build ready. Program icon, however, exceeds string length on MSVC.

This commit is contained in:
2026-05-27 00:07:06 -07:00
parent 5f663308d2
commit e72db80fb4
13 changed files with 270 additions and 141 deletions
+3 -1
View File
@@ -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