Function ADS::hash_xor

Function Documentation

std::uint64_t ADS::hash_xor(std::string_view k, int p)

the XOR of the blocks of p bits of bin( k ), the last one padded with zeros on the right

Pre:

1 <= p <= 63

Post:

the result is below 2^p