Zeth - Zerocash on Ethereum
0.8
Reference implementation of the Zeth protocol by Clearmatics
|
Compile-time computations related to bit representations of size_t values. More...
#include <utils.hpp>
Static Public Member Functions | |
static constexpr size_t | bit_size () |
static constexpr size_t | hamming_weight () |
Compile-time computations related to bit representations of size_t values.
|
staticconstexpr |
Minimum number of bits required to represent this number. bit_size(7) == 3 bit_size(4) == 3 bit_size(0) == 0
|
staticconstexpr |
Count number of 1 bits. hamming_weight(7) == 3 hamming_weight(4) == 1 hamming_weight(0) == 0