Home
last modified time | relevance | path

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

/linux/lib/zstd/compress/
A Dhuf_compress.c420 huffNode[pos] = huffNode[pos-1]; in HUF_sort()
423 huffNode[pos].count = c; in HUF_sort()
453 huffNode[nodeNb].count = huffNode[lowS].count + huffNode[lowS-1].count; in HUF_buildTree()
454 huffNode[lowS].parent = huffNode[lowS-1].parent = (U16)nodeNb; in HUF_buildTree()
461 int const n1 = (huffNode[lowS].count < huffNode[lowN].count) ? lowS-- : lowN++; in HUF_buildTree()
462 int const n2 = (huffNode[lowS].count < huffNode[lowN].count) ? lowS-- : lowN++; in HUF_buildTree()
463 huffNode[nodeNb].count = huffNode[n1].count + huffNode[n2].count; in HUF_buildTree()
464 huffNode[n1].parent = huffNode[n2].parent = (U16)nodeNb; in HUF_buildTree()
469 huffNode[nodeRoot].nbBits = 0; in HUF_buildTree()
471 huffNode[n].nbBits = huffNode[ huffNode[n].parent ].nbBits + 1; in HUF_buildTree()
[all …]

Completed in 8 milliseconds