Searched refs:hashSet (Results 1 – 1 of 1) sorted by relevance
88 static size_t ZSTD_DDictHashSet_getIndex(const ZSTD_DDictHashSet* hashSet, U32 dictID) { in ZSTD_DDictHashSet_getIndex() argument91 return hash & (hashSet->ddictPtrTableSize - 1); in ZSTD_DDictHashSet_getIndex()98 static size_t ZSTD_DDictHashSet_emplaceDDict(ZSTD_DDictHashSet* hashSet, const ZSTD_DDict* ddict) { in ZSTD_DDictHashSet_emplaceDDict() argument100 size_t idx = ZSTD_DDictHashSet_getIndex(hashSet, dictID); in ZSTD_DDictHashSet_emplaceDDict()101 const size_t idxRangeMask = hashSet->ddictPtrTableSize - 1; in ZSTD_DDictHashSet_emplaceDDict()102 …RETURN_ERROR_IF(hashSet->ddictPtrCount == hashSet->ddictPtrTableSize, GENERIC, "Hash set is full!"… in ZSTD_DDictHashSet_emplaceDDict()104 while (hashSet->ddictPtrTable[idx] != NULL) { in ZSTD_DDictHashSet_emplaceDDict()106 if (ZSTD_getDictID_fromDDict(hashSet->ddictPtrTable[idx]) == dictID) { in ZSTD_DDictHashSet_emplaceDDict()108 hashSet->ddictPtrTable[idx] = ddict; in ZSTD_DDictHashSet_emplaceDDict()115 hashSet->ddictPtrTable[idx] = ddict; in ZSTD_DDictHashSet_emplaceDDict()[all …]