Home
last modified time | relevance | path

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

/lib/zstd/
Dhuf_decompress.c236 size_t const hSize = HUF_readDTableX2_wksp(DCtx, cSrc, cSrcSize, workspace, workspaceSize); in HUF_decompress1X2_DCtx_wksp() local
237 if (HUF_isError(hSize)) in HUF_decompress1X2_DCtx_wksp()
238 return hSize; in HUF_decompress1X2_DCtx_wksp()
239 if (hSize >= cSrcSize) in HUF_decompress1X2_DCtx_wksp()
241 ip += hSize; in HUF_decompress1X2_DCtx_wksp()
242 cSrcSize -= hSize; in HUF_decompress1X2_DCtx_wksp()
367 size_t const hSize = HUF_readDTableX2_wksp(dctx, cSrc, cSrcSize, workspace, workspaceSize); in HUF_decompress4X2_DCtx_wksp() local
368 if (HUF_isError(hSize)) in HUF_decompress4X2_DCtx_wksp()
369 return hSize; in HUF_decompress4X2_DCtx_wksp()
370 if (hSize >= cSrcSize) in HUF_decompress4X2_DCtx_wksp()
[all …]
Dhuf_compress.c128 CHECK_V_F(hSize, FSE_writeNCount(op, oend - op, norm, maxSymbolValue, tableLog)); in HUF_compressWeights_wksp()
129 op += hSize; in HUF_compressWeights_wksp()
184 …CHECK_V_F(hSize, HUF_compressWeights_wksp(op + 1, maxDstSize - 1, huffWeight, maxSymbolValue, work… in HUF_writeCTable_wksp()
185 if ((hSize > 1) & (hSize < maxSymbolValue / 2)) { /* FSE compressed */ in HUF_writeCTable_wksp()
186 op[0] = (BYTE)hSize; in HUF_writeCTable_wksp()
187 return hSize + 1; in HUF_writeCTable_wksp()
724 …CHECK_V_F(hSize, HUF_writeCTable_wksp(op, dstSize, CTable, maxSymbolValue, huffLog, workSpace, wks… in HUF_compress_internal()
729 if (oldSize <= hSize + newSize || hSize + 12 >= srcSize) { in HUF_compress_internal()
734 if (hSize + 12ul >= srcSize) { in HUF_compress_internal()
737 op += hSize; in HUF_compress_internal()
Ddecompress.c1884 …size_t const hSize = HUF_readDTableX4_wksp(entropy->hufTable, dictPtr, dictEnd - dictPtr, entropy-… in ZSTD_loadEntropy() local
1885 if (HUF_isError(hSize)) in ZSTD_loadEntropy()
1887 dictPtr += hSize; in ZSTD_loadEntropy()
2315 size_t const hSize = ZSTD_getFrameParams(&zds->fParams, zds->headerBuffer, zds->lhSize); in ZSTD_decompressStream() local
2316 if (ZSTD_isError(hSize)) in ZSTD_decompressStream()
2317 return hSize; in ZSTD_decompressStream()
2318 if (hSize != 0) { /* need more input */ in ZSTD_decompressStream()
2319 size_t const toLoad = hSize - zds->lhSize; /* if hSize!=0, hSize > zds->lhSize */ in ZSTD_decompressStream()
2324 return (MAX(ZSTD_frameHeaderSize_min, hSize) - zds->lhSize) + in ZSTD_decompressStream()
2328 zds->lhSize = hSize; in ZSTD_decompressStream()
Dcompress.c97 size_t const hSize = ((size_t)1) << cParams.hashLog; in ZSTD_CCtxWorkspaceBound() local
100 size_t const tableSpace = (chainSize + hSize + h3Size) * sizeof(U32); in ZSTD_CCtxWorkspaceBound()
257 size_t const hSize = ((size_t)1) << params.cParams.hashLog; in ZSTD_resetCCtx_advanced() local
260 size_t const tableSpace = (chainSize + hSize + h3Size) * sizeof(U32); in ZSTD_resetCCtx_advanced()
283 zc->chainTable = zc->hashTable + hSize; in ZSTD_resetCCtx_advanced()
363 size_t const hSize = ((size_t)1) << srcCCtx->params.cParams.hashLog; in ZSTD_copyCCtx() local
365 size_t const tableSpace = (chainSize + hSize + h3Size) * sizeof(U32); in ZSTD_copyCCtx()
413 U32 const hSize = 1 << zc->params.cParams.hashLog; in ZSTD_reduceIndex() local
414 ZSTD_reduceTable(zc->hashTable, hSize, reducerValue); in ZSTD_reduceIndex()