/freebsd/sys/contrib/openzfs/module/zfs/ |
H A D | lz4.c | 550 BYTE* const oend = op + outputSize; in LZ4_decompress_generic() local 583 if ((oend - op) < FASTLOOP_SAFE_DISTANCE) { in LZ4_decompress_generic() 591 assert(oend - op >= FASTLOOP_SAFE_DISTANCE); in LZ4_decompress_generic() 664 assert(op + 18 <= oend); in LZ4_decompress_generic() 708 assert((op <= oend) && (oend-op >= 32)); in LZ4_decompress_generic() 810 if (cpy > oend) { in LZ4_decompress_generic() 811 cpy = oend; in LZ4_decompress_generic() 812 assert(op<=oend); in LZ4_decompress_generic() 813 length = (size_t)(oend-op); in LZ4_decompress_generic() 899 assert(op<=oend); in LZ4_decompress_generic() [all …]
|
H A D | lz4_zfs.c | 484 const BYTE *const oend = (BYTE *) dest + osize; in LZ4_compressCtx() local 541 (length >> 8) > oend)) in LZ4_compressCtx() 591 if (unlikely(op + (1 + LASTLITERALS) + (len >> 8) > oend)) in LZ4_compressCtx() 634 oend) in LZ4_compressCtx() 674 const BYTE *const oend = (BYTE *) dest + osize; in LZ4_compress64kCtx() local 729 (length >> 8) > oend)) in LZ4_compress64kCtx() 779 if (unlikely(op + (1 + LASTLITERALS) + (len >> 8) > oend)) in LZ4_compress64kCtx() 822 oend) in LZ4_compress64kCtx()
|
/freebsd/sys/contrib/zstd/lib/decompress/ |
H A 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 849 while (op < oend) *op++ = *ip++; in ZSTD_safecopyDstBeforeSrc() 862 BYTE* const oend, seq_t sequence, in ZSTD_execSequenceEnd() argument 954 BYTE* const oend, seq_t sequence, in ZSTD_execSequence() argument [all …]
|
H A 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 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() 697 assert(args.op[3] <= oend); in HUF_decompress4X1_usingDTable_internal_bmi2_asm() 710 segmentEnd = oend; in HUF_decompress4X1_usingDTable_internal_bmi2_asm() 1409 assert(args.op[3] <= oend); in HUF_decompress4X2_usingDTable_internal_bmi2_asm() [all …]
|
H A D | zstd_decompress.c | 883 BYTE* const oend = dstCapacity != 0 ? ostart + dstCapacity : ostart; in ZSTD_decompressFrame() local 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() 2044 && (U64)(size_t)(oend-op) < zds->fParams.frameContentSize) { in ZSTD_decompressStream() 2116 … FORWARD_IF_ERROR(ZSTD_decompressContinueStream(zds, &op, oend, ip, neededInSize), ""); in ZSTD_decompressStream() [all …]
|
/freebsd/sys/contrib/openzfs/module/zstd/lib/compress/ |
H A D | huf_compress.c | 67 BYTE* const oend = ostart + dstSize; in HUF_compressWeights() local 464 BYTE* const oend = ostart + dstSize; in HUF_compress1X_usingCTable_internal_body() local 561 BYTE* const oend = ostart + dstSize; in HUF_compress4X_usingCTable_internal() local 568 assert(op <= oend); in HUF_compress4X_usingCTable_internal() 577 assert(op <= oend); in HUF_compress4X_usingCTable_internal() 586 assert(op <= oend); in HUF_compress4X_usingCTable_internal() 595 assert(op <= oend); in HUF_compress4X_usingCTable_internal() 648 BYTE* const oend = ostart + dstSize; in HUF_compress_internal() local 666 return HUF_compressCTable_internal(ostart, op, oend, in HUF_compress_internal() 685 return HUF_compressCTable_internal(ostart, op, oend, in HUF_compress_internal() [all …]
|
H A D | zstd_compress_superblock.c | 186 BYTE* const oend = ostart + sizeof(fseMetadata->fseTablesBuffer); in ZSTD_buildSuperBlockEntropy_sequences() local 247 DEBUGLOG(5, "Building ML table (remaining space : %i)", (int)(oend-op)); in ZSTD_buildSuperBlockEntropy_sequences() 328 BYTE* const oend = ostart + dstSize; in ZSTD_compressSubBlock_literal() local 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() 485 op, oend - op, in ZSTD_compressSubBlock_sequences() 549 BYTE* const oend = ostart + dstCapacity; in ZSTD_compressSubBlock() local 565 op, oend-op, in ZSTD_compressSubBlock() 720 BYTE* const oend = ostart + dstCapacity; in ZSTD_compressSubBlock_multi() local 768 op, oend-op, in ZSTD_compressSubBlock_multi() [all …]
|
H A D | fse_compress.c | 199 BYTE* const oend = ostart + headerBufferSize; in FSE_writeNCount_generic() local 227 if ((!writeIsSafe) && (out > oend-2)) in FSE_writeNCount_generic() 242 if ((!writeIsSafe) && (out > oend - 2)) in FSE_writeNCount_generic() 264 if ((!writeIsSafe) && (out > oend - 2)) in FSE_writeNCount_generic() 278 if ((!writeIsSafe) && (out > oend - 2)) in FSE_writeNCount_generic() 636 BYTE* const oend = ostart + dstSize; in FSE_compress_wksp() local 662 { CHECK_V_F(nc_err, FSE_writeNCount(op, oend-op, norm, maxSymbolValue, tableLog) ); in FSE_compress_wksp() 668 { CHECK_V_F(cSize, FSE_compress_usingCTable(op, oend - op, src, srcSize, CTable) ); in FSE_compress_wksp()
|
/freebsd/sys/cddl/contrib/opensolaris/common/lz4/ |
H A D | lz4.c | 487 const BYTE *const oend = (BYTE *) dest + osize; in LZ4_compressCtx() local 544 (length >> 8) > oend) in LZ4_compressCtx() 637 oend) in LZ4_compressCtx() 737 (length >> 8) > oend) in LZ4_compress64kCtx() 830 oend) in LZ4_compress64kCtx() 907 BYTE *const oend = op + maxOutputSize; in LZ4_uncompress_unknownOutputSize() local 934 if ((cpy > oend - COPYLENGTH) || in LZ4_uncompress_unknownOutputSize() 936 if (cpy > oend) in LZ4_uncompress_unknownOutputSize() 995 if (cpy > oend - COPYLENGTH) { in LZ4_uncompress_unknownOutputSize() 996 if (cpy > oend) in LZ4_uncompress_unknownOutputSize() [all …]
|
/freebsd/sys/contrib/openzfs/module/zstd/lib/decompress/ |
H A D | zstd_decompress_block.c | 614 BYTE* const oend = op + length; in ZSTD_safecopy() local 621 while (op < oend) *op++ = *ip++; in ZSTD_safecopy() 629 assert(op <= oend); in ZSTD_safecopy() 632 if (oend <= oend_w) { in ZSTD_safecopy() 639 assert(oend > oend_w); in ZSTD_safecopy() 645 while (op < oend) *op++ = *ip++; in ZSTD_safecopy() 713 assert(oend_w < oend /* No underflow */); in ZSTD_execSequence() 955 BYTE const* op, BYTE const* oend, in ZSTD_assertValidSequence() argument 964 assert(op <= oend); in ZSTD_assertValidSequence() 991 BYTE* const oend = ostart + maxDstSize; in ZSTD_decompressSequences_body() local [all …]
|
H A D | zstd_decompress.c | 615 BYTE* const oend = dstCapacity != 0 ? ostart + dstCapacity : ostart; in ZSTD_decompressFrame() local 650 … decodedSize = ZSTD_decompressBlock_internal(dctx, op, oend-op, ip, cBlockSize, /* frame */ 1); in ZSTD_decompressFrame() 653 decodedSize = ZSTD_copyRawBlock(op, oend-op, ip, cBlockSize); in ZSTD_decompressFrame() 656 decodedSize = ZSTD_setRleBlock(op, oend-op, *ip, blockProperties.origSize); in ZSTD_decompressFrame() 1560 ZSTD_DStream* zds, char** op, char* oend, in ZSTD_decompressContinueStream() argument 1576 size_t const dstSize = isSkipFrame ? 0 : oend - *op; in ZSTD_decompressContinueStream() 1582 assert(*op <= oend); in ZSTD_decompressContinueStream() 1596 char* const oend = output->size != 0 ? dst + output->size : dst; in ZSTD_decompressStream() local 1680 && (U64)(size_t)(oend-op) >= zds->fParams.frameContentSize) { in ZSTD_decompressStream() 1699 && (U64)(size_t)(oend-op) < zds->fParams.frameContentSize) { in ZSTD_decompressStream() [all …]
|
H A D | huf_decompress.c | 246 BYTE* const oend = op + dstSize; in HUF_decompress1X1_usingDTable_internal_body() local 255 HUF_decodeStreamX1(op, &bitD, oend, dt, dtLog); in HUF_decompress1X1_usingDTable_internal_body() 273 BYTE* const oend = ostart + dstSize; in HUF_decompress4X1_usingDTable_internal_body() local 274 BYTE* const olimit = oend - 3; in HUF_decompress4X1_usingDTable_internal_body() 345 HUF_decodeStreamX1(op4, &bitD4, oend, dt, dtLog); in HUF_decompress4X1_usingDTable_internal_body() 735 BYTE* const oend = ostart + dstSize; in HUF_decompress1X2_usingDTable_internal_body() local 739 HUF_decodeStreamX2(ostart, &bitD, oend, dt, dtd.tableLog); in HUF_decompress1X2_usingDTable_internal_body() 759 BYTE* const oend = ostart + dstSize; in HUF_decompress4X2_usingDTable_internal_body() local 760 BYTE* const olimit = oend - (sizeof(size_t)-1); in HUF_decompress4X2_usingDTable_internal_body() 853 HUF_decodeStreamX2(op4, &bitD4, oend, dt, dtLog); in HUF_decompress4X2_usingDTable_internal_body()
|
/freebsd/sys/contrib/zstd/lib/compress/ |
H A 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 288 op, oend-op, in ZSTD_compressSubBlock() 444 BYTE* const oend = ostart + dstCapacity; in ZSTD_compressSubBlock_multi() local 492 op, oend-op, in ZSTD_compressSubBlock_multi() [all …]
|
H A D | huf_compress.c | 96 BYTE* const oend = ostart + dstSize; in HUF_compressWeights() local 974 BYTE* const oend = ostart + dstSize; in HUF_compress1X_usingCTable_internal_body() local 1091 BYTE* const oend = ostart + dstSize; in HUF_compress4X_usingCTable_internal() local 1098 assert(op <= oend); in HUF_compress4X_usingCTable_internal() 1106 assert(op <= oend); in HUF_compress4X_usingCTable_internal() 1114 assert(op <= oend); in HUF_compress4X_usingCTable_internal() 1122 assert(op <= oend); in HUF_compress4X_usingCTable_internal() 1188 BYTE* const oend = ostart + dstSize; in HUF_compress_internal() local 1205 return HUF_compressCTable_internal(ostart, op, oend, in HUF_compress_internal() 1239 return HUF_compressCTable_internal(ostart, op, oend, in HUF_compress_internal() [all …]
|
H A 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()
|
/freebsd/sys/contrib/zstd/lib/legacy/ |
H A 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() 1549 *litStart = oend - rleSize; in ZSTDv01_decodeLiteralsBlock() 1772 if (((size_t)(*litPtr - op) < 8) || ((size_t)(oend-litEnd) < 8) || (op+litLength > oend-8)) in ZSTD_execSequence() 1796 if ((endMatch + qutt) > oend) qutt = oend-endMatch; in ZSTD_execSequence() 1813 if (endMatch > oend-(16-MINMATCH)) in ZSTD_execSequence() 1815 if (op < oend-8) in ZSTD_execSequence() 1818 match += (oend-8) - op; in ZSTD_execSequence() [all …]
|
H A D | zstd_v02.c | 1727 BYTE* const oend = ostart + dstSize; in HUF_decompress4X2_usingDTable() local 1802 HUF_decodeStreamX2(op4, &bitD4, oend, dt, dtLog); in HUF_decompress4X2_usingDTable() 2089 BYTE* const oend = ostart + dstSize; in HUF_decompress4X4_usingDTable() local 2164 HUF_decodeStreamX4(op4, &bitD4, oend, dt, dtLog); in HUF_decompress4X4_usingDTable() 2444 BYTE* const oend = ostart + dstSize; in HUF_decompress4X6_usingDTable() local 2756 BYTE* const oend = op + length; in ZSTD_wildcopy() local 2757 do COPY8(op, ip) while (op < oend); in ZSTD_wildcopy() 3113 BYTE* const oend_8 = oend-8; in ZSTD_execSequence() 3153 if (oMatchEnd > oend-(16-MINMATCH)) in ZSTD_execSequence() 3182 BYTE* const oend = ostart + maxDstSize; in ZSTD_decompressSequences() local [all …]
|
H A 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 2006 BYTE* const oend = ostart + dstSize; in HUFv05_decompress4X2_usingDTable() local 2342 BYTE* const oend = ostart + dstSize; in HUFv05_decompress1X4_usingDTable() local 2388 BYTE* const oend = ostart + dstSize; in HUFv05_decompress4X4_usingDTable() local 3233 BYTE* const oend_8 = oend-8; in ZSTDv05_execSequence() 3287 if (oMatchEnd > oend-(16-MINMATCH)) { in ZSTDv05_execSequence() 3311 BYTE* const oend = ostart + maxDstSize; in ZSTDv05_decompressSequences() local 3424 BYTE* const oend = ostart + maxDstSize; in ZSTDv05_decompress_continueDCtx() local [all …]
|
H A 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 2140 BYTE* const oend = ostart + dstSize; in HUFv06_decompress4X2_usingDTable() local 2471 BYTE* const oend = ostart + dstSize; in HUFv06_decompress1X4_usingDTable() local 2515 BYTE* const oend = ostart + dstSize; in HUFv06_decompress4X4_usingDTable() local 3369 BYTE* const oend_8 = oend-8; in ZSTDv06_execSequence() 3423 if (oMatchEnd > oend-(16-MINMATCH)) { in ZSTDv06_execSequence() 3445 BYTE* const oend = ostart + maxDstSize; in ZSTDv06_decompressSequences() local 3562 BYTE* const oend = ostart + dstCapacity; in ZSTDv06_decompressFrame() local [all …]
|
H A 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 1950 HUF_decodeStreamX2(op4, &bitD4, oend, dt, dtLog); in HUF_decompress4X2_usingDTable() 2234 BYTE* const oend = ostart + dstSize; in HUF_decompress4X4_usingDTable() local 2308 HUF_decodeStreamX4(op4, &bitD4, oend, dt, dtLog); in HUF_decompress4X4_usingDTable() 2875 BYTE* const oend_8 = oend-8; in ZSTD_execSequence() 2932 if (oMatchEnd > oend-(16-MINMATCH)) in ZSTD_execSequence() 2959 BYTE* const oend = ostart + maxDstSize; in ZSTD_decompressSequences() local 3065 BYTE* const oend = ostart + maxDstSize; in ZSTD_decompress_usingDict() local [all …]
|
H A D | zstd_v03.c | 1724 BYTE* const oend = ostart + dstSize; in HUF_decompress4X2_usingDTable() local 1799 HUF_decodeStreamX2(op4, &bitD4, oend, dt, dtLog); in HUF_decompress4X2_usingDTable() 2086 BYTE* const oend = ostart + dstSize; in HUF_decompress4X4_usingDTable() local 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() 2794 if (oMatchEnd > oend-(16-MINMATCH)) in ZSTD_execSequence() 2823 BYTE* const oend = ostart + maxDstSize; in ZSTD_decompressSequences() local [all …]
|
H A D | zstd_v07.c | 1873 BYTE* const oend = op + dstSize; in HUFv07_decompress1X2_usingDTable_internal() local 1930 BYTE* const oend = ostart + dstSize; in HUFv07_decompress4X2_usingDTable_internal() local 2289 BYTE* const oend = ostart + dstSize; in HUFv07_decompress1X4_usingDTable_internal() local 2340 BYTE* const oend = ostart + dstSize; in HUFv07_decompress4X4_usingDTable_internal() local 2781 BYTE* const oend = op + length; in ZSTDv07_wildcopy() local 2784 while (op < oend); in ZSTDv07_wildcopy() 3597 BYTE* const oend_w = oend-WILDCOPY_OVERLENGTH; in ZSTDv07_execSequence() 3650 if (oMatchEnd > oend-(16-MINMATCH)) { in ZSTDv07_execSequence() 3672 BYTE* const oend = ostart + maxDstSize; in ZSTDv07_decompressSequences() local 3799 BYTE* const oend = ostart + dstCapacity; in ZSTDv07_decompressFrame() local [all …]
|
/freebsd/sys/contrib/openzfs/module/zstd/lib/common/ |
H A D | zstd_internal.h | 269 BYTE* const oend = op + length; in ZSTD_wildcopy() local 277 } while (op < oend); in ZSTD_wildcopy() 290 while (op < oend); in ZSTD_wildcopy() 293 if (op >= oend) return; in ZSTD_wildcopy() 298 while (op < oend); in ZSTD_wildcopy()
|
/freebsd/lib/libc/iconv/ |
H A D | citrus_prop.c | 351 _citrus_prop_object_t ostart, oend; in _citrus_prop_parse_element() local 368 _citrus_prop_object_init(&oend, hint->type); in _citrus_prop_parse_element() 382 errnum = (*readers[hint->type])(ms, &oend); in _citrus_prop_parse_element() 396 hint->name, ostart.u._func_, oend.u._func_);\ in _citrus_prop_parse_element() 418 _citrus_prop_object_uninit(&oend); in _citrus_prop_parse_element()
|
/freebsd/sys/contrib/zstd/lib/common/ |
H A 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()
|