shithub: scc

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