shithub: scc

ref: bb31d7f5c7e1b4b97b2012d9dca26130300cbe72
dir: /src/libscc/genhash.c/

View raw version
unsigned
genhash(char *name)
{
	unsigned h;
	char c;

	for (h = 0; c = *name; ++name)
		h = h*33 ^ c;

	return h;
}