shithub: scc

ref: 0f595fa896765dfdbe88c760ebd97edd8a1f123b
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;
}