Home
last modified time | relevance | path

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

/Linux-v4.19/lib/zstd/
Dhuf_compress.c290 static U32 HUF_setMaxHeight(nodeElt *huffNode, U32 lastNonNull, U32 maxNbBits) in HUF_setMaxHeight() argument
292 const U32 largestBits = huffNode[lastNonNull].nbBits; in HUF_setMaxHeight()
302 while (huffNode[n].nbBits > maxNbBits) { in HUF_setMaxHeight()
303 totalCost += baseCost - (1 << (largestBits - huffNode[n].nbBits)); in HUF_setMaxHeight()
304 huffNode[n].nbBits = (BYTE)maxNbBits; in HUF_setMaxHeight()
307 while (huffNode[n].nbBits == maxNbBits) in HUF_setMaxHeight()
324 if (huffNode[pos].nbBits >= currNbBits) in HUF_setMaxHeight()
326 currNbBits = huffNode[pos].nbBits; /* < maxNbBits */ in HUF_setMaxHeight()
341 U32 const highTotal = huffNode[highPos].count; in HUF_setMaxHeight()
342 U32 const lowTotal = 2 * huffNode[lowPos].count; in HUF_setMaxHeight()
[all …]