Lines Matching +defs:hash +defs:table
58 uint32_t hash;
62 static struct hentry *table[1024];
70 uint32_t hash = 0;
72 hash = hash * 33 + c; /* "perl": k=33, r=r+r/32 */
73 return hash + (hash >> 5);
80 *h = hash_str(str) % __arraycount(table);
82 for (e = table[*h]; e; e = e->next)
83 if (e->hash == *h && strcmp(e->str, str) == 0)
100 e->hash = h;
101 e->next = table[h];
102 table[h] = e;