Home
last modified time | relevance | path

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

/f-stack/freebsd/contrib/zstd/lib/compress/
H A Dhuf_compress.c261 U32 rankLast[HUF_TABLELOG_MAX+2]; in HUF_setMaxHeight() local
264 ZSTD_memset(rankLast, 0xF0, sizeof(rankLast)); in HUF_setMaxHeight()
298 huffNode[rankLast[nBitsToDecrease]].nbBits++; in HUF_setMaxHeight()
304 if (rankLast[nBitsToDecrease-1] == noSymbol) in HUF_setMaxHeight()
305 rankLast[nBitsToDecrease-1] = rankLast[nBitsToDecrease]; in HUF_setMaxHeight()
314 rankLast[nBitsToDecrease] = noSymbol; in HUF_setMaxHeight()
316 rankLast[nBitsToDecrease]--; in HUF_setMaxHeight()
332 if (rankLast[1] == noSymbol) { in HUF_setMaxHeight()
336 rankLast[1] = (U32)(n+1); in HUF_setMaxHeight()
340 huffNode[ rankLast[1] + 1 ].nbBits--; in HUF_setMaxHeight()
[all …]
/f-stack/freebsd/contrib/openzfs/module/zstd/lib/
H A Dzstd.c8601 U32 rankLast[HUF_TABLELOG_MAX+2]; in HUF_setMaxHeight() local
8604 memset(rankLast, 0xF0, sizeof(rankLast)); in HUF_setMaxHeight()
8610 rankLast[maxNbBits-currentNbBits] = (U32)pos; in HUF_setMaxHeight()
8629 if (rankLast[nBitsToDecrease-1] == noSymbol) in HUF_setMaxHeight()
8630rankLast[nBitsToDecrease-1] = rankLast[nBitsToDecrease]; /* this rank is no longer empty */ in HUF_setMaxHeight()
8631 huffNode[rankLast[nBitsToDecrease]].nbBits ++; in HUF_setMaxHeight()
8633 rankLast[nBitsToDecrease] = noSymbol; in HUF_setMaxHeight()
8635 rankLast[nBitsToDecrease]--; in HUF_setMaxHeight()
8645 rankLast[1] = (U32)(n+1); in HUF_setMaxHeight()
8649 huffNode[ rankLast[1] + 1 ].nbBits--; in HUF_setMaxHeight()
[all …]