Home
last modified time | relevance | path

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

/linux/lib/zstd/common/
H A Dentropy_common.c251 size_t HUF_readStats(BYTE* huffWeight, size_t hwSize, U32* rankStats, in HUF_readStats() argument
256 …return HUF_readStats_wksp(huffWeight, hwSize, rankStats, nbSymbolsPtr, tableLogPtr, src, srcSize, … in HUF_readStats()
260 HUF_readStats_body(BYTE* huffWeight, size_t hwSize, U32* rankStats, in HUF_readStats_body() argument
294 ZSTD_memset(rankStats, 0, (HUF_TABLELOG_MAX + 1) * sizeof(U32)); in HUF_readStats_body()
298 rankStats[huffWeight[n]]++; in HUF_readStats_body()
314 rankStats[lastWeight]++; in HUF_readStats_body()
318 …if ((rankStats[1] < 2) || (rankStats[1] & 1)) return ERROR(corruption_detected); /* by construct… in HUF_readStats_body()
326 static size_t HUF_readStats_body_default(BYTE* huffWeight, size_t hwSize, U32* rankStats, in HUF_readStats_body_default() argument
331 …return HUF_readStats_body(huffWeight, hwSize, rankStats, nbSymbolsPtr, tableLogPtr, src, srcSize, … in HUF_readStats_body_default()
335 …I2_TARGET_ATTRIBUTE size_t HUF_readStats_body_bmi2(BYTE* huffWeight, size_t hwSize, U32* rankStats, in HUF_readStats_body_bmi2() argument
[all …]
H A Dhuf.h227 U32* rankStats, U32* nbSymbolsPtr, U32* tableLogPtr,
238 U32* rankStats, U32* nbSymbolsPtr, U32* tableLogPtr,
/linux/lib/zstd/decompress/
H A Dhuf_decompress.c1034 U32 rankStats[HUF_TABLELOG_MAX + 1]; member
1065 ZSTD_memset(wksp->rankStats, 0, sizeof(wksp->rankStats)); in HUF_readDTableX2_wksp_bmi2()
1072 …iSize = HUF_readStats_wksp(wksp->weightList, HUF_SYMBOLVALUE_MAX + 1, wksp->rankStats, &nbSymbols,… in HUF_readDTableX2_wksp_bmi2()
1080 …for (maxW = tableLog; wksp->rankStats[maxW]==0; maxW--) {} /* necessarily finds a solution before… in HUF_readDTableX2_wksp_bmi2()
1086 nextRankStart += wksp->rankStats[w]; in HUF_readDTableX2_wksp_bmi2()
1110 nextRankVal += wksp->rankStats[w] << (w+rescale); in HUF_readDTableX2_wksp_bmi2()