Also switch BloomFilters from H3 to siphash.

This removes all dependencies on H3 in our source tree.
This commit is contained in:
Johanna Amann 2016-07-13 09:04:10 -07:00
parent e1218cc7fa
commit f1bae871e9
8 changed files with 78 additions and 178 deletions

View file

@ -155,9 +155,10 @@ private:
int OptimalB(double error, double confidence) const;
/**
* Determines at which index (counted from the back) the first one-bit
* Determines at which index (counted from the front) the first one-bit
* appears. The last b bits have to be 0 (the element has to be divisible
* by m), hence they are ignored.
* by m), hence they are ignored. Always adds 1 to the result. This is the
* rho function from the original algorithm.
*
* @param hash_modified hash value
*
@ -165,6 +166,9 @@ private:
*/
uint8_t Rank(uint64_t hash_modified) const;
/**
* flsll from FreeBSD; especially Linux does not have this.
*/
static int flsll(uint64_t mask);
/**