genhash.c - scc - simple c99 compiler (HTM) git clone git://git.simple-cc.org/scc (DIR) Log (DIR) Files (DIR) Refs (DIR) Submodules (DIR) README (DIR) LICENSE --- genhash.c (111B) --- 1 unsigned 2 genhash(char *name) 3 { 4 int c; 5 unsigned h = 5381; 6 7 while (c = *name++) 8 h = h*33 ^ c; 9 10 return h; 11 }