Home
last modified time | relevance | path

Searched refs:maxNbBits (Results 1 – 2 of 2) sorted by relevance

/linux-4.19.296/lib/zstd/
Dhuf_compress.c290 static U32 HUF_setMaxHeight(nodeElt *huffNode, U32 lastNonNull, U32 maxNbBits) in HUF_setMaxHeight() argument
293 if (largestBits <= maxNbBits) in HUF_setMaxHeight()
299 const U32 baseCost = 1 << (largestBits - maxNbBits); in HUF_setMaxHeight()
302 while (huffNode[n].nbBits > maxNbBits) { in HUF_setMaxHeight()
304 huffNode[n].nbBits = (BYTE)maxNbBits; in HUF_setMaxHeight()
307 while (huffNode[n].nbBits == maxNbBits) in HUF_setMaxHeight()
311 …totalCost >>= (largestBits - maxNbBits); /* note : totalCost is necessarily a multiple of baseCost… in HUF_setMaxHeight()
322 U32 currNbBits = maxNbBits; in HUF_setMaxHeight()
327 rankLast[maxNbBits - currNbBits] = pos; in HUF_setMaxHeight()
359 if (huffNode[rankLast[nBitsToDecrease]].nbBits != maxNbBits - nBitsToDecrease) in HUF_setMaxHeight()
[all …]
Dhuf.h152 size_t HUF_buildCTable_wksp(HUF_CElt *tree, const U32 *count, U32 maxSymbolValue, U32 maxNbBits, vo…