Home
last modified time | relevance | path

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

/linux-5.19.10/lib/zstd/compress/
Dhuf_compress.c251 { int totalCost = 0; in HUF_setMaxHeight() local
260 totalCost += baseCost - (1 << (largestBits - huffNode[n].nbBits)); in HUF_setMaxHeight()
271 assert((totalCost & (baseCost - 1)) == 0); in HUF_setMaxHeight()
272 totalCost >>= (largestBits - maxNbBits); in HUF_setMaxHeight()
273 assert(totalCost > 0); in HUF_setMaxHeight()
289 while (totalCost > 0) { in HUF_setMaxHeight()
293 U32 nBitsToDecrease = BIT_highbit32((U32)totalCost) + 1; in HUF_setMaxHeight()
313 totalCost -= 1 << (nBitsToDecrease-1); in HUF_setMaxHeight()
344 while (totalCost < 0) { /* Sometimes, cost correction overshoot */ in HUF_setMaxHeight()
353 totalCost++; in HUF_setMaxHeight()
[all …]