| /src/sys/contrib/openzfs/module/zstd/lib/decompress/ |
| H A D | zstd_decompress_block.c | 1590 size_t const lastLLSize = (size_t)(litBufferEnd - litPtr); in ZSTD_decompressSequences_bodySplitLitBuffer() local 1591 DEBUGLOG(6, "copy last literals from segment : %u", (U32)lastLLSize); in ZSTD_decompressSequences_bodySplitLitBuffer() 1592 RETURN_ERROR_IF(lastLLSize > (size_t)(oend - op), dstSize_tooSmall, ""); in ZSTD_decompressSequences_bodySplitLitBuffer() 1594 ZSTD_memmove(op, litPtr, lastLLSize); in ZSTD_decompressSequences_bodySplitLitBuffer() 1595 op += lastLLSize; in ZSTD_decompressSequences_bodySplitLitBuffer() 1602 { size_t const lastLLSize = (size_t)(litBufferEnd - litPtr); in ZSTD_decompressSequences_bodySplitLitBuffer() local 1603 DEBUGLOG(6, "copy last literals from internal buffer : %u", (U32)lastLLSize); in ZSTD_decompressSequences_bodySplitLitBuffer() 1604 RETURN_ERROR_IF(lastLLSize > (size_t)(oend-op), dstSize_tooSmall, ""); in ZSTD_decompressSequences_bodySplitLitBuffer() 1606 ZSTD_memcpy(op, litPtr, lastLLSize); in ZSTD_decompressSequences_bodySplitLitBuffer() 1607 op += lastLLSize; in ZSTD_decompressSequences_bodySplitLitBuffer() [all …]
|
| /src/sys/contrib/zstd/lib/decompress/ |
| H A D | zstd_decompress_block.c | 1516 size_t const lastLLSize = litBufferEnd - litPtr; local 1517 RETURN_ERROR_IF(lastLLSize > (size_t)(oend - op), dstSize_tooSmall, ""); 1519 ZSTD_memmove(op, litPtr, lastLLSize); 1520 op += lastLLSize; 1526 { size_t const lastLLSize = litBufferEnd - litPtr; local 1527 RETURN_ERROR_IF(lastLLSize > (size_t)(oend-op), dstSize_tooSmall, ""); 1529 ZSTD_memcpy(op, litPtr, lastLLSize); 1530 op += lastLLSize; 1615 { size_t const lastLLSize = litEnd - litPtr; local 1616 RETURN_ERROR_IF(lastLLSize > (size_t)(oend-op), dstSize_tooSmall, ""); [all …]
|
| /src/sys/contrib/zstd/lib/compress/ |
| H A D | zstd_ldm.c | 678 size_t lastLLSize; in ZSTD_ldm_blockCompress() local 680 lastLLSize = blockCompressor(ms, seqStore, rep, src, srcSize); in ZSTD_ldm_blockCompress() 682 return lastLLSize; in ZSTD_ldm_blockCompress()
|
| H A D | zstd_compress.c | 2799 const BYTE* anchor, size_t lastLLSize) in ZSTD_storeLastLiterals() argument 2801 ZSTD_memcpy(seqStorePtr->lit, anchor, lastLLSize); in ZSTD_storeLastLiterals() 2802 seqStorePtr->lit += lastLLSize; in ZSTD_storeLastLiterals() 2850 size_t lastLLSize; in ZSTD_buildSeqStore() local 2858 lastLLSize = in ZSTD_buildSeqStore() 2875 lastLLSize = in ZSTD_buildSeqStore() 2887 … lastLLSize = blockCompressor(ms, &zc->seqStore, zc->blockState.nextCBlock->rep, src, srcSize); in ZSTD_buildSeqStore() 2889 { const BYTE* const lastLiterals = (const BYTE*)src + srcSize - lastLLSize; in ZSTD_buildSeqStore() 2890 ZSTD_storeLastLiterals(&zc->seqStore, lastLiterals, lastLLSize); in ZSTD_buildSeqStore() 2902 size_t lastLLSize; in ZSTD_copyBlockSequences() local [all …]
|
| /src/sys/contrib/openzfs/module/zstd/lib/compress/ |
| H A D | zstd_ldm.c | 700 size_t lastLLSize; in ZSTD_ldm_blockCompress() local 702 lastLLSize = blockCompressor(ms, seqStore, rep, src, srcSize); in ZSTD_ldm_blockCompress() 704 return lastLLSize; in ZSTD_ldm_blockCompress()
|
| H A D | zstd_compress.c | 3156 const BYTE* anchor, size_t lastLLSize) in ZSTD_storeLastLiterals() argument 3158 ZSTD_memcpy(seqStorePtr->lit, anchor, lastLLSize); in ZSTD_storeLastLiterals() 3159 seqStorePtr->lit += lastLLSize; in ZSTD_storeLastLiterals() 3303 size_t lastLLSize; in ZSTD_buildSeqStore() local 3320 lastLLSize = in ZSTD_buildSeqStore() 3345 lastLLSize = in ZSTD_buildSeqStore() 3413 … lastLLSize = blockCompressor(ms, &zc->seqStore, zc->blockState.nextCBlock->rep, src, srcSize); in ZSTD_buildSeqStore() 3421 … lastLLSize = blockCompressor(ms, &zc->seqStore, zc->blockState.nextCBlock->rep, src, srcSize); in ZSTD_buildSeqStore() 3423 { const BYTE* const lastLiterals = (const BYTE*)src + srcSize - lastLLSize; in ZSTD_buildSeqStore() 3424 ZSTD_storeLastLiterals(&zc->seqStore, lastLiterals, lastLLSize); in ZSTD_buildSeqStore() [all …]
|
| /src/sys/contrib/zstd/lib/legacy/ |
| H A D | zstd_v01.c | 1906 size_t lastLLSize = litEnd - litPtr; in ZSTD_decompressSequences() local 1907 if (op+lastLLSize > oend) return ERROR(dstSize_tooSmall); in ZSTD_decompressSequences() 1908 if (lastLLSize > 0) { in ZSTD_decompressSequences() 1909 if (op != litPtr) memmove(op, litPtr, lastLLSize); in ZSTD_decompressSequences() 1910 op += lastLLSize; in ZSTD_decompressSequences()
|
| H A D | zstd_v03.c | 2872 size_t lastLLSize = litEnd - litPtr; in ZSTD_decompressSequences() local 2874 if (op+lastLLSize > oend) return ERROR(dstSize_tooSmall); in ZSTD_decompressSequences() 2875 if (lastLLSize > 0) { in ZSTD_decompressSequences() 2876 if (op != litPtr) memmove(op, litPtr, lastLLSize); in ZSTD_decompressSequences() 2877 op += lastLLSize; in ZSTD_decompressSequences()
|
| H A D | zstd_v04.c | 3010 size_t lastLLSize = litEnd - litPtr; in ZSTD_decompressSequences() local 3012 if (op+lastLLSize > oend) return ERROR(dstSize_tooSmall); in ZSTD_decompressSequences() 3013 if (lastLLSize > 0) { in ZSTD_decompressSequences() 3014 if (op != litPtr) memcpy(op, litPtr, lastLLSize); in ZSTD_decompressSequences() 3015 op += lastLLSize; in ZSTD_decompressSequences()
|
| H A D | zstd_v02.c | 3231 size_t lastLLSize = litEnd - litPtr; in ZSTD_decompressSequences() local 3233 if (op+lastLLSize > oend) return ERROR(dstSize_tooSmall); in ZSTD_decompressSequences() 3234 if (lastLLSize > 0) { in ZSTD_decompressSequences() 3235 if (op != litPtr) memmove(op, litPtr, lastLLSize); in ZSTD_decompressSequences() 3236 op += lastLLSize; in ZSTD_decompressSequences()
|
| H A D | zstd_v06.c | 3501 { size_t const lastLLSize = litEnd - litPtr; in ZSTDv06_decompressSequences() local 3503 if (op+lastLLSize > oend) return ERROR(dstSize_tooSmall); in ZSTDv06_decompressSequences() 3504 if (lastLLSize > 0) { in ZSTDv06_decompressSequences() 3505 memcpy(op, litPtr, lastLLSize); in ZSTDv06_decompressSequences() 3506 op += lastLLSize; in ZSTDv06_decompressSequences()
|
| H A D | zstd_v05.c | 3362 size_t lastLLSize = litEnd - litPtr; in ZSTDv05_decompressSequences() local 3364 if (op+lastLLSize > oend) return ERROR(dstSize_tooSmall); in ZSTDv05_decompressSequences() 3365 if (lastLLSize > 0) { in ZSTDv05_decompressSequences() 3366 memcpy(op, litPtr, lastLLSize); in ZSTDv05_decompressSequences() 3367 op += lastLLSize; in ZSTDv05_decompressSequences()
|
| H A D | zstd_v07.c | 3716 { size_t const lastLLSize = litEnd - litPtr; in ZSTDv07_decompressSequences() local 3718 if (lastLLSize > (size_t)(oend-op)) return ERROR(dstSize_tooSmall); in ZSTDv07_decompressSequences() 3719 if (lastLLSize > 0) { in ZSTDv07_decompressSequences() 3720 memcpy(op, litPtr, lastLLSize); in ZSTDv07_decompressSequences() 3721 op += lastLLSize; in ZSTDv07_decompressSequences()
|