Home
last modified time | relevance | path

Searched refs:hSize (Results 1 – 5 of 5) sorted by relevance

/linux-5.19.10/lib/zstd/decompress/
Dhuf_decompress.c470 size_t const hSize = HUF_readDTableX1_wksp(DCtx, cSrc, cSrcSize, workSpace, wkspSize); in HUF_decompress1X1_DCtx_wksp() local
471 if (HUF_isError(hSize)) return hSize; in HUF_decompress1X1_DCtx_wksp()
472 if (hSize >= cSrcSize) return ERROR(srcSize_wrong); in HUF_decompress1X1_DCtx_wksp()
473 ip += hSize; cSrcSize -= hSize; in HUF_decompress1X1_DCtx_wksp()
495 … size_t const hSize = HUF_readDTableX1_wksp_bmi2(dctx, cSrc, cSrcSize, workSpace, wkspSize, bmi2); in HUF_decompress4X1_DCtx_wksp_bmi2() local
496 if (HUF_isError(hSize)) return hSize; in HUF_decompress4X1_DCtx_wksp_bmi2()
497 if (hSize >= cSrcSize) return ERROR(srcSize_wrong); in HUF_decompress4X1_DCtx_wksp_bmi2()
498 ip += hSize; cSrcSize -= hSize; in HUF_decompress4X1_DCtx_wksp_bmi2()
937 size_t const hSize = HUF_readDTableX2_wksp(DCtx, cSrc, cSrcSize, in HUF_decompress1X2_DCtx_wksp() local
939 if (HUF_isError(hSize)) return hSize; in HUF_decompress1X2_DCtx_wksp()
[all …]
Dzstd_decompress.c1239 size_t const hSize = HUF_readDTableX1_wksp(entropy->hufTable, in ZSTD_loadDEntropy() local
1243 size_t const hSize = HUF_readDTableX2_wksp(entropy->hufTable, in ZSTD_loadDEntropy() local
1247 RETURN_ERROR_IF(HUF_isError(hSize), dictionary_corrupted, ""); in ZSTD_loadDEntropy()
1248 dictPtr += hSize; in ZSTD_loadDEntropy()
1852 …{ size_t const hSize = ZSTD_getFrameHeader_advanced(&zds->fParams, zds->headerBuffer, zds->lhSiz… in ZSTD_decompressStream() local
1856 DEBUGLOG(5, "header size : %u", (U32)hSize); in ZSTD_decompressStream()
1857 if (ZSTD_isError(hSize)) { in ZSTD_decompressStream()
1858 return hSize; /* error */ in ZSTD_decompressStream()
1860 if (hSize != 0) { /* need more input */ in ZSTD_decompressStream()
1861 … size_t const toLoad = hSize - zds->lhSize; /* if hSize!=0, hSize > zds->lhSize */ in ZSTD_decompressStream()
[all …]
/linux-5.19.10/lib/zstd/compress/
Dhuf_compress.c92 …{ CHECK_V_F(hSize, FSE_writeNCount(op, (size_t)(oend-op), wksp->norm, maxSymbolValue, tableLog) … in HUF_compressWeights()
93 op += hSize; in HUF_compressWeights()
133 …{ CHECK_V_F(hSize, HUF_compressWeights(op+1, maxDstSize-1, wksp->huffWeight, maxSymbolValue, &wk… in HUF_writeCTable_wksp()
134 if ((hSize>1) & (hSize < maxSymbolValue/2)) { /* FSE compressed */ in HUF_writeCTable_wksp()
135 op[0] = (BYTE)hSize; in HUF_writeCTable_wksp()
136 return hSize+1; in HUF_writeCTable_wksp()
829 { CHECK_V_F(hSize, HUF_writeCTable_wksp(op, dstSize, table->CTable, maxSymbolValue, huffLog, in HUF_compress_internal()
835 if (oldSize <= hSize + newSize || hSize + 12 >= srcSize) { in HUF_compress_internal()
842 if (hSize + 12ul >= srcSize) { return 0; } in HUF_compress_internal()
843 op += hSize; in HUF_compress_internal()
Dzstd_compress_superblock.c131 size_t const hSize = HUF_writeCTable_wksp( in ZSTD_buildSuperBlockEntropy_literal() local
139 if (oldCSize < srcSize && (oldCSize <= hSize + newCSize || hSize + 12 >= srcSize)) { in ZSTD_buildSuperBlockEntropy_literal()
146 if (newCSize + hSize >= srcSize) { in ZSTD_buildSuperBlockEntropy_literal()
152 DEBUGLOG(5, "set_compressed (hSize=%u)", (U32)hSize); in ZSTD_buildSuperBlockEntropy_literal()
155 return hSize; in ZSTD_buildSuperBlockEntropy_literal()
Dzstd_compress.c1235 size_t const hSize = ((size_t)1) << cParams->hashLog; in ZSTD_sizeof_matchState() local
1241 + hSize * sizeof(U32) in ZSTD_sizeof_matchState()
1254 (U32)chainSize, (U32)hSize, (U32)h3Size); in ZSTD_sizeof_matchState()
1492 size_t const hSize = ((size_t)1) << cParams->hashLog; in ZSTD_reset_matchState() local
1512 ms->hashTable = (U32*)ZSTD_cwksp_reserve_table(ws, hSize * sizeof(U32)); in ZSTD_reset_matchState()
1849 size_t const hSize = (size_t)1 << cdict_cParams->hashLog; in ZSTD_resetCCtx_byCopyingCDict() local
1853 hSize * sizeof(U32)); in ZSTD_resetCCtx_byCopyingCDict()
1942 size_t const hSize = (size_t)1 << srcCCtx->appliedParams.cParams.hashLog; in ZSTD_copyCCtx_internal() local
1948 hSize * sizeof(U32)); in ZSTD_copyCCtx_internal()
2039 { U32 const hSize = (U32)1 << params->cParams.hashLog; in ZSTD_reduceIndex() local
[all …]