Fast and simple bloom filters in C and Python
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

18 lines
304 B

typedef
struct {
size_t num_elems;
size_t num_ints;
uint32_t *arr;
}
bit_array_t;
int printbits(uint32_t, size_t);
int print_barray(bit_array_t*);
bit_array_t* new_bitarray(int);
uint64_t get_index(int, const char*);
int setbit(bit_array_t*, int);
int unsetbit(bit_array_t*, int);