rocr: Fix Windows build and Ctz implementation (#1634)

Этот коммит содержится в:
German Andryeyev authored and GitHub committed 2025-11-03 12:07:11 -05:00
1 родитель d998a5280a
Коммит ee1158b7b8
2 files changed
+19 -2

No files matched your search

+2 -2
Просмотреть файл
@@ -470,8 +470,8 @@ int Ffs(int i) {
int Ctz(uint64_t i) {
unsigned long index;
if (_BitScanReverse64(&index, i)) {
return sizeof(i) * 8 - 1 - index;
if (_BitScanForward64(&index, i)) {
return index;
} else {
return sizeof(i) * 8;
}