Home
last modified time | relevance | path

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

/linux-6.1.9/lib/zstd/common/
Dentropy_common.c252 size_t HUF_readStats(BYTE* huffWeight, size_t hwSize, U32* rankStats, in HUF_readStats() argument
257 …return HUF_readStats_wksp(huffWeight, hwSize, rankStats, nbSymbolsPtr, tableLogPtr, src, srcSize, … in HUF_readStats()
262 HUF_readStats_body(BYTE* huffWeight, size_t hwSize, U32* rankStats, in HUF_readStats_body() argument
296 ZSTD_memset(rankStats, 0, (HUF_TABLELOG_MAX + 1) * sizeof(U32)); in HUF_readStats_body()
300 rankStats[huffWeight[n]]++; in HUF_readStats_body()
316 rankStats[lastWeight]++; in HUF_readStats_body()
320 …if ((rankStats[1] < 2) || (rankStats[1] & 1)) return ERROR(corruption_detected); /* by construct… in HUF_readStats_body()
328 static size_t HUF_readStats_body_default(BYTE* huffWeight, size_t hwSize, U32* rankStats, in HUF_readStats_body_default() argument
333 …return HUF_readStats_body(huffWeight, hwSize, rankStats, nbSymbolsPtr, tableLogPtr, src, srcSize, … in HUF_readStats_body_default()
337 …T_ATTRIBUTE("bmi2") size_t HUF_readStats_body_bmi2(BYTE* huffWeight, size_t hwSize, U32* rankStats, in HUF_readStats_body_bmi2() argument
[all …]
Dhuf.h229 U32* rankStats, U32* nbSymbolsPtr, U32* tableLogPtr,
240 U32* rankStats, U32* nbSymbolsPtr, U32* tableLogPtr,
/linux-6.1.9/lib/zstd/decompress/
Dhuf_decompress.c619 U32 rankStats[HUF_TABLELOG_MAX + 1]; member
643 ZSTD_memset(wksp->rankStats, 0, sizeof(wksp->rankStats)); in HUF_readDTableX2_wksp()
650 …iSize = HUF_readStats_wksp(wksp->weightList, HUF_SYMBOLVALUE_MAX + 1, wksp->rankStats, &nbSymbols,… in HUF_readDTableX2_wksp()
657 …for (maxW = tableLog; wksp->rankStats[maxW]==0; maxW--) {} /* necessarily finds a solution before… in HUF_readDTableX2_wksp()
663 nextRankStart += wksp->rankStats[w]; in HUF_readDTableX2_wksp()
688 nextRankVal += wksp->rankStats[w] << (w+rescale); in HUF_readDTableX2_wksp()