main shrubtools / nviz / htab.h
 1#include <stdint.h>  /* for uint64_t */
 2
 3struct hashtablekey {
 4	uint64_t hash;
 5	const char *str;
 6	size_t len;
 7};
 8
 9void htabkey(struct hashtablekey *, const char *, size_t);
10
11struct hashtable *mkhtab(size_t);
12void delhtab(struct hashtable *, void(void *));
13void **htabput(struct hashtable *, struct hashtablekey *);
14void *htabget(struct hashtable *, struct hashtablekey *);
15
16uint64_t rapidhashv1(const void *, size_t);