shithub: scc

ref: 96318574d434d66a7ea8b3b5ebefb773f4b6cb3d
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;
}