Home
last modified time | relevance | path

Searched refs:huffWeight (Results 1 – 4 of 4) 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
285 huffWeight[n] = ip[n/2] >> 4; in HUF_readStats_body()
286 huffWeight[n+1] = ip[n/2] & 15; in HUF_readStats_body()
291 … oSize = FSE_decompress_wksp_bmi2(huffWeight, hwSize-1, ip+1, iSize, 6, workSpace, wkspSize, bmi2); in HUF_readStats_body()
299 if (huffWeight[n] >= HUF_TABLELOG_MAX) return ERROR(corruption_detected); in HUF_readStats_body()
300 rankStats[huffWeight[n]]++; in HUF_readStats_body()
301 weightTotal += (1 << huffWeight[n]) >> 1; in HUF_readStats_body()
315 huffWeight[oSize] = (BYTE)lastWeight; in HUF_readStats_body()
[all …]
Dhuf.h228 size_t HUF_readStats(BYTE* huffWeight, size_t hwSize,
239 size_t HUF_readStats_wksp(BYTE* huffWeight, size_t hwSize,
/linux-6.1.9/lib/zstd/compress/
Dhuf_compress.c110 BYTE huffWeight[HUF_SYMBOLVALUE_MAX]; member
130 wksp->huffWeight[n] = wksp->bitsToWeight[CTable[n].nbBits]; in HUF_writeCTable_wksp()
133 …{ CHECK_V_F(hSize, HUF_compressWeights(op+1, maxDstSize-1, wksp->huffWeight, maxSymbolValue, &wk… in HUF_writeCTable_wksp()
143 …wksp->huffWeight[maxSymbolValue] = 0; /* to be sure it doesn't cause msan issue in final combina… in HUF_writeCTable_wksp()
145 op[(n/2)+1] = (BYTE)((wksp->huffWeight[n] << 4) + wksp->huffWeight[n+1]); in HUF_writeCTable_wksp()
162 …BYTE huffWeight[HUF_SYMBOLVALUE_MAX + 1]; /* init not required, even though some static analyzer… in HUF_readCTable() local
168 …CHECK_V_F(readSize, HUF_readStats(huffWeight, HUF_SYMBOLVALUE_MAX+1, rankVal, &nbSymbols, &tableLo… in HUF_readCTable()
185 const U32 w = huffWeight[n]; in HUF_readCTable()
/linux-6.1.9/lib/zstd/decompress/
Dhuf_decompress.c138 BYTE huffWeight[HUF_SYMBOLVALUE_MAX + 1]; member
162 …iSize = HUF_readStats_wksp(wksp->huffWeight, HUF_SYMBOLVALUE_MAX + 1, wksp->rankVal, &nbSymbols, &… in HUF_readDTableX1_wksp_bmi2()
198 size_t const w = wksp->huffWeight[n+u]; in HUF_readDTableX1_wksp_bmi2()
203 size_t const w = wksp->huffWeight[n]; in HUF_readDTableX1_wksp_bmi2()