Lines Matching refs:rankLast
316 U32 rankLast[HUF_TABLELOG_MAX + 2]; in HUF_setMaxHeight() local
320 memset(rankLast, 0xF0, sizeof(rankLast)); in HUF_setMaxHeight()
327 rankLast[maxNbBits - currNbBits] = pos; 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()
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()
365 …if (rankLast[1] == noSymbol) { /* special case : no rank 1 symbol (using maxNbBits-1); let's creat… in HUF_setMaxHeight()
370 rankLast[1] = n + 1; in HUF_setMaxHeight()
374 huffNode[rankLast[1] + 1].nbBits--; in HUF_setMaxHeight()
375 rankLast[1]++; in HUF_setMaxHeight()