Bitcoin ABC  0.26.3
P2P Digital Currency
bitmanip.h File Reference
#include <config/bitcoin-config.h>
#include <cstdint>
Include dependency graph for bitmanip.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


uint32_t countBits (uint32_t v)

Function Documentation

◆ countBits()

uint32_t countBits ( uint32_t  v)

Computes the number of bits set in each group of 8bits then uses a multiplication to sum all of them in the 8 most significant bits and return these. More detailed explanation can be found at

Definition at line 12 of file bitmanip.h.

Here is the caller graph for this function: