Searched refs:huffNode (Results 1 – 1 of 1) sorted by relevance
305 static U32 HUF_setMaxHeight(nodeElt* huffNode, U32 lastNonNull, U32 maxNbBits) in HUF_setMaxHeight() argument307 const U32 largestBits = huffNode[lastNonNull].nbBits; in HUF_setMaxHeight()320 while (huffNode[n].nbBits > maxNbBits) { in HUF_setMaxHeight()321 totalCost += baseCost - (1 << (largestBits - huffNode[n].nbBits)); in HUF_setMaxHeight()322 huffNode[n].nbBits = (BYTE)maxNbBits; in HUF_setMaxHeight()326 assert(huffNode[n].nbBits <= maxNbBits); in HUF_setMaxHeight()328 while (huffNode[n].nbBits == maxNbBits) --n; in HUF_setMaxHeight()345 if (huffNode[pos].nbBits >= currentNbBits) continue; in HUF_setMaxHeight()346 currentNbBits = huffNode[pos].nbBits; /* < maxNbBits */ in HUF_setMaxHeight()363 { U32 const highTotal = huffNode[highPos].count; in HUF_setMaxHeight()[all …]