Fix previous commit.
GitOrigin-RevId: b59e7accdc77715b756c5c219b89dada1e89a776
This commit is contained in:
parent
5a56da186f
commit
9bb38365f6
@ -98,7 +98,7 @@ inline int32 count_bits64(uint64 x) {
|
|||||||
|
|
||||||
inline int32 count_leading_zeroes32(uint32 x) {
|
inline int32 count_leading_zeroes32(uint32 x) {
|
||||||
unsigned __int32 res = 0;
|
unsigned __int32 res = 0;
|
||||||
if (_BitScanReverse(&__int32, x)) {
|
if (_BitScanReverse(&res, x)) {
|
||||||
return 31 - res;
|
return 31 - res;
|
||||||
}
|
}
|
||||||
return 32;
|
return 32;
|
||||||
|
Reference in New Issue
Block a user