/external/zstd/tests/ |
D | seqgen.c | 53 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/decompress/ |
D | zstd_decompress_block.c | 794 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 …]
|
D | huf_decompress.c | 156 BYTE* oend; member 173 BYTE* const oend = (BYTE*)dst + dstSize; in HUF_DecompressAsmArgs_init() local 224 if (args->op[3] >= oend) in HUF_DecompressAsmArgs_init() 245 args->oend = oend; in HUF_DecompressAsmArgs_init() 536 BYTE* const oend = op + dstSize; in HUF_decompress1X1_usingDTable_internal_body() local 545 HUF_decodeStreamX1(op, &bitD, oend, dt, dtLog); in HUF_decompress1X1_usingDTable_internal_body() 563 BYTE* const oend = ostart + dstSize; in HUF_decompress4X1_usingDTable_internal_body() local 564 BYTE* const olimit = oend - 3; in HUF_decompress4X1_usingDTable_internal_body() 594 if (opStart4 > oend) return ERROR(corruption_detected); /* overflow */ in HUF_decompress4X1_usingDTable_internal_body() 601 if ((size_t)(oend - op4) >= sizeof(size_t)) { in HUF_decompress4X1_usingDTable_internal_body() [all …]
|
D | zstd_decompress.c | 883 BYTE* const oend = dstCapacity != 0 ? ostart + dstCapacity : ostart; in ZSTD_decompressFrame() local 918 …decodedSize = ZSTD_decompressBlock_internal(dctx, op, (size_t)(oend-op), ip, cBlockSize, /* frame … in ZSTD_decompressFrame() 921 decodedSize = ZSTD_copyRawBlock(op, (size_t)(oend-op), ip, cBlockSize); in ZSTD_decompressFrame() 924 decodedSize = ZSTD_setRleBlock(op, (size_t)(oend-op), *ip, blockProperties.origSize); in ZSTD_decompressFrame() 1900 ZSTD_DStream* zds, char** op, char* oend, in ZSTD_decompressContinueStream() argument 1916 size_t const dstSize = isSkipFrame ? 0 : (size_t)(oend - *op); in ZSTD_decompressContinueStream() 1922 assert(*op <= oend); in ZSTD_decompressContinueStream() 1936 char* const oend = output->size != 0 ? dst + output->size : dst; in ZSTD_decompressStream() local 2025 && (U64)(size_t)(oend-op) >= zds->fParams.frameContentSize) { in ZSTD_decompressStream() 2029 …e_t const decompressedSize = ZSTD_decompress_usingDDict(zds, op, (size_t)(oend-op), istart, cSize,… in ZSTD_decompressStream() [all …]
|
/external/e2fsprogs/lib/ext2fs/ |
D | bitmaps.c | 178 ext2_ino_t end, ext2_ino_t *oend) in ext2fs_fudge_inode_bitmap_end() argument 186 if (oend) in ext2fs_fudge_inode_bitmap_end() 187 *oend = tmp_oend; in ext2fs_fudge_inode_bitmap_end() 192 blk_t end, blk_t *oend) in ext2fs_fudge_block_bitmap_end() argument 197 end, oend)); in ext2fs_fudge_block_bitmap_end() 201 blk64_t end, blk64_t *oend) in ext2fs_fudge_block_bitmap_end2() argument 205 end, oend)); in ext2fs_fudge_block_bitmap_end2()
|
D | gen_bitmap64.c | 370 __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()
|
D | gen_bitmap.c | 311 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()
|
/external/zstd/lib/compress/ |
D | zstd_compress_superblock.c | 50 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 …]
|
D | huf_compress.c | 96 BYTE* const oend = ostart + dstSize; in HUF_compressWeights() local 117 …{ CHECK_V_F(hSize, FSE_writeNCount(op, (size_t)(oend-op), wksp->norm, maxSymbolValue, tableLog) … in HUF_compressWeights() 123 …{ CHECK_V_F(cSize, FSE_compress_usingCTable(op, (size_t)(oend - op), weightTable, wtSize, wksp->… in HUF_compressWeights() 974 BYTE* const oend = ostart + dstSize; in HUF_compress1X_usingCTable_internal_body() local 980 { size_t const initErr = HUF_initCStream(&bitC, op, (size_t)(oend-op)); in HUF_compress1X_usingCTable_internal_body() 1091 BYTE* const oend = ostart + dstSize; in HUF_compress4X_usingCTable_internal() local 1098 assert(op <= oend); in HUF_compress4X_usingCTable_internal() 1099 …{ CHECK_V_F(cSize, HUF_compress1X_usingCTable_internal(op, (size_t)(oend-op), ip, segmentSize, C… in HUF_compress4X_usingCTable_internal() 1106 assert(op <= oend); in HUF_compress4X_usingCTable_internal() 1107 …{ CHECK_V_F(cSize, HUF_compress1X_usingCTable_internal(op, (size_t)(oend-op), ip, segmentSize, C… in HUF_compress4X_usingCTable_internal() [all …]
|
D | fse_compress.c | 239 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() 676 BYTE* const oend = ostart + dstSize; in FSE_compress_wksp() local 702 { CHECK_V_F(nc_err, FSE_writeNCount(op, oend-op, norm, maxSymbolValue, tableLog) ); in FSE_compress_wksp() 708 { CHECK_V_F(cSize, FSE_compress_usingCTable(op, oend - op, src, srcSize, CTable) ); in FSE_compress_wksp()
|
D | zstd_compress_sequences.c | 252 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()
|
D | zstd_compress.c | 2457 const BYTE* const oend = dstEnd; in ZSTD_buildSequencesStatistics() local 2470 assert(op <= oend); in ZSTD_buildSequencesStatistics() 2485 op, (size_t)(oend - op), in ZSTD_buildSequencesStatistics() 2500 assert(op <= oend); in ZSTD_buildSequencesStatistics() 2517 op, (size_t)(oend - op), in ZSTD_buildSequencesStatistics() 2532 assert(op <= oend); in ZSTD_buildSequencesStatistics() 2538 DEBUGLOG(5, "Building ML table (remaining space : %i)", (int)(oend-op)); in ZSTD_buildSequencesStatistics() 2547 op, (size_t)(oend - op), in ZSTD_buildSequencesStatistics() 2562 assert(op <= oend); in ZSTD_buildSequencesStatistics() 2594 BYTE* const oend = ostart + dstCapacity; in ZSTD_entropyCompressSeqStore_internal() local [all …]
|
/external/lz4/lib/ |
D | lz4hc.c | 474 BYTE* oend) in LZ4HC_encodeSequence() argument 504 if (limit && ((op + (length / 255) + length + (2 + 1 + LASTLITERALS)) > oend)) { in LZ4HC_encodeSequence() 506 (int)length, (int)(oend - op)); in LZ4HC_encodeSequence() 529 if (limit && (op + (length / 255) + (1 + LASTLITERALS) > oend)) { in LZ4HC_encodeSequence() 575 BYTE* oend = op + maxOutputSize; in LZ4HC_compress_hashChain() local 588 …if (limit == fillOutput) oend -= LASTLITERALS; /* Hack for support LZ4 format res… in LZ4HC_compress_hashChain() 610 … if (LZ4HC_encodeSequence(UPDATABLE(ip, op, anchor), ml, ref, limit, oend)) goto _dest_overflow; in LZ4HC_compress_hashChain() 658 … if (LZ4HC_encodeSequence(UPDATABLE(ip, op, anchor), ml, ref, limit, oend)) goto _dest_overflow; in LZ4HC_compress_hashChain() 661 if (LZ4HC_encodeSequence(UPDATABLE(ip, op, anchor), ml2, ref2, limit, oend)) { in LZ4HC_compress_hashChain() 684 … if (LZ4HC_encodeSequence(UPDATABLE(ip, op, anchor), ml, ref, limit, oend)) goto _dest_overflow; in LZ4HC_compress_hashChain() [all …]
|
D | lz4.c | 1807 BYTE* const oend = ostart + decompressedSize; in LZ4_decompress_unsafe_generic() local 1823 if ((size_t)(oend-op) < ll) return -1; /* output buffer overflow */ in LZ4_decompress_unsafe_generic() 1827 if ((size_t)(oend-op) < MFLIMIT) { in LZ4_decompress_unsafe_generic() 1828 if (op==oend) break; /* end of block */ in LZ4_decompress_unsafe_generic() 1829 DEBUGLOG(5, "invalid: literals end at distance %zi from end of block", oend-op); in LZ4_decompress_unsafe_generic() 1846 if ((size_t)(oend-op) < ml) return -1; /* output buffer overflow */ in LZ4_decompress_unsafe_generic() 1882 if ((size_t)(oend-op) < LASTLITERALS) { in LZ4_decompress_unsafe_generic() 1883 DEBUGLOG(5, "invalid: match ends at distance %zi from end of block", oend-op); in LZ4_decompress_unsafe_generic() 1956 BYTE* const oend = op + outputSize; in LZ4_decompress_generic() local 1966 const BYTE* const shortoend = oend - 14 /*maxLL*/ - 18 /*maxML*/; in LZ4_decompress_generic() [all …]
|
/external/zstd/lib/legacy/ |
D | zstd_v01.c | 1371 BYTE* const oend = op + length; in ZSTD_wildcopy() local 1372 while (op < oend) COPY8(op, ip); in ZSTD_wildcopy() 1498 BYTE* const oend = op + maxDstSize; in ZSTD_decompressLiterals() local 1508 op = oend - litSize; in ZSTD_decompressLiterals() 1526 BYTE* const oend = ostart + maxDstSize; in ZSTDv01_decodeLiteralsBlock() local 1547 memset(oend - rleSize, *ip, rleSize); in ZSTDv01_decodeLiteralsBlock() 1549 *litStart = oend - rleSize; in ZSTDv01_decodeLiteralsBlock() 1558 *litStart = oend - decodedLitSize; in ZSTDv01_decodeLiteralsBlock() 1757 BYTE* const base, BYTE* const oend) in ZSTD_execSequence() argument 1767 if (endMatch > oend) return ERROR(dstSize_tooSmall); /* overwrite beyond dst buffer */ in ZSTD_execSequence() [all …]
|
D | zstd_v02.c | 1727 BYTE* const oend = ostart + dstSize; in HUF_decompress4X2_usingDTable() local 1770 for ( ; (endSignal==BIT_DStream_unfinished) && (op4<(oend-7)) ; ) in HUF_decompress4X2_usingDTable() 1802 HUF_decodeStreamX2(op4, &bitD4, oend, dt, dtLog); in HUF_decompress4X2_usingDTable() 2089 BYTE* const oend = ostart + dstSize; in HUF_decompress4X4_usingDTable() local 2132 for ( ; (endSignal==BIT_DStream_unfinished) && (op4<(oend-7)) ; ) in HUF_decompress4X4_usingDTable() 2164 HUF_decodeStreamX4(op4, &bitD4, oend, dt, dtLog); in HUF_decompress4X4_usingDTable() 2444 BYTE* const oend = ostart + dstSize; in HUF_decompress4X6_usingDTable() local 2489 for ( ; (op3 <= opStart4) && (endSignal==BIT_DStream_unfinished) && (op4<=(oend-16)) ; ) in HUF_decompress4X6_usingDTable() 2521 HUF_decodeStreamX6(op4, &bitD4, oend, DTable, dtLog); in HUF_decompress4X6_usingDTable() 2756 BYTE* const oend = op + length; in ZSTD_wildcopy() local [all …]
|
D | zstd_v05.c | 513 BYTE* const oend = op + length; in ZSTDv05_wildcopy() local 516 while (op < oend); in ZSTDv05_wildcopy() 1962 BYTE* const oend = op + dstSize; in HUFv05_decompress1X2_usingDTable() local 1972 HUFv05_decodeStreamX2(op, &bitD, oend, dt, dtLog); in HUFv05_decompress1X2_usingDTable() 2006 BYTE* const oend = ostart + dstSize; in HUFv05_decompress4X2_usingDTable() local 2048 for ( ; (endSignal==BITv05_DStream_unfinished) && (op4<(oend-7)) ; ) { in HUFv05_decompress4X2_usingDTable() 2078 HUFv05_decodeStreamX2(op4, &bitD4, oend, dt, dtLog); in HUFv05_decompress4X2_usingDTable() 2342 BYTE* const oend = ostart + dstSize; in HUFv05_decompress1X4_usingDTable() local 2355 HUFv05_decodeStreamX4(ostart, &bitD, oend, dt, dtLog); in HUFv05_decompress1X4_usingDTable() 2388 BYTE* const oend = ostart + dstSize; in HUFv05_decompress4X4_usingDTable() local [all …]
|
D | zstd_v06.c | 548 BYTE* const oend = op + length; in ZSTDv06_wildcopy() local 551 while (op < oend); in ZSTDv06_wildcopy() 2098 BYTE* const oend = op + dstSize; in HUFv06_decompress1X2_usingDTable() local 2107 HUFv06_decodeStreamX2(op, &bitD, oend, dt, dtLog); in HUFv06_decompress1X2_usingDTable() 2140 BYTE* const oend = ostart + dstSize; in HUFv06_decompress4X2_usingDTable() local 2182 for ( ; (endSignal==BITv06_DStream_unfinished) && (op4<(oend-7)) ; ) { in HUFv06_decompress4X2_usingDTable() 2212 HUFv06_decodeStreamX2(op4, &bitD4, oend, dt, dtLog); in HUFv06_decompress4X2_usingDTable() 2471 BYTE* const oend = ostart + dstSize; in HUFv06_decompress1X4_usingDTable() local 2483 HUFv06_decodeStreamX4(ostart, &bitD, oend, dt, dtLog); in HUFv06_decompress1X4_usingDTable() 2515 BYTE* const oend = ostart + dstSize; in HUFv06_decompress4X4_usingDTable() local [all …]
|
D | zstd_v04.c | 399 BYTE* const oend = op + length; in ZSTD_wildcopy() local 402 while (op < oend); in ZSTD_wildcopy() 1876 BYTE* const oend = ostart + dstSize; in HUF_decompress4X2_usingDTable() local 1918 for ( ; (endSignal==BIT_DStream_unfinished) && (op4<(oend-7)) ; ) in HUF_decompress4X2_usingDTable() 1950 HUF_decodeStreamX2(op4, &bitD4, oend, dt, dtLog); in HUF_decompress4X2_usingDTable() 2234 BYTE* const oend = ostart + dstSize; in HUF_decompress4X4_usingDTable() local 2276 for ( ; (endSignal==BIT_DStream_unfinished) && (op4<(oend-7)) ; ) in HUF_decompress4X4_usingDTable() 2308 HUF_decodeStreamX4(op4, &bitD4, oend, dt, dtLog); in HUF_decompress4X4_usingDTable() 2866 BYTE* const oend, seq_t sequence, in ZSTD_execSequence() argument 2875 BYTE* const oend_8 = oend-8; in ZSTD_execSequence() [all …]
|
D | zstd_v03.c | 1724 BYTE* const oend = ostart + dstSize; in HUF_decompress4X2_usingDTable() local 1767 for ( ; (endSignal==BIT_DStream_unfinished) && (op4<(oend-7)) ; ) in HUF_decompress4X2_usingDTable() 1799 HUF_decodeStreamX2(op4, &bitD4, oend, dt, dtLog); in HUF_decompress4X2_usingDTable() 2086 BYTE* const oend = ostart + dstSize; in HUF_decompress4X4_usingDTable() local 2129 for ( ; (endSignal==BIT_DStream_unfinished) && (op4<(oend-7)) ; ) in HUF_decompress4X4_usingDTable() 2161 HUF_decodeStreamX4(op4, &bitD4, oend, dt, dtLog); in HUF_decompress4X4_usingDTable() 2397 BYTE* const oend = op + length; in ZSTD_wildcopy() local 2398 do COPY8(op, ip) while (op < oend); in ZSTD_wildcopy() 2747 BYTE* const base, BYTE* const oend) in ZSTD_execSequence() argument 2754 BYTE* const oend_8 = oend-8; in ZSTD_execSequence() [all …]
|
D | zstd_v07.c | 1873 BYTE* const oend = op + dstSize; in HUFv07_decompress1X2_usingDTable_internal() local 1883 HUFv07_decodeStreamX2(op, &bitD, oend, dt, dtLog); in HUFv07_decompress1X2_usingDTable_internal() 1930 BYTE* const oend = ostart + dstSize; in HUFv07_decompress4X2_usingDTable_internal() local 1971 for ( ; (endSignal==BITv07_DStream_unfinished) && (op4<(oend-7)) ; ) { in HUFv07_decompress4X2_usingDTable_internal() 2001 HUFv07_decodeStreamX2(op4, &bitD4, oend, dt, dtLog); in HUFv07_decompress4X2_usingDTable_internal() 2289 BYTE* const oend = ostart + dstSize; in HUFv07_decompress1X4_usingDTable_internal() local 2293 HUFv07_decodeStreamX4(ostart, &bitD, oend, dt, dtd.tableLog); in HUFv07_decompress1X4_usingDTable_internal() 2340 BYTE* const oend = ostart + dstSize; in HUFv07_decompress4X4_usingDTable_internal() local 2381 for ( ; (endSignal==BITv07_DStream_unfinished) && (op4<(oend-7)) ; ) { in HUFv07_decompress4X4_usingDTable_internal() 2412 HUFv07_decodeStreamX4(op4, &bitD4, oend, dt, dtLog); in HUFv07_decompress4X4_usingDTable_internal() [all …]
|
/external/lz4/tests/ |
D | frametest.c | 324 BYTE* const oend = (BYTE*)decodedBuffer + COMPRESSIBLE_NOISE_LENGTH; in basicTests() local 336 oSize = (size_t)(oend-op); in basicTests() 340 if (op>oend) { DISPLAY("decompression write overflow \n"); goto _output_error; } in basicTests() 404 BYTE* const oend = (BYTE*)decodedBuffer + COMPRESSIBLE_NOISE_LENGTH; in basicTests() local 408 size_t oSize = (size_t)(oend-op); in basicTests() 443 BYTE* const oend = ostart + COMPRESSIBLE_NOISE_LENGTH; in basicTests() local 451 size_t oSize = (size_t)(oend-op); in basicTests() 770 BYTE* const oend = (BYTE*)decodedBuffer + COMPRESSIBLE_NOISE_LENGTH; in basicTests() local 784 size_t oSize = (size_t)(oend-op); in basicTests() 803 size_t oSize = (size_t)(oend-op); in basicTests() [all …]
|
/external/zstd/contrib/linux-kernel/test/ |
D | test.c | 69 char *oend = op + data->compSize; in test_btrfs() local 88 out.size = MIN(4096, oend - op); in test_btrfs() 109 oend = op + size; in test_btrfs() 125 out.size = MIN(4096, oend - op); in test_btrfs()
|
/external/zstd/lib/common/ |
D | zstd_internal.h | 223 BYTE* const oend = op + length; in ZSTD_wildcopy() local 229 } while (op < oend); in ZSTD_wildcopy() 242 while (op < oend); in ZSTD_wildcopy() 252 while (op < oend); in ZSTD_wildcopy()
|
/external/zstd/tests/fuzz/ |
D | sequence_compression_api.c | 78 const uint8_t* const oend = (uint8_t*)dst + ZSTD_FUZZ_GENERATED_SRC_MAXSIZE; in decodeSequences() local 122 if (lastLLSize <= oend - op) { in decodeSequences()
|