File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -32,12 +32,10 @@ bool hash_iter_next(struct hash_iter *iter,
32
32
const void * * key ,
33
33
const void * * value );
34
34
35
- extern uint64_t fnv1a_64_seed ;
36
- extern uint32_t fnv1a_32_seed ;
37
-
38
35
static inline uint64_t fnv1a_64 (const void * buffer , size_t len )
39
36
{
40
37
const unsigned char * data = (unsigned char * )buffer ;
38
+ extern uint64_t fnv1a_64_seed ;
41
39
uint64_t hash ;
42
40
43
41
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
50
const unsigned char * data = (unsigned char * )buffer ;
51
+ extern uint32_t fnv1a_32_seed ;
53
52
uint32_t hash ;
54
53
55
54
for (hash = fnv1a_32_seed ; len -- ; data ++ ) {
You can’t perform that action at this time.
0 commit comments