shithub: scc

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