Fix warning.
GitOrigin-RevId: d6a208eafd95a36826a057e0e35128fefaee1c49
This commit is contained in:
parent
41191732e6
commit
73b98138d5
@ -95,7 +95,7 @@ inline int32 count_bits32(uint32 x) {
|
|||||||
|
|
||||||
inline int32 count_bits64(uint64 x) {
|
inline int32 count_bits64(uint64 x) {
|
||||||
#if defined(_M_X64)
|
#if defined(_M_X64)
|
||||||
return __popcnt64(x);
|
return static_cast<int32>(__popcnt64(x));
|
||||||
#else
|
#else
|
||||||
return count_bits32(static_cast<uint32>(x >> 32)) + count_bits32(static_cast<uint32>(x));
|
return count_bits32(static_cast<uint32>(x >> 32)) + count_bits32(static_cast<uint32>(x));
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user