shithub: scc

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