Searched refs:hSize (Results 1 – 4 of 4) sorted by relevance
/linux-6.12.1/lib/zstd/decompress/ |
D | huf_decompress.c | 765 size_t const hSize = HUF_readDTableX1_wksp(DCtx, cSrc, cSrcSize, workSpace, wkspSize); in HUF_decompress1X1_DCtx_wksp() local 766 if (HUF_isError(hSize)) return hSize; in HUF_decompress1X1_DCtx_wksp() 767 if (hSize >= cSrcSize) return ERROR(srcSize_wrong); in HUF_decompress1X1_DCtx_wksp() 768 ip += hSize; cSrcSize -= hSize; in HUF_decompress1X1_DCtx_wksp() 790 … size_t const hSize = HUF_readDTableX1_wksp_bmi2(dctx, cSrc, cSrcSize, workSpace, wkspSize, bmi2); in HUF_decompress4X1_DCtx_wksp_bmi2() local 791 if (HUF_isError(hSize)) return hSize; in HUF_decompress4X1_DCtx_wksp_bmi2() 792 if (hSize >= cSrcSize) return ERROR(srcSize_wrong); in HUF_decompress4X1_DCtx_wksp_bmi2() 793 ip += hSize; cSrcSize -= hSize; in HUF_decompress4X1_DCtx_wksp_bmi2() 1471 size_t const hSize = HUF_readDTableX2_wksp(DCtx, cSrc, cSrcSize, in HUF_decompress1X2_DCtx_wksp() local 1473 if (HUF_isError(hSize)) return hSize; in HUF_decompress1X2_DCtx_wksp() [all …]
|
D | zstd_decompress.c | 1304 size_t const hSize = HUF_readDTableX1_wksp(entropy->hufTable, in ZSTD_loadDEntropy() local 1308 size_t const hSize = HUF_readDTableX2_wksp(entropy->hufTable, in ZSTD_loadDEntropy() local 1312 RETURN_ERROR_IF(HUF_isError(hSize), dictionary_corrupted, ""); in ZSTD_loadDEntropy() 1313 dictPtr += hSize; in ZSTD_loadDEntropy() 1917 …{ size_t const hSize = ZSTD_getFrameHeader_advanced(&zds->fParams, zds->headerBuffer, zds->lhSiz… in ZSTD_decompressStream() local 1921 DEBUGLOG(5, "header size : %u", (U32)hSize); in ZSTD_decompressStream() 1922 if (ZSTD_isError(hSize)) { in ZSTD_decompressStream() 1923 return hSize; /* error */ in ZSTD_decompressStream() 1925 if (hSize != 0) { /* need more input */ in ZSTD_decompressStream() 1926 … size_t const toLoad = hSize - zds->lhSize; /* if hSize!=0, hSize > zds->lhSize */ in ZSTD_decompressStream() [all …]
|
/linux-6.12.1/lib/zstd/compress/ |
D | huf_compress.c | 114 …{ CHECK_V_F(hSize, FSE_writeNCount(op, (size_t)(oend-op), wksp->norm, maxSymbolValue, tableLog) … in HUF_compressWeights() 115 op += hSize; in HUF_compressWeights() 191 …{ CHECK_V_F(hSize, HUF_compressWeights(op+1, maxDstSize-1, wksp->huffWeight, maxSymbolValue, &wk… in HUF_writeCTable_wksp() 192 if ((hSize>1) & (hSize < maxSymbolValue/2)) { /* FSE compressed */ in HUF_writeCTable_wksp() 193 op[0] = (BYTE)hSize; in HUF_writeCTable_wksp() 194 return hSize+1; in HUF_writeCTable_wksp() 1257 { CHECK_V_F(hSize, HUF_writeCTable_wksp(op, dstSize, table->CTable, maxSymbolValue, huffLog, in HUF_compress_internal() 1263 if (oldSize <= hSize + newSize || hSize + 12 >= srcSize) { in HUF_compress_internal() 1270 if (hSize + 12ul >= srcSize) { return 0; } in HUF_compress_internal() 1271 op += hSize; in HUF_compress_internal()
|
D | zstd_compress.c | 1357 size_t const hSize = ((size_t)1) << cParams->hashLog; in ZSTD_sizeof_matchState() local 1363 + hSize * sizeof(U32) in ZSTD_sizeof_matchState() 1373 ? ZSTD_cwksp_aligned_alloc_size(hSize*sizeof(U16)) in ZSTD_sizeof_matchState() 1385 (U32)chainSize, (U32)hSize, (U32)h3Size); in ZSTD_sizeof_matchState() 1655 size_t const hSize = ((size_t)1) << cParams->hashLog; in ZSTD_reset_matchState() local 1676 ms->hashTable = (U32*)ZSTD_cwksp_reserve_table(ws, hSize * sizeof(U32)); in ZSTD_reset_matchState() 1701 size_t const tagTableSize = hSize*sizeof(U16); in ZSTD_reset_matchState() 2055 size_t const hSize = (size_t)1 << cdict_cParams->hashLog; in ZSTD_resetCCtx_byCopyingCDict() local 2059 hSize * sizeof(U32)); in ZSTD_resetCCtx_byCopyingCDict() 2068 size_t const tagTableSize = hSize*sizeof(U16); in ZSTD_resetCCtx_byCopyingCDict() [all …]
|