File: hash.h

package info (click to toggle)
memcached 1.6.38-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 6,236 kB
  • sloc: ansic: 62,114; perl: 12,301; sh: 4,546; makefile: 476; python: 402; xml: 59
file content (14 lines) | stat: -rw-r--r-- 255 bytes parent folder | download | duplicates (2)
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 */