Home
last modified time | relevance | path

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

/linux-6.1.9/lib/zstd/compress/
Dzstd_compress_literals.c79 size_t const lhSize = 3 + (srcSize >= 1 KB) + (srcSize >= 16 KB); in ZSTD_compressLiterals() local
100 RETURN_ERROR_IF(dstCapacity < lhSize+1, dstSize_tooSmall, "not enough space for compression"); in ZSTD_compressLiterals()
103 if (repeat == HUF_repeat_valid && lhSize == 3) singleStream = 1; in ZSTD_compressLiterals()
106 ostart+lhSize, dstCapacity-lhSize, src, srcSize, in ZSTD_compressLiterals()
110 ostart+lhSize, dstCapacity-lhSize, src, srcSize, in ZSTD_compressLiterals()
135 switch(lhSize) in ZSTD_compressLiterals()
156 DEBUGLOG(5, "Compressed literals: %u -> %u", (U32)srcSize, (U32)(lhSize+cLitSize)); in ZSTD_compressLiterals()
157 return lhSize+cLitSize; in ZSTD_compressLiterals()
Dzstd_compress_superblock.c327 size_t const lhSize = 3 + (litSize >= (1 KB - header)) + (litSize >= (16 KB - header)); in ZSTD_compressSubBlock_literal() local
330 BYTE* op = ostart + lhSize; in ZSTD_compressSubBlock_literal()
331 U32 const singleStream = lhSize == 3; in ZSTD_compressSubBlock_literal()
337 …mpressSubBlock_literal (litSize=%zu, lhSize=%zu, writeEntropy=%d)", litSize, lhSize, writeEntropy); in ZSTD_compressSubBlock_literal()
373 if (lhSize < (size_t)(3 + (cLitSize >= 1 KB) + (cLitSize >= 16 KB))) { in ZSTD_compressSubBlock_literal()
382 switch(lhSize) in ZSTD_compressSubBlock_literal()
/linux-6.1.9/lib/zstd/decompress/
Dzstd_decompress_block.c97 { size_t lhSize, litSize, litCSize; in ZSTD_decodeLiteralsBlock() local
107 lhSize = 3; in ZSTD_decodeLiteralsBlock()
113 lhSize = 4; in ZSTD_decodeLiteralsBlock()
119 lhSize = 5; in ZSTD_decodeLiteralsBlock()
125 RETURN_ERROR_IF(litCSize + lhSize > srcSize, corruption_detected, ""); in ZSTD_decodeLiteralsBlock()
135 dctx->litBuffer, litSize, istart+lhSize, litCSize, in ZSTD_decodeLiteralsBlock()
139 dctx->litBuffer, litSize, istart+lhSize, litCSize, in ZSTD_decodeLiteralsBlock()
147 istart+lhSize, litCSize, dctx->workspace, in ZSTD_decodeLiteralsBlock()
152 istart+lhSize, litCSize, dctx->workspace, in ZSTD_decodeLiteralsBlock()
158 istart+lhSize, litCSize, dctx->workspace, in ZSTD_decodeLiteralsBlock()
[all …]
Dzstd_decompress_internal.h160 size_t lhSize; member
Dzstd_decompress.c1844 zds->lhSize = zds->inPos = zds->outStart = zds->outEnd = 0; in ZSTD_decompressStream()
1852 …t hSize = ZSTD_getFrameHeader_advanced(&zds->fParams, zds->headerBuffer, zds->lhSize, zds->format); in ZSTD_decompressStream()
1861 … size_t const toLoad = hSize - zds->lhSize; /* if hSize!=0, hSize > zds->lhSize */ in ZSTD_decompressStream()
1866 ZSTD_memcpy(zds->headerBuffer + zds->lhSize, ip, remainingInput); in ZSTD_decompressStream()
1867 zds->lhSize += remainingInput; in ZSTD_decompressStream()
1870 …return (MAX((size_t)ZSTD_FRAMEHEADERSIZE_MIN(zds->format), hSize) - zds->lhSize) + ZSTD_blockHeade… in ZSTD_decompressStream()
1873 … ZSTD_memcpy(zds->headerBuffer + zds->lhSize, ip, toLoad); zds->lhSize = hSize; ip += toLoad; in ZSTD_decompressStream()
1911 FORWARD_IF_ERROR(ZSTD_decodeFrameHeader(zds, zds->headerBuffer, zds->lhSize), ""); in ZSTD_decompressStream()