Home
last modified time | relevance | path

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

12

/external/zstd/tests/
Dseqgen.c53 BYTE* const oend = ostart + out->size; in SEQ_gen_matchLength() local
59 if (op >= oend) { in SEQ_gen_matchLength()
74 size_t const setLength = MIN(stream->bytesLeft, (size_t)(oend - op)); in SEQ_gen_matchLength()
88 if (op >= oend) { in SEQ_gen_matchLength()
122 BYTE* const oend = ostart + out->size; in SEQ_gen_litLength() local
132 while (stream->bytesLeft > 0 && op < oend) { in SEQ_gen_litLength()
143 while (stream->bytesLeft > 0 && op < oend) { in SEQ_gen_litLength()
154 while (stream->bytesLeft > 0 && op < oend) { in SEQ_gen_litLength()
187 BYTE* const oend = ostart + out->size; in SEQ_gen_offset() local
197 while (stream->bytesLeft > 0 && op < oend) { in SEQ_gen_offset()
[all …]
/external/zstd/lib/compress/
Dhuf_compress.c66 BYTE* const oend = ostart + dstSize; in HUF_compressWeights() local
90 { CHECK_V_F(hSize, FSE_writeNCount(op, (size_t)(oend-op), norm, maxSymbolValue, tableLog) ); in HUF_compressWeights()
96 …{ CHECK_V_F(cSize, FSE_compress_usingCTable(op, (size_t)(oend - op), weightTable, wtSize, CTable… in HUF_compressWeights()
567 BYTE* const oend = ostart + dstSize; in HUF_compress1X_usingCTable_internal_body() local
574 { size_t const initErr = BIT_initCStream(&bitC, op, (size_t)(oend-op)); in HUF_compress1X_usingCTable_internal_body()
664 BYTE* const oend = ostart + dstSize; in HUF_compress4X_usingCTable_internal() local
671 assert(op <= oend); in HUF_compress4X_usingCTable_internal()
672 …{ CHECK_V_F(cSize, HUF_compress1X_usingCTable_internal(op, (size_t)(oend-op), ip, segmentSize, C… in HUF_compress4X_usingCTable_internal()
680 assert(op <= oend); in HUF_compress4X_usingCTable_internal()
681 …{ CHECK_V_F(cSize, HUF_compress1X_usingCTable_internal(op, (size_t)(oend-op), ip, segmentSize, C… in HUF_compress4X_usingCTable_internal()
[all …]
Dzstd_compress_superblock.c186 BYTE* const oend = ostart + sizeof(fseMetadata->fseTablesBuffer); in ZSTD_buildSuperBlockEntropy_sequences() local
209 …{ size_t const countSize = ZSTD_buildCTable(op, oend - op, CTable_LitLength, LLFSELog, (symbolEn… in ZSTD_buildSuperBlockEntropy_sequences()
233 …{ size_t const countSize = ZSTD_buildCTable(op, oend - op, CTable_OffsetBits, OffFSELog, (symbol… in ZSTD_buildSuperBlockEntropy_sequences()
247 DEBUGLOG(5, "Building ML table (remaining space : %i)", (int)(oend-op)); in ZSTD_buildSuperBlockEntropy_sequences()
255 …{ size_t const countSize = ZSTD_buildCTable(op, oend - op, CTable_MatchLength, MLFSELog, (symbol… in ZSTD_buildSuperBlockEntropy_sequences()
328 BYTE* const oend = ostart + dstSize; in ZSTD_compressSubBlock_literal() local
358 …{ const size_t cSize = singleStream ? HUF_compress1X_usingCTable(op, oend-op, literals, litSize,… in ZSTD_compressSubBlock_literal()
359 … : HUF_compress4X_usingCTable(op, oend-op, literals, litSize, hufTable); in ZSTD_compressSubBlock_literal()
446 BYTE* const oend = ostart + dstCapacity; in ZSTD_compressSubBlock_sequences() local
454 RETURN_ERROR_IF((oend-op) < 3 /*max nbSeq Size*/ + 1 /*seqHead*/, in ZSTD_compressSubBlock_sequences()
[all …]
Dfse_compress.c203 BYTE* const oend = ostart + headerBufferSize; in FSE_writeNCount_generic() local
231 if ((!writeIsSafe) && (out > oend-2)) in FSE_writeNCount_generic()
246 if ((!writeIsSafe) && (out > oend - 2)) in FSE_writeNCount_generic()
268 if ((!writeIsSafe) && (out > oend - 2)) in FSE_writeNCount_generic()
282 if ((!writeIsSafe) && (out > oend - 2)) in FSE_writeNCount_generic()
640 BYTE* const oend = ostart + dstSize; in FSE_compress_wksp() local
666 { CHECK_V_F(nc_err, FSE_writeNCount(op, oend-op, norm, maxSymbolValue, tableLog) ); in FSE_compress_wksp()
672 { CHECK_V_F(cSize, FSE_compress_usingCTable(op, oend - op, src, srcSize, CTable) ); in FSE_compress_wksp()
/external/e2fsprogs/lib/ext2fs/
Dbitmaps.c168 ext2_ino_t end, ext2_ino_t *oend) in ext2fs_fudge_inode_bitmap_end() argument
176 if (oend) in ext2fs_fudge_inode_bitmap_end()
177 *oend = tmp_oend; in ext2fs_fudge_inode_bitmap_end()
182 blk_t end, blk_t *oend) in ext2fs_fudge_block_bitmap_end() argument
187 end, oend)); in ext2fs_fudge_block_bitmap_end()
191 blk64_t end, blk64_t *oend) in ext2fs_fudge_block_bitmap_end2() argument
195 end, oend)); in ext2fs_fudge_block_bitmap_end2()
Dgen_bitmap64.c370 __u64 end, __u64 *oend) in ext2fs_fudge_generic_bmap_end() argument
384 if (oend) in ext2fs_fudge_generic_bmap_end()
385 *oend = tmp_oend; in ext2fs_fudge_generic_bmap_end()
394 if (oend) in ext2fs_fudge_generic_bmap_end()
395 *oend = bitmap->end; in ext2fs_fudge_generic_bmap_end()
Dgen_bitmap.c311 ext2_ino_t end, ext2_ino_t *oend) in ext2fs_fudge_generic_bitmap_end() argument
319 if (oend) in ext2fs_fudge_generic_bitmap_end()
320 *oend = bitmap->end; in ext2fs_fudge_generic_bitmap_end()
Dext2fsP.h179 __u64 end, __u64 *oend);
/external/zstd/lib/decompress/
Dzstd_decompress_block.c722 BYTE* const oend = op + length; in ZSTD_safecopy() local
729 while (op < oend) *op++ = *ip++; in ZSTD_safecopy()
737 assert(op <= oend); in ZSTD_safecopy()
740 if (oend <= oend_w) { in ZSTD_safecopy()
747 assert(oend > oend_w); in ZSTD_safecopy()
753 while (op < oend) *op++ = *ip++; in ZSTD_safecopy()
766 BYTE* const oend, seq_t sequence, in ZSTD_execSequenceEnd() argument
774 BYTE* const oend_w = oend - WILDCOPY_OVERLENGTH; in ZSTD_execSequenceEnd()
777 …RETURN_ERROR_IF(sequenceLength > (size_t)(oend - op), dstSize_tooSmall, "last match must fit withi… in ZSTD_execSequenceEnd()
809 BYTE* const oend, seq_t sequence, in ZSTD_execSequence() argument
[all …]
Dzstd_decompress.c624 BYTE* const oend = dstCapacity != 0 ? ostart + dstCapacity : ostart; in ZSTD_decompressFrame() local
659 …decodedSize = ZSTD_decompressBlock_internal(dctx, op, (size_t)(oend-op), ip, cBlockSize, /* frame … in ZSTD_decompressFrame()
662 decodedSize = ZSTD_copyRawBlock(op, (size_t)(oend-op), ip, cBlockSize); in ZSTD_decompressFrame()
665 decodedSize = ZSTD_setRleBlock(op, (size_t)(oend-op), *ip, blockProperties.origSize); in ZSTD_decompressFrame()
1605 ZSTD_DStream* zds, char** op, char* oend, in ZSTD_decompressContinueStream() argument
1621 size_t const dstSize = isSkipFrame ? 0 : (size_t)(oend - *op); in ZSTD_decompressContinueStream()
1627 assert(*op <= oend); in ZSTD_decompressContinueStream()
1641 char* const oend = output->size != 0 ? dst + output->size : dst; in ZSTD_decompressStream() local
1725 && (U64)(size_t)(oend-op) >= zds->fParams.frameContentSize) { in ZSTD_decompressStream()
1729 …e_t const decompressedSize = ZSTD_decompress_usingDDict(zds, op, (size_t)(oend-op), istart, cSize,… in ZSTD_decompressStream()
[all …]
Dhuf_decompress.c333 BYTE* const oend = op + dstSize; in HUF_decompress1X1_usingDTable_internal_body() local
342 HUF_decodeStreamX1(op, &bitD, oend, dt, dtLog); in HUF_decompress1X1_usingDTable_internal_body()
360 BYTE* const oend = ostart + dstSize; in HUF_decompress4X1_usingDTable_internal_body() local
361 BYTE* const olimit = oend - 3; in HUF_decompress4X1_usingDTable_internal_body()
432 HUF_decodeStreamX1(op4, &bitD4, oend, dt, dtLog); in HUF_decompress4X1_usingDTable_internal_body()
788 BYTE* const oend = ostart + dstSize; in HUF_decompress1X2_usingDTable_internal_body() local
792 HUF_decodeStreamX2(ostart, &bitD, oend, dt, dtd.tableLog); in HUF_decompress1X2_usingDTable_internal_body()
812 BYTE* const oend = ostart + dstSize; in HUF_decompress4X2_usingDTable_internal_body() local
813 BYTE* const olimit = oend - (sizeof(size_t)-1); in HUF_decompress4X2_usingDTable_internal_body()
906 HUF_decodeStreamX2(op4, &bitD4, oend, dt, dtLog); in HUF_decompress4X2_usingDTable_internal_body()
/external/zstd/lib/legacy/
Dzstd_v01.c1375 BYTE* const oend = op + length; in ZSTD_wildcopy() local
1376 while (op < oend) COPY8(op, ip); in ZSTD_wildcopy()
1502 BYTE* const oend = op + maxDstSize; in ZSTD_decompressLiterals() local
1512 op = oend - litSize; in ZSTD_decompressLiterals()
1530 BYTE* const oend = ostart + maxDstSize; in ZSTDv01_decodeLiteralsBlock() local
1551 memset(oend - rleSize, *ip, rleSize); in ZSTDv01_decodeLiteralsBlock()
1553 *litStart = oend - rleSize; in ZSTDv01_decodeLiteralsBlock()
1562 *litStart = oend - decodedLitSize; in ZSTDv01_decodeLiteralsBlock()
1761 BYTE* const base, BYTE* const oend) in ZSTD_execSequence() argument
1771 if (endMatch > oend) return ERROR(dstSize_tooSmall); /* overwrite beyond dst buffer */ in ZSTD_execSequence()
[all …]
Dzstd_v05.c516 BYTE* const oend = op + length; in ZSTDv05_wildcopy() local
519 while (op < oend); in ZSTDv05_wildcopy()
1966 BYTE* const oend = op + dstSize; in HUFv05_decompress1X2_usingDTable() local
1976 HUFv05_decodeStreamX2(op, &bitD, oend, dt, dtLog); in HUFv05_decompress1X2_usingDTable()
2010 BYTE* const oend = ostart + dstSize; in HUFv05_decompress4X2_usingDTable() local
2052 for ( ; (endSignal==BITv05_DStream_unfinished) && (op4<(oend-7)) ; ) { in HUFv05_decompress4X2_usingDTable()
2082 HUFv05_decodeStreamX2(op4, &bitD4, oend, dt, dtLog); in HUFv05_decompress4X2_usingDTable()
2346 BYTE* const oend = ostart + dstSize; in HUFv05_decompress1X4_usingDTable() local
2359 HUFv05_decodeStreamX4(ostart, &bitD, oend, dt, dtLog); in HUFv05_decompress1X4_usingDTable()
2392 BYTE* const oend = ostart + dstSize; in HUFv05_decompress4X4_usingDTable() local
[all …]
Dzstd_v06.c551 BYTE* const oend = op + length; in ZSTDv06_wildcopy() local
554 while (op < oend); in ZSTDv06_wildcopy()
2102 BYTE* const oend = op + dstSize; in HUFv06_decompress1X2_usingDTable() local
2111 HUFv06_decodeStreamX2(op, &bitD, oend, dt, dtLog); in HUFv06_decompress1X2_usingDTable()
2144 BYTE* const oend = ostart + dstSize; in HUFv06_decompress4X2_usingDTable() local
2186 for ( ; (endSignal==BITv06_DStream_unfinished) && (op4<(oend-7)) ; ) { in HUFv06_decompress4X2_usingDTable()
2216 HUFv06_decodeStreamX2(op4, &bitD4, oend, dt, dtLog); in HUFv06_decompress4X2_usingDTable()
2475 BYTE* const oend = ostart + dstSize; in HUFv06_decompress1X4_usingDTable() local
2487 HUFv06_decodeStreamX4(ostart, &bitD, oend, dt, dtLog); in HUFv06_decompress1X4_usingDTable()
2519 BYTE* const oend = ostart + dstSize; in HUFv06_decompress4X4_usingDTable() local
[all …]
Dzstd_v04.c402 BYTE* const oend = op + length; in ZSTD_wildcopy() local
405 while (op < oend); in ZSTD_wildcopy()
1880 BYTE* const oend = ostart + dstSize; in HUF_decompress4X2_usingDTable() local
1922 for ( ; (endSignal==BIT_DStream_unfinished) && (op4<(oend-7)) ; ) in HUF_decompress4X2_usingDTable()
1954 HUF_decodeStreamX2(op4, &bitD4, oend, dt, dtLog); in HUF_decompress4X2_usingDTable()
2238 BYTE* const oend = ostart + dstSize; in HUF_decompress4X4_usingDTable() local
2280 for ( ; (endSignal==BIT_DStream_unfinished) && (op4<(oend-7)) ; ) in HUF_decompress4X4_usingDTable()
2312 HUF_decodeStreamX4(op4, &bitD4, oend, dt, dtLog); in HUF_decompress4X4_usingDTable()
2870 BYTE* const oend, seq_t sequence, in ZSTD_execSequence() argument
2879 BYTE* const oend_8 = oend-8; in ZSTD_execSequence()
[all …]
Dzstd_v03.c1728 BYTE* const oend = ostart + dstSize; in HUF_decompress4X2_usingDTable() local
1771 for ( ; (endSignal==BIT_DStream_unfinished) && (op4<(oend-7)) ; ) in HUF_decompress4X2_usingDTable()
1803 HUF_decodeStreamX2(op4, &bitD4, oend, dt, dtLog); in HUF_decompress4X2_usingDTable()
2090 BYTE* const oend = ostart + dstSize; in HUF_decompress4X4_usingDTable() local
2133 for ( ; (endSignal==BIT_DStream_unfinished) && (op4<(oend-7)) ; ) in HUF_decompress4X4_usingDTable()
2165 HUF_decodeStreamX4(op4, &bitD4, oend, dt, dtLog); in HUF_decompress4X4_usingDTable()
2401 BYTE* const oend = op + length; in ZSTD_wildcopy() local
2402 do COPY8(op, ip) while (op < oend); in ZSTD_wildcopy()
2751 BYTE* const base, BYTE* const oend) in ZSTD_execSequence() argument
2758 BYTE* const oend_8 = oend-8; in ZSTD_execSequence()
[all …]
Dzstd_v02.c1731 BYTE* const oend = ostart + dstSize; in HUF_decompress4X2_usingDTable() local
1774 for ( ; (endSignal==BIT_DStream_unfinished) && (op4<(oend-7)) ; ) in HUF_decompress4X2_usingDTable()
1806 HUF_decodeStreamX2(op4, &bitD4, oend, dt, dtLog); in HUF_decompress4X2_usingDTable()
2093 BYTE* const oend = ostart + dstSize; in HUF_decompress4X4_usingDTable() local
2136 for ( ; (endSignal==BIT_DStream_unfinished) && (op4<(oend-7)) ; ) in HUF_decompress4X4_usingDTable()
2168 HUF_decodeStreamX4(op4, &bitD4, oend, dt, dtLog); in HUF_decompress4X4_usingDTable()
2448 BYTE* const oend = ostart + dstSize; in HUF_decompress4X6_usingDTable() local
2493 for ( ; (op3 <= opStart4) && (endSignal==BIT_DStream_unfinished) && (op4<=(oend-16)) ; ) in HUF_decompress4X6_usingDTable()
2525 HUF_decodeStreamX6(op4, &bitD4, oend, DTable, dtLog); in HUF_decompress4X6_usingDTable()
2760 BYTE* const oend = op + length; in ZSTD_wildcopy() local
[all …]
Dzstd_v07.c1877 BYTE* const oend = op + dstSize; in HUFv07_decompress1X2_usingDTable_internal() local
1887 HUFv07_decodeStreamX2(op, &bitD, oend, dt, dtLog); in HUFv07_decompress1X2_usingDTable_internal()
1934 BYTE* const oend = ostart + dstSize; in HUFv07_decompress4X2_usingDTable_internal() local
1975 for ( ; (endSignal==BITv07_DStream_unfinished) && (op4<(oend-7)) ; ) { in HUFv07_decompress4X2_usingDTable_internal()
2005 HUFv07_decodeStreamX2(op4, &bitD4, oend, dt, dtLog); in HUFv07_decompress4X2_usingDTable_internal()
2293 BYTE* const oend = ostart + dstSize; in HUFv07_decompress1X4_usingDTable_internal() local
2297 HUFv07_decodeStreamX4(ostart, &bitD, oend, dt, dtd.tableLog); in HUFv07_decompress1X4_usingDTable_internal()
2344 BYTE* const oend = ostart + dstSize; in HUFv07_decompress4X4_usingDTable_internal() local
2385 for ( ; (endSignal==BITv07_DStream_unfinished) && (op4<(oend-7)) ; ) { in HUFv07_decompress4X4_usingDTable_internal()
2416 HUFv07_decodeStreamX4(op4, &bitD4, oend, dt, dtLog); in HUFv07_decompress4X4_usingDTable_internal()
[all …]
/external/lz4/lib/
Dlz4.c1674 BYTE* const oend = op + outputSize; in LZ4_decompress_generic() local
1685 const BYTE* const shortoend = oend - (endOnInput ? 14 : 8) /*maxLL*/ - 18 /*maxML*/; in LZ4_decompress_generic()
1707 if ((oend - op) < FASTLOOP_SAFE_DISTANCE) { in LZ4_decompress_generic()
1715 assert(oend - op >= FASTLOOP_SAFE_DISTANCE); in LZ4_decompress_generic()
1734 if ((cpy>oend-32) || (ip+length>iend-32)) { goto safe_literal_copy; } in LZ4_decompress_generic()
1737 if (cpy>oend-8) { goto safe_literal_copy; } in LZ4_decompress_generic()
1774 if (op + length >= oend - FASTLOOP_SAFE_DISTANCE) { in LZ4_decompress_generic()
1779 if (op + length >= oend - FASTLOOP_SAFE_DISTANCE) { in LZ4_decompress_generic()
1788 assert(op + 18 <= oend); in LZ4_decompress_generic()
1800 if (unlikely(op+length > oend-LASTLITERALS)) { in LZ4_decompress_generic()
[all …]
Dlz4hc.c469 BYTE* oend) in LZ4HC_encodeSequence() argument
493 …if ((limit) && ((*op + (length / 255) + length + (2 + 1 + LASTLITERALS)) > oend)) return 1; /* C… in LZ4HC_encodeSequence()
514 …if ((limit) && (*op + (length / 255) + (1 + LASTLITERALS) > oend)) return 1; /* Check output lim… in LZ4HC_encodeSequence()
554 BYTE* oend = op + maxOutputSize; in LZ4HC_compress_hashChain() local
567 …if (limit == fillOutput) oend -= LASTLITERALS; /* Hack for support LZ4 format res… in LZ4HC_compress_hashChain()
589 … if (LZ4HC_encodeSequence(UPDATABLE(ip, op, anchor), ml, ref, limit, oend)) goto _dest_overflow; in LZ4HC_compress_hashChain()
637 … if (LZ4HC_encodeSequence(UPDATABLE(ip, op, anchor), ml, ref, limit, oend)) goto _dest_overflow; in LZ4HC_compress_hashChain()
640 … if (LZ4HC_encodeSequence(UPDATABLE(ip, op, anchor), ml2, ref2, limit, oend)) goto _dest_overflow; in LZ4HC_compress_hashChain()
659 … if (LZ4HC_encodeSequence(UPDATABLE(ip, op, anchor), ml, ref, limit, oend)) goto _dest_overflow; in LZ4HC_compress_hashChain()
697 … if (LZ4HC_encodeSequence(UPDATABLE(ip, op, anchor), ml, ref, limit, oend)) goto _dest_overflow; in LZ4HC_compress_hashChain()
[all …]
/external/lz4/tests/
Dframetest.c259 BYTE* const oend = (BYTE*)decodedBuffer + COMPRESSIBLE_NOISE_LENGTH; in basicTests() local
271 oSize = (size_t)(oend-op); in basicTests()
275 if (op>oend) { DISPLAY("decompression write overflow \n"); goto _output_error; } in basicTests()
339 BYTE* const oend = (BYTE*)decodedBuffer + COMPRESSIBLE_NOISE_LENGTH; in basicTests() local
343 size_t oSize = (size_t)(oend-op); in basicTests()
378 BYTE* const oend = ostart + COMPRESSIBLE_NOISE_LENGTH; in basicTests() local
386 size_t oSize = (size_t)(oend-op); in basicTests()
692 BYTE* const oend = (BYTE*)decodedBuffer + COMPRESSIBLE_NOISE_LENGTH; in basicTests() local
706 size_t oSize = (size_t)(oend-op); in basicTests()
725 size_t oSize = (size_t)(oend-op); in basicTests()
[all …]
/external/zstd/contrib/linux-kernel/test/
Dtest.c71 char *oend = op + data->compSize; in test_btrfs() local
87 out.size = MIN(4096, oend - op); in test_btrfs()
108 oend = op + size; in test_btrfs()
124 out.size = MIN(4096, oend - op); in test_btrfs()
/external/golang-protobuf/protoc-gen-go/generator/internal/remap/
Dremap.go67 func (m Map) add(opos, oend, npos, nend int) { argument
68 m[Location{Pos: opos, End: oend}] = Location{Pos: npos, End: nend}
/external/zstd/lib/common/
Dzstd_internal.h284 BYTE* const oend = op + length; in ZSTD_wildcopy() local
292 } while (op < oend); in ZSTD_wildcopy()
305 while (op < oend); in ZSTD_wildcopy()
315 while (op < oend); in ZSTD_wildcopy()
/external/zstd/tests/fuzz/
Dsequence_compression_api.c78 const uint8_t* const oend = dst + ZSTD_FUZZ_GENERATED_SRC_MAXSIZE; in decodeSequences() local
122 if (lastLLSize <= oend - op) { in decodeSequences()

12