summaryrefslogtreecommitdiff
path: root/hash.h
blob: 10271cc30e788d2e7e8917a2cf0f981cf2f31f1f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#ifndef HASH_H
#define    HASH_H

typedef uint32_t (*hash_func)(const void *key, size_t length);
extern hash_func hash;

enum hashfunc_type {
    JENKINS_HASH=0, MURMUR3_HASH, XXH3_HASH
};

int hash_init(enum hashfunc_type type);

#endif    /* HASH_H */