summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
7790f69)
Signed-off-by: Jens Axboe <axboe@fb.com>
-static bool __bloom_check(struct bloom *b, void *data, unsigned int len,
+static bool __bloom_check(struct bloom *b, const void *data, unsigned int len,
bool set)
{
uint32_t hash[N_HASHES];
bool set)
{
uint32_t hash[N_HASHES];
{
return __bloom_check(b, data, nwords * sizeof(uint32_t), true);
}
{
return __bloom_check(b, data, nwords * sizeof(uint32_t), true);
}
+
+bool bloom_set_string(struct bloom *b, const char *data, unsigned int len)
+{
+ return __bloom_check(b, data, len, true);
+}
struct bloom *bloom_new(uint64_t entries);
void bloom_free(struct bloom *b);
bool bloom_set(struct bloom *b, uint32_t *data, unsigned int nwords);
struct bloom *bloom_new(uint64_t entries);
void bloom_free(struct bloom *b);
bool bloom_set(struct bloom *b, uint32_t *data, unsigned int nwords);
+bool bloom_set_string(struct bloom *b, const char *data, unsigned int len);