Lines Matching full:hash
113 new_idx = (UInt) (curr->hash % new_size);
130 CLG_DEBUG(0, "Resize Context Hash: %d => %d (entries %d, conflicts %d/%d)\n",
142 UWord hash = 0;
145 hash = (hash<<7) + (hash>>25) + (UWord)(*fn);
150 return hash;
154 static Bool is_cxt(UWord hash, fn_node** fn, Context* cxt)
159 if (hash != cxt->hash) return False;
179 UWord hash;
191 /* check fill degree of context hash table and resize if needed (>80%) */
199 // hash value calculation similar to cxt_hash_val(), but additionally
201 hash = 0;
204 hash = (hash<<7) + (hash>>25) + (UWord)(*fn);
214 cxt->hash = hash;
219 /* insert into Context hash table */
220 idx = (UInt) (hash % cxts.size);
239 UWord hash;
249 hash = cxt_hash_val(fn, size);
251 if ( ((cxt = (*fn)->last_cxt) != 0) && is_cxt(hash, fn, cxt)) {
258 idx = (UInt) (hash % cxts.size);
262 if (is_cxt(hash,fn,cxt)) break;