Home
last modified time | relevance | path

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

/src/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 …]
/src/sys/contrib/openzfs/module/zstd/lib/compress/
H A Dhuf_compress.c428 U32 nBitsToDecrease = ZSTD_highbit32((U32)totalCost) + 1; in HUF_setMaxHeight() local
429 for ( ; nBitsToDecrease > 1; nBitsToDecrease--) { in HUF_setMaxHeight()
430 U32 const highPos = rankLast[nBitsToDecrease]; in HUF_setMaxHeight()
431 U32 const lowPos = rankLast[nBitsToDecrease-1]; in HUF_setMaxHeight()
442 assert(rankLast[nBitsToDecrease] != noSymbol || nBitsToDecrease == 1); in HUF_setMaxHeight()
444 … while ((nBitsToDecrease<=HUF_TABLELOG_MAX) && (rankLast[nBitsToDecrease] == noSymbol)) in HUF_setMaxHeight()
445 nBitsToDecrease++; in HUF_setMaxHeight()
446 assert(rankLast[nBitsToDecrease] != noSymbol); in HUF_setMaxHeight()
448 totalCost -= 1 << (nBitsToDecrease-1); in HUF_setMaxHeight()
449 huffNode[rankLast[nBitsToDecrease]].nbBits++; in HUF_setMaxHeight()
[all …]