src/bitcount.c
/**
 * \brief Use a dictionary of bit counts for all bytes.
 * Similar to http://graphics.stanford.edu/~seander/bithacks.html#CountBitsSetTable.
 */
\brief Use a dictionary of bit counts for all bytes.
\ brief Use a dictionary of bit counts for all bytes .
inline int32 bitcount_dictionary(uint8 *data, uint8 *end) {
    int32 count = 0;
    uint8 *p = data;
    while (p < end) {
        count += uint8_bits[*p];
        ++p;
    }
    return count;
}
inline int32 bitcount_dictionary ( uint8 * data , uint8 * end ) { int32 count = 0 ; uint8 * p = data ; while ( p < end ) { count += uint8_bits [ * p ] ; ++ p ; } return count ; }
\brief Use a dictionary of bit counts for all bytes.
\ brief Use a dictionary of bit counts for all bytes .