Searched refs:hashSet (Results 1 - 1 of 1) sorted by relevance

/linux-master/lib/zstd/decompress/
H A Dzstd_decompress.c85 * Returns an index between [0, hashSet->ddictPtrTableSize]
87 static size_t ZSTD_DDictHashSet_getIndex(const ZSTD_DDictHashSet* hashSet, U32 dictID) { argument
89 /* DDict ptr table size is a multiple of 2, use size - 1 as mask to get index within [0, hashSet->ddictPtrTableSize) */
90 return hash & (hashSet->ddictPtrTableSize - 1);
97 static size_t ZSTD_DDictHashSet_emplaceDDict(ZSTD_DDictHashSet* hashSet, const ZSTD_DDict* ddict) { argument
99 size_t idx = ZSTD_DDictHashSet_getIndex(hashSet, dictID);
100 const size_t idxRangeMask = hashSet->ddictPtrTableSize - 1;
101 RETURN_ERROR_IF(hashSet->ddictPtrCount == hashSet->ddictPtrTableSize, GENERIC, "Hash set is full!");
103 while (hashSet
123 ZSTD_DDictHashSet_expand(ZSTD_DDictHashSet* hashSet, ZSTD_customMem customMem) argument
148 ZSTD_DDictHashSet_getDDict(ZSTD_DDictHashSet* hashSet, U32 dictID) argument
188 ZSTD_freeDDictHashSet(ZSTD_DDictHashSet* hashSet, ZSTD_customMem customMem) argument
201 ZSTD_DDictHashSet_addDDict(ZSTD_DDictHashSet* hashSet, const ZSTD_DDict* ddict, ZSTD_customMem customMem) argument
[all...]

Completed in 123 milliseconds