[][src]Function qt_core::q_population_count_u8

pub unsafe fn q_population_count_u8(v: u8) -> c_uint

Returns the number of bits set in v. This number is also called the Hamming Weight of v.

Calls C++ function: unsigned int qPopulationCount(quint8 v).

C++ documentation:

Returns the number of bits set in v. This number is also called the Hamming Weight of v.

This function was introduced in Qt 5.2.