Home
last modified time | relevance | path

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

/linux-6.1.9/lib/zstd/compress/
Dhuf_compress.c377 rankPos rankPosition[RANK_POSITION_TABLE_SIZE]; member
390 … void HUF_sort(nodeElt* huffNode, const unsigned* count, U32 maxSymbolValue, rankPos* rankPosition) in HUF_sort() argument
401 ZSTD_memset(rankPosition, 0, sizeof(*rankPosition) * RANK_POSITION_TABLE_SIZE); in HUF_sort()
404 rankPosition[lowerRank].base++; in HUF_sort()
406 assert(rankPosition[RANK_POSITION_TABLE_SIZE - 1].base == 0); in HUF_sort()
408 rankPosition[n-1].base += rankPosition[n].base; in HUF_sort()
409 rankPosition[n-1].curr = rankPosition[n-1].base; in HUF_sort()
415 U32 pos = rankPosition[r].curr++; in HUF_sort()
419 while ((pos > rankPosition[r].base) && (c > huffNode[pos-1].count)) { in HUF_sort()
527 HUF_sort(huffNode, count, maxSymbolValue, wksp_tables->rankPosition); in HUF_buildCTable_wksp()