shithub: scc

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