projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
memcpy: use malloc
[fio.git]
/
lib
/
bloom.c
diff --git
a/lib/bloom.c
b/lib/bloom.c
index fa38db9551469f2eaaef29b5bce51bee2e71e487..bb81dbbdf8c9b285b1f43f3b339f346a90881a63 100644
(file)
--- a/
lib/bloom.c
+++ b/
lib/bloom.c
@@
-65,6
+65,7
@@
struct bloom *bloom_new(uint64_t entries)
struct bloom *b;
size_t no_uints;
+ crc32c_arm64_probe();
crc32c_intel_probe();
b = malloc(sizeof(*b));
@@
-103,8
+104,10
@@
static bool __bloom_check(struct bloom *b, const void *data, unsigned int len,
if (b->map[index] & (1U << bit))
was_set++;
- if (set)
+
else
if (set)
b->map[index] |= 1U << bit;
+ else
+ break;
}
return was_set == N_HASHES;