Lines Matching refs:hash
1 /* $RCSfile: hash.c,v $$Revision: 4.1 $$Date: 92/08/07 18:29:20 $
9 * $Log: hash.c,v $
26 register int hash;
31 for (s=key, i=0, hash = 0;
33 s++, i++, hash *= 5) {
34 hash += *s * coeff[i];
36 entry = tb->tbl_array[hash & tb->tbl_max];
38 if (entry->hent_hash != hash) /* strings can't be equal */
52 register int hash;
58 for (s=key, i=0, hash = 0;
60 s++, i++, hash *= 5) {
61 hash += *s * coeff[i];
64 oentry = &(tb->tbl_array[hash & tb->tbl_max]);
68 if (entry->hent_hash != hash) /* strings can't be equal */
82 entry->hent_hash = hash;
101 register int hash;
107 for (s=key, i=0, hash = 0;
109 s++, i++, hash *= 5) {
110 hash += *s * coeff[i];
113 oentry = &(tb->tbl_array[hash & tb->tbl_max]);
117 if (entry->hent_hash != hash) /* strings can't be equal */