shithub: scc

ref: 15d3cccf394c8c68e3d6e8311c3b50910ad23f91
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;
}