Documented changes made in bloom functions

This commit is contained in:
Celine Mercier
2016-04-21 11:22:31 +02:00
parent 7a88ca619a
commit 00f2f2cc51
2 changed files with 15 additions and 4 deletions

View File

@ -122,7 +122,6 @@ static void setup_buckets(struct bloom * bloom, unsigned int cache_size)
}
// TODO
int bloom_filter_size(int entries, double error)
{
int bytes;
@ -185,7 +184,8 @@ int bloom_init_size(struct bloom * bloom, int entries, double error,
setup_buckets(bloom, cache_size);
// TODO comment
// celine.mercier@metabarcoding.org :
// Replaced the calloc with a memset, as the memory for the bloom filter is mapped in our data structure
memset(bloom->bf, 0, bloom->bytes);
//bloom->bf = (unsigned char *)calloc(bloom->bytes, sizeof(unsigned char));
//if (bloom->bf == NULL) {