Home
last modified time | relevance | path

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

/linux-4.19.296/lib/zstd/
Dentropy_common.c167 size_t HUF_readStats_wksp(BYTE *huffWeight, size_t hwSize, U32 *rankStats, U32 *nbSymbolsPtr, U32 *… in HUF_readStats_wksp() argument
190 huffWeight[n] = ip[n / 2] >> 4; in HUF_readStats_wksp()
191 huffWeight[n + 1] = ip[n / 2] & 15; in HUF_readStats_wksp()
197 …oSize = FSE_decompress_wksp(huffWeight, hwSize - 1, ip + 1, iSize, 6, workspace, workspaceSize); /… in HUF_readStats_wksp()
208 if (huffWeight[n] >= HUF_TABLELOG_MAX) in HUF_readStats_wksp()
210 rankStats[huffWeight[n]]++; in HUF_readStats_wksp()
211 weightTotal += (1 << huffWeight[n]) >> 1; in HUF_readStats_wksp()
231 huffWeight[oSize] = (BYTE)lastWeight; in HUF_readStats_wksp()
Dhuf_compress.c158 BYTE *huffWeight; in HUF_writeCTable_wksp() local
163 huffWeight = (BYTE *)((U32 *)workspace + spaceUsed32); in HUF_writeCTable_wksp()
180 huffWeight[n] = bitsToWeight[CTable[n].nbBits]; in HUF_writeCTable_wksp()
184 …CHECK_V_F(hSize, HUF_compressWeights_wksp(op + 1, maxDstSize - 1, huffWeight, maxSymbolValue, work… in HUF_writeCTable_wksp()
197 huffWeight[maxSymbolValue] = 0; /* to be sure it doesn't cause msan issue in final combination */ in HUF_writeCTable_wksp()
199 op[(n / 2) + 1] = (BYTE)((huffWeight[n] << 4) + huffWeight[n + 1]); in HUF_writeCTable_wksp()
206 BYTE *huffWeight; in HUF_readCTable_wksp() local
214 huffWeight = (BYTE *)((U32 *)workspace + spaceUsed32); in HUF_readCTable_wksp()
223 …readSize = HUF_readStats_wksp(huffWeight, HUF_SYMBOLVALUE_MAX + 1, rankVal, &nbSymbols, &tableLog,… in HUF_readCTable_wksp()
247 const U32 w = huffWeight[n]; in HUF_readCTable_wksp()
Dhuf.h159 size_t HUF_readStats_wksp(BYTE *huffWeight, size_t hwSize, U32 *rankStats, U32 *nbSymbolsPtr, U32 *…
Dhuf_decompress.c99 BYTE *huffWeight; in HUF_readDTableX2_wksp() local
104 huffWeight = (BYTE *)((U32 *)workspace + spaceUsed32); in HUF_readDTableX2_wksp()
115 …iSize = HUF_readStats_wksp(huffWeight, HUF_SYMBOLVALUE_MAX + 1, rankVal, &nbSymbols, &tableLog, sr… in HUF_readDTableX2_wksp()
143 U32 const w = huffWeight[n]; in HUF_readDTableX2_wksp()