Lines Matching refs:hash
137 int hash, i;
140 for (hash = 0, s = word, i = 0; i < 5 && *s; i++) /* some kind of hash*/
141 hash += *s++; /* add all chars in the word */
142 hash = (hash * 3719) & 077777; /* pulled that one out of a hat */
143 hash %= HTSIZE; /* put it into range of table */
145 for (adr = hash;; adr++) { /* look for entry in table */
187 if (adr + 1 == hash || hash == 0)
188 errx(1,"Hash table overflow");
192 /* print hash table (for debugging) */