shithub: scc

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