shithub: scc

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