Home
last modified time | relevance | path

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

/freebsd/sys/contrib/openzfs/module/zstd/lib/compress/
H A Dhuf_compress.c251 U32 nBitsToDecrease = BIT_highbit32((U32)totalCost) + 1; in HUF_setMaxHeight() local
252 for ( ; nBitsToDecrease > 1; nBitsToDecrease--) { in HUF_setMaxHeight()
253 U32 const highPos = rankLast[nBitsToDecrease]; in HUF_setMaxHeight()
254 U32 const lowPos = rankLast[nBitsToDecrease-1]; in HUF_setMaxHeight()
263 … while ((nBitsToDecrease<=HUF_TABLELOG_MAX) && (rankLast[nBitsToDecrease] == noSymbol)) in HUF_setMaxHeight()
264 nBitsToDecrease ++; in HUF_setMaxHeight()
265 totalCost -= 1 << (nBitsToDecrease-1); in HUF_setMaxHeight()
266 if (rankLast[nBitsToDecrease-1] == noSymbol) in HUF_setMaxHeight()
267 … rankLast[nBitsToDecrease-1] = rankLast[nBitsToDecrease]; /* this rank is no longer empty */ in HUF_setMaxHeight()
268 huffNode[rankLast[nBitsToDecrease]].nbBits ++; in HUF_setMaxHeight()
[all …]
/freebsd/sys/contrib/zstd/lib/compress/
H A Dhuf_compress.c357 U32 nBitsToDecrease = BIT_highbit32((U32)totalCost) + 1; in HUF_setMaxHeight() local
358 for ( ; nBitsToDecrease > 1; nBitsToDecrease--) { in HUF_setMaxHeight()
359 U32 const highPos = rankLast[nBitsToDecrease]; in HUF_setMaxHeight()
360 U32 const lowPos = rankLast[nBitsToDecrease-1]; in HUF_setMaxHeight()
371 assert(rankLast[nBitsToDecrease] != noSymbol || nBitsToDecrease == 1); in HUF_setMaxHeight()
373 … while ((nBitsToDecrease<=HUF_TABLELOG_MAX) && (rankLast[nBitsToDecrease] == noSymbol)) in HUF_setMaxHeight()
374 nBitsToDecrease++; in HUF_setMaxHeight()
375 assert(rankLast[nBitsToDecrease] != noSymbol); in HUF_setMaxHeight()
377 totalCost -= 1 << (nBitsToDecrease-1); in HUF_setMaxHeight()
378 huffNode[rankLast[nBitsToDecrease]].nbBits++; in HUF_setMaxHeight()
[all …]