shithub: hmap

ref: 8e631b19c4bf009a69489fcdd2e0b8c84a104a15
dir: hmap/hash.h

View raw version
typedef union Hkey Hkey;
union Hkey {
	void *p;
	int v;
};

typedef struct Hmap Hmap;
struct Hmap {
	uvlong (*hash)(void*);
	int (*cmp)(void*,void*);

	int nbs;
	int nsz;

	int len;
	int cap;
	uchar *nodes;
};