shithub: hmap

ref: 03f72f7bc34e43a767cf3686ac3c0f55cf7c64d5
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;
};