|
tlx
|
#include <cstdint>#include <cstdlib>Go to the source code of this file.
Namespaces | |
| namespace | tlx |
Functions | |
| static unsigned | popcount_generic8 (std::uint8_t x) |
| popcount (count one bits) - generic SWAR implementation | |
| static unsigned | popcount_generic16 (std::uint16_t x) |
| popcount (count one bits) - generic SWAR implementation | |
| static unsigned | popcount_generic32 (std::uint32_t x) |
| popcount (count one bits) - generic SWAR implementation from https://stackoverflow.com/questions/109023 | |
| static unsigned | popcount_generic64 (std::uint64_t x) |
| popcount (count one bits) - generic SWAR implementation | |
| template<typename Integral> | |
| unsigned | popcount (Integral i) |
| popcount (count one bits) | |
| static size_t | popcount (const void *data, size_t size) |