Home
last modified time | relevance | path

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

/linux/lib/zstd/compress/
H A Dhuf_compress.c374 static U32 HUF_setMaxHeight(nodeElt* huffNode, U32 lastNonNull, U32 targetNbBits) in HUF_setMaxHeight() argument
378 if (largestBits <= targetNbBits) return largestBits; in HUF_setMaxHeight()
380 DEBUGLOG(5, "HUF_setMaxHeight (targetNbBits = %u)", targetNbBits); in HUF_setMaxHeight()
384 const U32 baseCost = 1 << (largestBits - targetNbBits); in HUF_setMaxHeight()
391 while (huffNode[n].nbBits > targetNbBits) { in HUF_setMaxHeight()
393 huffNode[n].nbBits = (BYTE)targetNbBits; in HUF_setMaxHeight()
397 assert(huffNode[n].nbBits <= targetNbBits); in HUF_setMaxHeight()
399 while (huffNode[n].nbBits == targetNbBits) --n; in HUF_setMaxHeight()
404 totalCost >>= (largestBits - targetNbBits); in HUF_setMaxHeight()
413 { U32 currentNbBits = targetNbBits; in HUF_setMaxHeight()
[all …]