Home
last modified time | relevance | path

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

/linux-6.15/lib/zstd/decompress/
H A Dhuf_decompress.c934 if (HUF_isError(hSize)) return hSize; in HUF_decompress4X1_DCtx_wksp()
935 if (hSize >= cSrcSize) return ERROR(srcSize_wrong); in HUF_decompress4X1_DCtx_wksp()
936 ip += hSize; cSrcSize -= hSize; in HUF_decompress4X1_DCtx_wksp()
1759 if (HUF_isError(hSize)) return hSize; in HUF_DGEN()
1760 if (hSize >= cSrcSize) return ERROR(srcSize_wrong); in HUF_DGEN()
1761 ip += hSize; cSrcSize -= hSize; in HUF_DGEN()
1774 if (HUF_isError(hSize)) return hSize; in HUF_decompress4X2_DCtx_wksp()
1775 if (hSize >= cSrcSize) return ERROR(srcSize_wrong); in HUF_decompress4X2_DCtx_wksp()
1776 ip += hSize; cSrcSize -= hSize; in HUF_decompress4X2_DCtx_wksp()
1896 if (HUF_isError(hSize)) return hSize; in HUF_decompress1X1_DCtx_wksp()
[all …]
H A Dzstd_decompress.c1395 size_t const hSize = HUF_readDTableX1_wksp(entropy->hufTable, in ZSTD_loadDEntropy() local
1399 size_t const hSize = HUF_readDTableX2_wksp(entropy->hufTable, in ZSTD_loadDEntropy() local
1403 RETURN_ERROR_IF(HUF_isError(hSize), dictionary_corrupted, ""); in ZSTD_loadDEntropy()
1404 dictPtr += hSize; in ZSTD_loadDEntropy()
2049 …{ size_t const hSize = ZSTD_getFrameHeader_advanced(&zds->fParams, zds->headerBuffer, zds->lhSiz… in ZSTD_decompressStream() local
2053 if (ZSTD_isError(hSize)) { in ZSTD_decompressStream()
2054 return hSize; /* error */ in ZSTD_decompressStream()
2056 if (hSize != 0) { /* need more input */ in ZSTD_decompressStream()
2057 … size_t const toLoad = hSize - zds->lhSize; /* if hSize!=0, hSize > zds->lhSize */ in ZSTD_decompressStream()
2071 …return (MAX((size_t)ZSTD_FRAMEHEADERSIZE_MIN(zds->format), hSize) - zds->lhSize) + ZSTD_blockHeade… in ZSTD_decompressStream()
[all …]
/linux-6.15/lib/zstd/compress/
H A Dhuf_compress.c173 op += hSize; in HUF_compressWeights()
274 if ((hSize>1) & (hSize < maxSymbolValue/2)) { /* FSE compressed */ in HUF_writeCTable_wksp()
275 op[0] = (BYTE)hSize; in HUF_writeCTable_wksp()
276 return hSize+1; in HUF_writeCTable_wksp()
1289 size_t hSize, newSize; in HUF_optimalTableLog() local
1309 if (ERR_isError(hSize)) continue; in HUF_optimalTableLog()
1311 newSize = HUF_estimateCompressedSize(table, count, maxSymbolValue) + hSize; in HUF_optimalTableLog()
1410 { CHECK_V_F(hSize, HUF_writeCTable_wksp(op, dstSize, table->CTable, maxSymbolValue, huffLog, in HUF_compress_internal()
1416 if (oldSize <= hSize + newSize || hSize + 12 >= srcSize) { in HUF_compress_internal()
1423 if (hSize + 12ul >= srcSize) { return 0; } in HUF_compress_internal()
[all …]
H A Dzstd_compress.c1599 size_t const hSize = ((size_t)1) << cParams->hashLog; in ZSTD_sizeof_matchState() local
1605 + hSize * sizeof(U32) in ZSTD_sizeof_matchState()
1627 (U32)chainSize, (U32)hSize, (U32)h3Size); in ZSTD_sizeof_matchState()
1960 size_t const tagTableSize = hSize; in ZSTD_reset_matchState()
2365 hSize, cdict_cParams); in ZSTD_resetCCtx_byCopyingCDict()
2375 size_t const tagTableSize = hSize; in ZSTD_resetCCtx_byCopyingCDict()
2484 hSize * sizeof(U32)); in ZSTD_copyCCtx_internal()
3625 size_t const hSize = HUF_writeCTable_wksp( in ZSTD_buildBlockEntropyStats_literals() local
3633 if (oldCSize < srcSize && (oldCSize <= hSize + newCSize || hSize + 12 >= srcSize)) { in ZSTD_buildBlockEntropyStats_literals()
3639 if (newCSize + hSize >= srcSize) { in ZSTD_buildBlockEntropyStats_literals()
[all …]