Function ADS::hash_extraction

Function Documentation

std::uint64_t ADS::hash_extraction(std::string_view k, int p, std::size_t s)

the extraction: the p bits of bin( k ) from the place s on, counted from the left, as an integer in [ 0 , 2^p )

Pre:

1 <= p <= 63

Post:

the result is below 2^p