We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5925c3f commit 8455a52Copy full SHA for 8455a52
src/lib/hash.h
@@ -32,12 +32,10 @@ bool hash_iter_next(struct hash_iter *iter,
32
const void **key,
33
const void **value);
34
35
-extern uint64_t fnv1a_64_seed;
36
-extern uint32_t fnv1a_32_seed;
37
-
38
static inline uint64_t fnv1a_64(const void *buffer, size_t len)
39
{
40
const unsigned char *data = (unsigned char *)buffer;
+ extern uint64_t fnv1a_64_seed;
41
uint64_t hash;
42
43
for (hash = fnv1a_64_seed; len--; data++) {
@@ -50,6 +48,7 @@ static inline uint64_t fnv1a_64(const void *buffer, size_t len)
50
48
static inline uint32_t fnv1a_32(const void *buffer, size_t len)
51
49
52
+ extern uint32_t fnv1a_32_seed;
53
uint32_t hash;
54
55
for (hash = fnv1a_32_seed; len--; data++) {
0 commit comments