Home | History | Annotate | Download | only in src

Lines Matching refs:hash

38 // Sort the hash list, count the total number of collisions and return
69 int PrintCollisions ( hashfunc<hashtype> hash, std::vector<keytype> & keys )
80 hashtype h = hash(&k1,sizeof(keytype),0);
140 hashtype & hash = hashes[j];
142 uint32_t index = window(&hash,sizeof(hash),start,width);
261 bool TestKeyList ( hashfunc<hashtype> hash, std::vector<keytype> & keys, bool testColl, bool testDist, bool drawDiagram )
277 hash(&k,sizeof(k),0,&hashes[i]);
291 // 8-bit sections of the hash value, check distribution on all of them.
295 // really model the normal usage of hash functions in hash table lookup, so
296 // I'm not sure it's that useful (and hash functions that fail this test but
326 hashtype & hash = hashes[i];
328 uint32_t pa = window(&hash,sizeof(hash),a,8);
329 uint32_t pb = window(&hash,sizeof(hash),b,8);
371 hashtype & hash = hashes[j];
373 uint32_t index = window(&hash,sizeof(hash),start,16);