Lines Matching defs:hash
78 * the load factor of the ddict hash set.
88 const U64 hash = xxh64(&dictID, sizeof(U32), 0);
90 return hash & (hashSet->ddictPtrTableSize - 1);
119 /* Expands hash table by factor of DDICT_HASHSET_RESIZE_FACTOR and
130 DEBUGLOG(4, "Expanding DDict hash table! Old size: %zu new size: %zu", oldTableSize, newTableSize);
141 DEBUGLOG(4, "Finished re-hash");
166 /* Allocates space for and returns a ddict hash set
167 * The hash set's ZSTD_DDict* table has all values automatically set to NULL to begin with.
172 DEBUGLOG(4, "Allocating new hash set");
189 DEBUGLOG(4, "Freeing ddict hash set");
198 /* Public function: Adds a DDict into the ZSTD_DDictHashSet, possibly triggering a resize of the hash set.
1618 RETURN_ERROR(memory_allocation, "Failed to allocate memory for hash set!");