Home
last modified time | relevance | path

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

/linux/lib/zstd/common/
A Dentropy_common.c251 size_t HUF_readStats(BYTE* huffWeight, size_t hwSize, U32* rankStats, in HUF_readStats() argument
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 …T_ATTRIBUTE("bmi2") size_t HUF_readStats_body_bmi2(BYTE* huffWeight, size_t hwSize, U32* rankStats, in HUF_readStats_body_bmi2() argument
340 …return HUF_readStats_body(huffWeight, hwSize, rankStats, nbSymbolsPtr, tableLogPtr, src, srcSize, … in HUF_readStats_body_bmi2()
[all …]
A Dhuf.h229 U32* rankStats, U32* nbSymbolsPtr, U32* tableLogPtr,
240 U32* rankStats, U32* nbSymbolsPtr, U32* tableLogPtr,
/linux/lib/zstd/decompress/
A 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()

Completed in 9 milliseconds