Lines Matching refs:nBitsToDecrease
332 U32 nBitsToDecrease = BIT_highbit32(totalCost) + 1; in HUF_setMaxHeight() local
333 for (; nBitsToDecrease > 1; nBitsToDecrease--) { in HUF_setMaxHeight()
334 U32 highPos = rankLast[nBitsToDecrease]; in HUF_setMaxHeight()
335 U32 lowPos = rankLast[nBitsToDecrease - 1]; in HUF_setMaxHeight()
349 while ((nBitsToDecrease <= HUF_TABLELOG_MAX) && (rankLast[nBitsToDecrease] == noSymbol)) in HUF_setMaxHeight()
350 nBitsToDecrease++; in HUF_setMaxHeight()
351 totalCost -= 1 << (nBitsToDecrease - 1); in HUF_setMaxHeight()
352 if (rankLast[nBitsToDecrease - 1] == noSymbol) in HUF_setMaxHeight()
353 rankLast[nBitsToDecrease - 1] = rankLast[nBitsToDecrease]; /* this rank is no longer empty */ in HUF_setMaxHeight()
354 huffNode[rankLast[nBitsToDecrease]].nbBits++; in HUF_setMaxHeight()
355 if (rankLast[nBitsToDecrease] == 0) /* special case, reached largest symbol */ in HUF_setMaxHeight()
356 rankLast[nBitsToDecrease] = noSymbol; in HUF_setMaxHeight()
358 rankLast[nBitsToDecrease]--; in HUF_setMaxHeight()
359 if (huffNode[rankLast[nBitsToDecrease]].nbBits != maxNbBits - nBitsToDecrease) in HUF_setMaxHeight()
360 rankLast[nBitsToDecrease] = noSymbol; /* this rank is now empty */ in HUF_setMaxHeight()