Home
last modified time | relevance | path

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

/linux-6.12.1/lib/zstd/common/
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
283 huffWeight[n] = ip[n/2] >> 4; in HUF_readStats_body()
284 huffWeight[n+1] = ip[n/2] & 15; in HUF_readStats_body()
289 … oSize = FSE_decompress_wksp_bmi2(huffWeight, hwSize-1, ip+1, iSize, 6, workSpace, wkspSize, bmi2); in HUF_readStats_body()
297 if (huffWeight[n] > HUF_TABLELOG_MAX) return ERROR(corruption_detected); in HUF_readStats_body()
298 rankStats[huffWeight[n]]++; in HUF_readStats_body()
299 weightTotal += (1 << huffWeight[n]) >> 1; in HUF_readStats_body()
313 huffWeight[oSize] = (BYTE)lastWeight; in HUF_readStats_body()
[all …]
Dhuf.h226 size_t HUF_readStats(BYTE* huffWeight, size_t hwSize,
237 size_t HUF_readStats_wksp(BYTE* huffWeight, size_t hwSize,
/linux-6.12.1/lib/zstd/compress/
Dhuf_compress.c166 BYTE huffWeight[HUF_SYMBOLVALUE_MAX]; member
187 wksp->huffWeight[n] = wksp->bitsToWeight[HUF_getNbBits(ct[n])]; in HUF_writeCTable_wksp()
191 …{ CHECK_V_F(hSize, HUF_compressWeights(op+1, maxDstSize-1, wksp->huffWeight, maxSymbolValue, &wk… in HUF_writeCTable_wksp()
201 …wksp->huffWeight[maxSymbolValue] = 0; /* to be sure it doesn't cause msan issue in final combina… in HUF_writeCTable_wksp()
203 op[(n/2)+1] = (BYTE)((wksp->huffWeight[n] << 4) + wksp->huffWeight[n+1]); in HUF_writeCTable_wksp()
220 …BYTE huffWeight[HUF_SYMBOLVALUE_MAX + 1]; /* init not required, even though some static analyzer… in HUF_readCTable() local
227 …CHECK_V_F(readSize, HUF_readStats(huffWeight, HUF_SYMBOLVALUE_MAX+1, rankVal, &nbSymbols, &tableLo… in HUF_readCTable()
246 const U32 w = huffWeight[n]; in HUF_readCTable()
/linux-6.12.1/lib/zstd/decompress/
Dhuf_decompress.c299 static U32 HUF_rescaleStats(BYTE* huffWeight, U32* rankVal, U32 nbSymbols, U32 tableLog, U32 target… in HUF_rescaleStats() argument
308 huffWeight[s] += (BYTE)((huffWeight[s] == 0) ? 0 : scale); in HUF_rescaleStats()
329 BYTE huffWeight[HUF_SYMBOLVALUE_MAX + 1]; member
353 …iSize = HUF_readStats_wksp(wksp->huffWeight, HUF_SYMBOLVALUE_MAX + 1, wksp->rankVal, &nbSymbols, &… in HUF_readDTableX1_wksp_bmi2()
361 … tableLog = HUF_rescaleStats(wksp->huffWeight, wksp->rankVal, nbSymbols, tableLog, targetTableLog); in HUF_readDTableX1_wksp_bmi2()
393 size_t const w = wksp->huffWeight[n+u]; in HUF_readDTableX1_wksp_bmi2()
398 size_t const w = wksp->huffWeight[n]; in HUF_readDTableX1_wksp_bmi2()