xapian-core  2.0.0
Functions
popcount.h File Reference

Count the number of set bits in an integer type. More...

+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

template<typename A , typename V >
static void add_popcount (A &accumulator, V value)
 Add the number of set bits in value to accumulator. More...
 

Detailed Description

Count the number of set bits in an integer type.

Definition in file popcount.h.

Function Documentation

◆ add_popcount()

template<typename A , typename V >
static void add_popcount ( A accumulator,
value 
)
inlinestatic

Add the number of set bits in value to accumulator.

Definition at line 39 of file popcount.h.

Referenced by EditDistanceCalculator::calc(), GlassFreeListChecker::count_set_bits(), and HoneyFreeListChecker::count_set_bits().