Home
last modified time | relevance | path

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

/linux-6.12.1/lib/zstd/compress/
Dhuf_compress.c312 { int totalCost = 0; in HUF_setMaxHeight() local
321 totalCost += baseCost - (1 << (largestBits - huffNode[n].nbBits)); in HUF_setMaxHeight()
332 assert((totalCost & (baseCost - 1)) == 0); in HUF_setMaxHeight()
333 totalCost >>= (largestBits - maxNbBits); in HUF_setMaxHeight()
334 assert(totalCost > 0); in HUF_setMaxHeight()
350 while (totalCost > 0) { in HUF_setMaxHeight()
354 U32 nBitsToDecrease = BIT_highbit32((U32)totalCost) + 1; in HUF_setMaxHeight()
374 totalCost -= 1 << (nBitsToDecrease-1); in HUF_setMaxHeight()
405 while (totalCost < 0) { /* Sometimes, cost correction overshoot */ in HUF_setMaxHeight()
414 totalCost++; in HUF_setMaxHeight()
[all …]