Thrill  0.1
popcount.hpp File Reference
#include <cstdint>
#include <cstdlib>
+ Include dependency graph for popcount.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 tlx
 

Functions

template<typename Integral >
unsigned popcount (Integral i)
 popcount (count one bits) More...
 
static size_t popcount (const void *data, size_t size)
 
static unsigned popcount_generic16 (uint16_t x)
 popcount (count one bits) - generic SWAR implementation More...
 
static unsigned popcount_generic32 (uint32_t x)
 
static unsigned popcount_generic64 (uint64_t x)
 popcount (count one bits) - generic SWAR implementation More...
 
static unsigned popcount_generic8 (uint8_t x)
 popcount (count one bits) - generic SWAR implementation More...