simdpp::reduce_popcnt
From libsimdpp-docs
< int
template<unsigned N, class E1>
uint32_t reduce_popcnt( const Vec1<N,E1>& a ); |
||
computes the sum of set bits (population count) in all elements in the vector.
The implementation behaves as if the following set of overloads is provided:
Vec1
|
---|
int8 |
uint8 |
int16 |
uint16 |
int32 |
uint32 |
int64 |
uint64 |
Parameters[edit]
a | - | integer vector |
Return value[edit]
Population
Equivalent operation[edit]
r = popcnt(a0) + popcnt(a1) + ... + popcnt(aN)
See also[edit]
computes the number of set bits (function template) |