Home
last modified time | relevance | path

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

/linux-4.19.296/lib/zstd/
Dhuf_compress.c292 const U32 largestBits = huffNode[lastNonNull].nbBits; in HUF_setMaxHeight() local
293 if (largestBits <= maxNbBits) in HUF_setMaxHeight()
294 return largestBits; /* early exit : no elt > maxNbBits */ in HUF_setMaxHeight()
299 const U32 baseCost = 1 << (largestBits - maxNbBits); in HUF_setMaxHeight()
303 totalCost += baseCost - (1 << (largestBits - huffNode[n].nbBits)); in HUF_setMaxHeight()
311 …totalCost >>= (largestBits - maxNbBits); /* note : totalCost is necessarily a multiple of baseCost… in HUF_setMaxHeight()