Home
last modified time | relevance | path

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

/f-stack/freebsd/contrib/zstd/lib/compress/
H A 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()
H A Dzstd_compress_superblock.c326 size_t const lhSize = 3 + (litSize >= (1 KB - header)) + (litSize >= (16 KB - header)); in ZSTD_compressSubBlock_literal() local
329 BYTE* op = ostart + lhSize; in ZSTD_compressSubBlock_literal()
330 U32 const singleStream = lhSize == 3; in ZSTD_compressSubBlock_literal()
336 …mpressSubBlock_literal (litSize=%zu, lhSize=%zu, writeEntropy=%d)", litSize, lhSize, writeEntropy); in ZSTD_compressSubBlock_literal()
372 if (lhSize < (size_t)(3 + (cLitSize >= 1 KB) + (cLitSize >= 16 KB))) { in ZSTD_compressSubBlock_literal()
381 switch(lhSize) in ZSTD_compressSubBlock_literal()
/f-stack/freebsd/contrib/zstd/lib/decompress/
H A Dzstd_decompress_block.c107 lhSize = 3; in ZSTD_decodeLiteralsBlock()
113 lhSize = 4; in ZSTD_decodeLiteralsBlock()
119 lhSize = 5; in ZSTD_decodeLiteralsBlock()
179 lhSize = 1; in ZSTD_decodeLiteralsBlock()
183 lhSize = 2; in ZSTD_decodeLiteralsBlock()
187 lhSize = 3; in ZSTD_decodeLiteralsBlock()
203 return lhSize+litSize; in ZSTD_decodeLiteralsBlock()
212 lhSize = 1; in ZSTD_decodeLiteralsBlock()
216 lhSize = 2; in ZSTD_decodeLiteralsBlock()
220 lhSize = 3; in ZSTD_decodeLiteralsBlock()
[all …]
H A Dzstd_decompress_internal.h150 size_t lhSize; member
H A Dzstd_decompress.c1665 zds->lhSize = zds->inPos = zds->outStart = zds->outEnd = 0; in ZSTD_decompressStream()
1682 …t hSize = ZSTD_getFrameHeader_advanced(&zds->fParams, zds->headerBuffer, zds->lhSize, zds->format); in ZSTD_decompressStream()
1706 … size_t const toLoad = hSize - zds->lhSize; /* if hSize!=0, hSize > zds->lhSize */ in ZSTD_decompressStream()
1711 ZSTD_memcpy(zds->headerBuffer + zds->lhSize, ip, remainingInput); in ZSTD_decompressStream()
1712 zds->lhSize += remainingInput; in ZSTD_decompressStream()
1715 …return (MAX((size_t)ZSTD_FRAMEHEADERSIZE_MIN(zds->format), hSize) - zds->lhSize) + ZSTD_blockHeade… in ZSTD_decompressStream()
1718 … ZSTD_memcpy(zds->headerBuffer + zds->lhSize, ip, toLoad); zds->lhSize = hSize; ip += toLoad; in ZSTD_decompressStream()
1756 FORWARD_IF_ERROR(ZSTD_decodeFrameHeader(zds, zds->headerBuffer, zds->lhSize), ""); in ZSTD_decompressStream()
/f-stack/freebsd/contrib/zstd/lib/legacy/
H A Dzstd_v06.c3072 switch(lhSize) in ZSTDv06_decodeLiteralsBlock()
3076 lhSize=3; in ZSTDv06_decodeLiteralsBlock()
3083 lhSize=4; in ZSTDv06_decodeLiteralsBlock()
3089 lhSize=5; in ZSTDv06_decodeLiteralsBlock()
3116 lhSize=3; in ZSTDv06_decodeLiteralsBlock()
3132 switch(lhSize) in ZSTDv06_decodeLiteralsBlock()
3135 lhSize=1; in ZSTDv06_decodeLiteralsBlock()
3162 switch(lhSize) in ZSTDv06_decodeLiteralsBlock()
3165 lhSize = 1; in ZSTDv06_decodeLiteralsBlock()
3180 return lhSize+1; in ZSTDv06_decodeLiteralsBlock()
[all …]
H A Dzstd_v07.c3301 switch(lhSize) in ZSTDv07_decodeLiteralsBlock()
3305 lhSize=3; in ZSTDv07_decodeLiteralsBlock()
3312 lhSize=4; in ZSTDv07_decodeLiteralsBlock()
3318 lhSize=5; in ZSTDv07_decodeLiteralsBlock()
3346 lhSize=3; in ZSTDv07_decodeLiteralsBlock()
3362 switch(lhSize) in ZSTDv07_decodeLiteralsBlock()
3365 lhSize=1; in ZSTDv07_decodeLiteralsBlock()
3392 switch(lhSize) in ZSTDv07_decodeLiteralsBlock()
3395 lhSize = 1; in ZSTDv07_decodeLiteralsBlock()
3410 return lhSize+1; in ZSTDv07_decodeLiteralsBlock()
[all …]
H A Dzstd_v05.c2881 switch(lhSize) in ZSTDv05_decodeLiteralsBlock()
2885 lhSize=3; in ZSTDv05_decodeLiteralsBlock()
2892 lhSize=4; in ZSTDv05_decodeLiteralsBlock()
2898 lhSize=5; in ZSTDv05_decodeLiteralsBlock()
2927 lhSize=3; in ZSTDv05_decodeLiteralsBlock()
2944 switch(lhSize) in ZSTDv05_decodeLiteralsBlock()
2947 lhSize=1; in ZSTDv05_decodeLiteralsBlock()
2969 return lhSize+litSize; in ZSTDv05_decodeLiteralsBlock()
2975 switch(lhSize) in ZSTDv05_decodeLiteralsBlock()
2978 lhSize = 1; in ZSTDv05_decodeLiteralsBlock()
[all …]
/f-stack/freebsd/contrib/zstd/lib/dictBuilder/
H A Dzdict.c848 { size_t const lhSize = FSE_writeNCount(dstPtr, maxDstSize, litLengthNCount, MaxLL, llLog); in ZDICT_analyzeEntropy() local
849 if (FSE_isError(lhSize)) { in ZDICT_analyzeEntropy()
850 eSize = lhSize; in ZDICT_analyzeEntropy()
854 dstPtr += lhSize; in ZDICT_analyzeEntropy()
855 maxDstSize -= lhSize; in ZDICT_analyzeEntropy()
856 eSize += lhSize; in ZDICT_analyzeEntropy()
/f-stack/freebsd/contrib/openzfs/module/zstd/lib/
H A Dzstd.c11145 ostart+lhSize, dstCapacity-lhSize, src, srcSize, in ZSTD_compressLiterals()
11149 ostart+lhSize, dstCapacity-lhSize, src, srcSize, in ZSTD_compressLiterals()
11174 switch(lhSize) in ZSTD_compressLiterals()
11196 return lhSize+cLitSize; in ZSTD_compressLiterals()
12037 BYTE* op = ostart + lhSize; in ZSTD_compressSubBlock_literal()
12089 switch(lhSize) in ZSTD_compressSubBlock_literal()
22772 size_t lhSize; member
26500 lhSize = 3; in ZSTD_decodeLiteralsBlock()
26506 lhSize = 4; in ZSTD_decodeLiteralsBlock()
26512 lhSize = 5; in ZSTD_decodeLiteralsBlock()
[all …]