Home
last modified time | relevance | path

Searched refs:oend (Results 1 – 13 of 13) sorted by relevance

/linux/lib/lz4/
H A Dlz4_decompress.c87 BYTE * const oend = op + outputSize; in LZ4_decompress_generic() local
100 const BYTE *const shortoend = oend - in LZ4_decompress_generic()
224 if (((endOnInput) && ((cpy > oend - MFLIMIT) in LZ4_decompress_generic()
226 || ((!endOnInput) && (cpy > oend - WILDCOPYLENGTH))) { in LZ4_decompress_generic()
228 if (cpy > oend) { in LZ4_decompress_generic()
233 cpy = oend; in LZ4_decompress_generic()
234 length = oend - op; in LZ4_decompress_generic()
247 && (cpy != oend)) { in LZ4_decompress_generic()
257 || (cpy > oend))) { in LZ4_decompress_generic()
279 if (!partialDecoding || (cpy == oend) || (ip >= (iend - 2))) in LZ4_decompress_generic()
[all …]
H A Dlz4hc_compress.c269 BYTE *oend) in LZ4HC_encodeSequence() argument
280 + length + (2 + 1 + LASTLITERALS)) > oend)) { in LZ4HC_encodeSequence()
308 + (1 + LASTLITERALS) > oend)) { in LZ4HC_encodeSequence()
355 BYTE * const oend = op + maxOutputSize; in LZ4HC_compress_generic() local
403 &anchor, ml, ref, limit, oend)) in LZ4HC_compress_generic()
469 ml, ref, limit, oend)) in LZ4HC_compress_generic()
473 ml2, ref2, limit, oend)) in LZ4HC_compress_generic()
499 ml, ref, limit, oend)) in LZ4HC_compress_generic()
540 ref, limit, oend)) in LZ4HC_compress_generic()
H A Dlz4_compress.c539 BYTE * const oend = op + targetDstSize; in LZ4_compress_destSize_generic() local
694 + lastRunSize /* literals */ > oend) { in LZ4_compress_destSize_generic()
696 lastRunSize = (oend - op) - 1; in LZ4_compress_destSize_generic()
/linux/lib/zstd/decompress/
H A Dzstd_decompress_block.c794 BYTE* const oend = op + length; in ZSTD_safecopy() local
801 while (op < oend) *op++ = *ip++; in ZSTD_safecopy()
810 assert(op <= oend); in ZSTD_safecopy()
813 if (oend <= oend_w) { in ZSTD_safecopy()
820 assert(oend > oend_w); in ZSTD_safecopy()
826 while (op < oend) *op++ = *ip++; in ZSTD_safecopy()
834 BYTE* const oend = op + length; in ZSTD_safecopyDstBeforeSrc() local
838 while (op < oend) *op++ = *ip++; in ZSTD_safecopyDstBeforeSrc()
842 if (op <= oend - WILDCOPY_OVERLENGTH && diff < -WILDCOPY_VECLEN) { in ZSTD_safecopyDstBeforeSrc()
843 ZSTD_wildcopy(op, ip, oend - WILDCOPY_OVERLENGTH - op, ZSTD_no_overlap); in ZSTD_safecopyDstBeforeSrc()
[all …]
H A Dhuf_decompress.c152 BYTE* oend; member
169 BYTE* const oend = (BYTE*)dst + dstSize; in HUF_DecompressAsmArgs_init() local
220 if (args->op[3] >= oend) in HUF_DecompressAsmArgs_init()
241 args->oend = oend; in HUF_DecompressAsmArgs_init()
532 BYTE* const oend = op + dstSize; in HUF_decompress1X1_usingDTable_internal_body() local
541 HUF_decodeStreamX1(op, &bitD, oend, dt, dtLog); in HUF_decompress1X1_usingDTable_internal_body()
559 BYTE* const oend = ostart + dstSize; in HUF_decompress4X1_usingDTable_internal_body() local
560 BYTE* const olimit = oend - 3; in HUF_decompress4X1_usingDTable_internal_body()
590 if (opStart4 > oend) return ERROR(corruption_detected); /* overflow */ in HUF_decompress4X1_usingDTable_internal_body()
597 if ((size_t)(oend - op4) >= sizeof(size_t)) { in HUF_decompress4X1_usingDTable_internal_body()
[all …]
H A Dzstd_decompress.c838 BYTE* const oend = dstCapacity != 0 ? ostart + dstCapacity : ostart; in ZSTD_decompressFrame() local
861 BYTE* oBlockEnd = oend; in ZSTD_decompressFrame()
895 decodedSize = ZSTD_copyRawBlock(op, (size_t)(oend-op), ip, cBlockSize); in ZSTD_decompressFrame()
1850 ZSTD_DStream* zds, char** op, char* oend, in ZSTD_decompressContinueStream() argument
1866 size_t const dstSize = isSkipFrame ? 0 : (size_t)(oend - *op); in ZSTD_decompressContinueStream()
1872 assert(*op <= oend); in ZSTD_decompressContinueStream()
1886 char* const oend = output->size != 0 ? dst + output->size : dst; in ZSTD_decompressStream() local
1945 && (U64)(size_t)(oend-op) >= zds->fParams.frameContentSize) { in ZSTD_decompressStream()
1949 …e_t const decompressedSize = ZSTD_decompress_usingDDict(zds, op, (size_t)(oend-op), istart, cSize,… in ZSTD_decompressStream()
1964 && (U64)(size_t)(oend-op) < zds->fParams.frameContentSize) { in ZSTD_decompressStream()
[all …]
/linux/lib/zstd/compress/
H A Dzstd_compress_superblock.c50 BYTE* const oend = ostart + dstSize; in ZSTD_compressSubBlock_literal() local
80 …{ const size_t cSize = singleStream ? HUF_compress1X_usingCTable(op, oend-op, literals, litSize,… in ZSTD_compressSubBlock_literal()
81 … : HUF_compress4X_usingCTable(op, oend-op, literals, litSize, hufTable); in ZSTD_compressSubBlock_literal()
169 BYTE* const oend = ostart + dstCapacity; in ZSTD_compressSubBlock_sequences() local
177 RETURN_ERROR_IF((oend-op) < 3 /*max nbSeq Size*/ + 1 /*seqHead*/, in ZSTD_compressSubBlock_sequences()
208 op, oend - op, in ZSTD_compressSubBlock_sequences()
272 BYTE* const oend = ostart + dstCapacity; in ZSTD_compressSubBlock() local
278 … op, oend-op, bmi2, writeLitEntropy, litEntropyWritten); in ZSTD_compressSubBlock()
288 op, oend-op, in ZSTD_compressSubBlock()
444 BYTE* const oend = ostart + dstCapacity; in ZSTD_compressSubBlock_multi() local
[all …]
H A Dhuf_compress.c93 BYTE* const oend = ostart + dstSize; in HUF_compressWeights() local
114 …{ CHECK_V_F(hSize, FSE_writeNCount(op, (size_t)(oend-op), wksp->norm, maxSymbolValue, tableLog) … in HUF_compressWeights()
120 …{ CHECK_V_F(cSize, FSE_compress_usingCTable(op, (size_t)(oend - op), weightTable, wtSize, wksp->… in HUF_compressWeights()
971 BYTE* const oend = ostart + dstSize; in HUF_compress1X_usingCTable_internal_body() local
977 { size_t const initErr = HUF_initCStream(&bitC, op, (size_t)(oend-op)); in HUF_compress1X_usingCTable_internal_body()
1088 BYTE* const oend = ostart + dstSize; in HUF_compress4X_usingCTable_internal() local
1095 assert(op <= oend); in HUF_compress4X_usingCTable_internal()
1096 …{ CHECK_V_F(cSize, HUF_compress1X_usingCTable_internal(op, (size_t)(oend-op), ip, segmentSize, C… in HUF_compress4X_usingCTable_internal()
1103 assert(op <= oend); in HUF_compress4X_usingCTable_internal()
1104 …{ CHECK_V_F(cSize, HUF_compress1X_usingCTable_internal(op, (size_t)(oend-op), ip, segmentSize, C… in HUF_compress4X_usingCTable_internal()
[all …]
H A Dfse_compress.c239 BYTE* const oend = ostart + headerBufferSize; in FSE_writeNCount_generic() local
267 if ((!writeIsSafe) && (out > oend-2)) in FSE_writeNCount_generic()
282 if ((!writeIsSafe) && (out > oend - 2)) in FSE_writeNCount_generic()
304 if ((!writeIsSafe) && (out > oend - 2)) in FSE_writeNCount_generic()
318 if ((!writeIsSafe) && (out > oend - 2)) in FSE_writeNCount_generic()
H A Dzstd_compress_sequences.c252 const BYTE* const oend = op + dstCapacity; in ZSTD_buildCTable() local
279 assert(oend >= op); in ZSTD_buildCTable()
280 …{ size_t const NCountSize = FSE_writeNCount(op, (size_t)(oend - op), wksp->norm, max, tableLog);… in ZSTD_buildCTable()
H A Dzstd_compress.c2366 const BYTE* const oend = dstEnd; in ZSTD_buildSequencesStatistics() local
2379 assert(op <= oend); in ZSTD_buildSequencesStatistics()
2394 op, (size_t)(oend - op), in ZSTD_buildSequencesStatistics()
2409 assert(op <= oend); in ZSTD_buildSequencesStatistics()
2426 op, (size_t)(oend - op), in ZSTD_buildSequencesStatistics()
2441 assert(op <= oend); in ZSTD_buildSequencesStatistics()
2447 DEBUGLOG(5, "Building ML table (remaining space : %i)", (int)(oend-op)); in ZSTD_buildSequencesStatistics()
2456 op, (size_t)(oend - op), in ZSTD_buildSequencesStatistics()
2471 assert(op <= oend); in ZSTD_buildSequencesStatistics()
2503 BYTE* const oend = ostart + dstCapacity; in ZSTD_entropyCompressSeqStore_internal() local
[all …]
/linux/lib/zstd/common/
H A Dzstd_internal.h213 BYTE* const oend = op + length; in ZSTD_wildcopy() local
219 } while (op < oend); in ZSTD_wildcopy()
232 while (op < oend); in ZSTD_wildcopy()
242 while (op < oend); in ZSTD_wildcopy()
/linux/fs/erofs/
H A Ddecompressor.c24 unsigned int oend; member
134 omargin = PAGE_ALIGN(ctx->oend) - ctx->oend; in z_erofs_lz4_handle_overlap()
280 ctx.oend = rq->pageofs_out + rq->outputsize; in z_erofs_lz4_decompress()
281 ctx.outpages = PAGE_ALIGN(ctx.oend) >> PAGE_SHIFT; in z_erofs_lz4_decompress()