Searched refs:oend (Results 1 - 25 of 32) sorted by relevance

12

/freebsd-current/sys/contrib/openzfs/module/zfs/
H A Dlz4.c550 BYTE* const oend = op + outputSize; local
561 const BYTE* const shortoend = oend - (endOnInput ? 14 : 8) /*maxLL*/ - 18 /*maxML*/;
583 if ((oend - op) < FASTLOOP_SAFE_DISTANCE) {
591 assert(oend - op >= FASTLOOP_SAFE_DISTANCE);
610 if ((cpy>oend-32) || (ip+length>iend-32)) { goto safe_literal_copy; }
613 if (cpy>oend-8) { goto safe_literal_copy; }
622 /* We don't need to check oend, since we check it once for each loop below */
650 if (op + length >= oend - FASTLOOP_SAFE_DISTANCE) {
655 if (op + length >= oend - FASTLOOP_SAFE_DISTANCE) {
664 assert(op + 18 <= oend);
[all...]
H A Dlz4_zfs.c484 const BYTE *const oend = (BYTE *) dest + osize; local
541 (length >> 8) > oend))
591 if (unlikely(op + (1 + LASTLITERALS) + (len >> 8) > oend))
634 oend)
674 const BYTE *const oend = (BYTE *) dest + osize; local
729 (length >> 8) > oend))
779 if (unlikely(op + (1 + LASTLITERALS) + (len >> 8) > oend))
822 oend)
/freebsd-current/sys/contrib/zstd/lib/decompress/
H A Dzstd_decompress_block.c794 BYTE* const oend = op + length; local
801 while (op < oend) *op++ = *ip++;
810 assert(op <= oend);
813 if (oend <= oend_w) {
820 assert(oend > oend_w);
826 while (op < oend) *op++ = *ip++;
834 BYTE* const oend = op + length; local
838 while (op < oend) *op++ = *ip++;
842 if (op <= oend - WILDCOPY_OVERLENGTH && diff < -WILDCOPY_VECLEN) {
843 ZSTD_wildcopy(op, ip, oend
861 ZSTD_execSequenceEnd(BYTE* op, BYTE* const oend, seq_t sequence, const BYTE** litPtr, const BYTE* const litLimit, const BYTE* const prefixStart, const BYTE* const virtualStart, const BYTE* const dictEnd) argument
908 ZSTD_execSequenceEndSplitLitBuffer(BYTE* op, BYTE* const oend, const BYTE* const oend_w, seq_t sequence, const BYTE** litPtr, const BYTE* const litLimit, const BYTE* const prefixStart, const BYTE* const virtualStart, const BYTE* const dictEnd) argument
953 ZSTD_execSequence(BYTE* op, BYTE* const oend, seq_t sequence, const BYTE** litPtr, const BYTE* const litLimit, const BYTE* const prefixStart, const BYTE* const virtualStart, const BYTE* const dictEnd) argument
1046 ZSTD_execSequenceSplitLitBuffer(BYTE* op, BYTE* const oend, const BYTE* const oend_w, seq_t sequence, const BYTE** litPtr, const BYTE* const litLimit, const BYTE* const prefixStart, const BYTE* const virtualStart, const BYTE* const dictEnd) argument
1287 ZSTD_assertValidSequence( ZSTD_DCtx const* dctx, BYTE const* op, BYTE const* oend, seq_t const seq, BYTE const* prefixStart, BYTE const* virtualStart) argument
1331 BYTE* const oend = ostart + maxDstSize; local
1548 BYTE* const oend = dctx->litBufferLocation == ZSTD_not_in_dst ? ostart + maxDstSize : dctx->litBuffer; local
1677 BYTE* const oend = dctx->litBufferLocation == ZSTD_in_dst ? dctx->litBuffer : ostart + maxDstSize; local
[all...]
H A Dhuf_decompress.c156 BYTE* oend; member in struct:__anon124
173 BYTE* const oend = (BYTE*)dst + dstSize; local
224 if (args->op[3] >= oend)
245 args->oend = oend;
536 BYTE* const oend = op + dstSize; local
545 HUF_decodeStreamX1(op, &bitD, oend, dt, dtLog);
563 BYTE* const oend = ostart + dstSize; local
564 BYTE* const olimit = oend - 3;
594 if (opStart4 > oend) retur
678 BYTE* const oend = (BYTE*)dst + dstSize; local
1234 BYTE* const oend = ostart + dstSize; local
1257 BYTE* const oend = ostart + dstSize; local
1392 BYTE* const oend = (BYTE*)dst + dstSize; local
[all...]
H A Dzstd_decompress.c883 BYTE* const oend = dstCapacity != 0 ? ostart + dstCapacity : ostart; local
918 decodedSize = ZSTD_decompressBlock_internal(dctx, op, (size_t)(oend-op), ip, cBlockSize, /* frame */ 1, not_streaming);
921 decodedSize = ZSTD_copyRawBlock(op, (size_t)(oend-op), ip, cBlockSize);
924 decodedSize = ZSTD_setRleBlock(op, (size_t)(oend-op), *ip, blockProperties.origSize);
1900 ZSTD_DStream* zds, char** op, char* oend,
1916 size_t const dstSize = isSkipFrame ? 0 : (size_t)(oend - *op);
1922 assert(*op <= oend);
1936 char* const oend = output->size != 0 ? dst + output->size : dst; local
2025 && (U64)(size_t)(oend-op) >= zds->fParams.frameContentSize) {
2029 size_t const decompressedSize = ZSTD_decompress_usingDDict(zds, op, (size_t)(oend
1899 ZSTD_decompressContinueStream( ZSTD_DStream* zds, char** op, char* oend, void const* src, size_t srcSize) argument
[all...]
/freebsd-current/sys/contrib/openzfs/module/zstd/lib/compress/
H A Dhuf_compress.c67 BYTE* const oend = ostart + dstSize; local
91 { CHECK_V_F(hSize, FSE_writeNCount(op, (size_t)(oend-op), norm, maxSymbolValue, tableLog) );
97 { CHECK_V_F(cSize, FSE_compress_usingCTable(op, (size_t)(oend - op), weightTable, wtSize, CTable) );
464 BYTE* const oend = ostart + dstSize; local
471 { size_t const initErr = BIT_initCStream(&bitC, op, (size_t)(oend-op));
561 BYTE* const oend = ostart + dstSize; local
568 assert(op <= oend);
569 { CHECK_V_F(cSize, HUF_compress1X_usingCTable_internal(op, (size_t)(oend-op), ip, segmentSize, CTable, bmi2) );
577 assert(op <= oend);
578 { CHECK_V_F(cSize, HUF_compress1X_usingCTable_internal(op, (size_t)(oend
612 HUF_compressCTable_internal( BYTE* const ostart, BYTE* op, BYTE* const oend, const void* src, size_t srcSize, HUF_nbStreams_e nbStreams, const HUF_CElt* CTable, const int bmi2) argument
648 BYTE* const oend = ostart + dstSize; local
[all...]
H A Dzstd_compress_superblock.c186 BYTE* const oend = ostart + sizeof(fseMetadata->fseTablesBuffer); local
209 { size_t const countSize = ZSTD_buildCTable(op, oend - op, CTable_LitLength, LLFSELog, (symbolEncodingType_e)LLtype,
233 { size_t const countSize = ZSTD_buildCTable(op, oend - op, CTable_OffsetBits, OffFSELog, (symbolEncodingType_e)Offtype,
247 DEBUGLOG(5, "Building ML table (remaining space : %i)", (int)(oend-op));
255 { size_t const countSize = ZSTD_buildCTable(op, oend - op, CTable_MatchLength, MLFSELog, (symbolEncodingType_e)MLtype,
328 BYTE* const oend = ostart + dstSize; local
358 { const size_t cSize = singleStream ? HUF_compress1X_usingCTable(op, oend-op, literals, litSize, hufTable)
359 : HUF_compress4X_usingCTable(op, oend-op, literals, litSize, hufTable);
446 BYTE* const oend = ostart + dstCapacity; local
454 RETURN_ERROR_IF((oend
549 BYTE* const oend = ostart + dstCapacity; local
720 BYTE* const oend = ostart + dstCapacity; local
[all...]
H A Dfse_compress.c199 BYTE* const oend = ostart + headerBufferSize; local
227 if ((!writeIsSafe) && (out > oend-2))
242 if ((!writeIsSafe) && (out > oend - 2))
264 if ((!writeIsSafe) && (out > oend - 2))
278 if ((!writeIsSafe) && (out > oend - 2))
636 BYTE* const oend = ostart + dstSize; local
662 { CHECK_V_F(nc_err, FSE_writeNCount(op, oend-op, norm, maxSymbolValue, tableLog) );
668 { CHECK_V_F(cSize, FSE_compress_usingCTable(op, oend - op, src, srcSize, CTable) );
/freebsd-current/sys/contrib/openzfs/module/zstd/lib/common/
H A Dzstd_internal.h269 BYTE* const oend = op + length; local
277 } while (op < oend);
290 while (op < oend);
293 if (op >= oend) return;
298 while (op < oend);
/freebsd-current/sys/contrib/zstd/lib/compress/
H A Dzstd_compress_superblock.c50 BYTE* const oend = ostart + dstSize; local
80 { const size_t cSize = singleStream ? HUF_compress1X_usingCTable(op, oend-op, literals, litSize, hufTable)
81 : HUF_compress4X_usingCTable(op, oend-op, literals, litSize, hufTable);
169 BYTE* const oend = ostart + dstCapacity; local
177 RETURN_ERROR_IF((oend-op) < 3 /*max nbSeq Size*/ + 1 /*seqHead*/,
208 op, oend - op,
272 BYTE* const oend = ostart + dstCapacity; local
278 op, oend-op, bmi2, writeLitEntropy, litEntropyWritten);
288 op, oend-op,
444 BYTE* const oend local
[all...]
H A Dhuf_compress.c96 BYTE* const oend = ostart + dstSize; local
117 { CHECK_V_F(hSize, FSE_writeNCount(op, (size_t)(oend-op), wksp->norm, maxSymbolValue, tableLog) );
123 { CHECK_V_F(cSize, FSE_compress_usingCTable(op, (size_t)(oend - op), weightTable, wtSize, wksp->CTable) );
974 BYTE* const oend = ostart + dstSize; local
980 { size_t const initErr = HUF_initCStream(&bitC, op, (size_t)(oend-op));
1091 BYTE* const oend = ostart + dstSize; local
1098 assert(op <= oend);
1099 { CHECK_V_F(cSize, HUF_compress1X_usingCTable_internal(op, (size_t)(oend-op), ip, segmentSize, CTable, bmi2) );
1106 assert(op <= oend);
1107 { CHECK_V_F(cSize, HUF_compress1X_usingCTable_internal(op, (size_t)(oend
1144 HUF_compressCTable_internal( BYTE* const ostart, BYTE* op, BYTE* const oend, const void* src, size_t srcSize, HUF_nbStreams_e nbStreams, const HUF_CElt* CTable, const int bmi2) argument
1188 BYTE* const oend = ostart + dstSize; local
[all...]
H A Dfse_compress.c239 BYTE* const oend = ostart + headerBufferSize; local
267 if ((!writeIsSafe) && (out > oend-2))
282 if ((!writeIsSafe) && (out > oend - 2))
304 if ((!writeIsSafe) && (out > oend - 2))
318 if ((!writeIsSafe) && (out > oend - 2))
676 BYTE* const oend = ostart + dstSize; local
702 { CHECK_V_F(nc_err, FSE_writeNCount(op, oend-op, norm, maxSymbolValue, tableLog) );
708 { CHECK_V_F(cSize, FSE_compress_usingCTable(op, oend - op, src, srcSize, CTable) );
H A Dzstd_compress_sequences.c252 const BYTE* const oend = op + dstCapacity; local
279 assert(oend >= op);
280 { size_t const NCountSize = FSE_writeNCount(op, (size_t)(oend - op), wksp->norm, max, tableLog); /* overflow protected */
/freebsd-current/sys/contrib/openzfs/module/zstd/lib/decompress/
H A Dzstd_decompress_block.c614 BYTE* const oend = op + length; local
621 while (op < oend) *op++ = *ip++;
629 assert(op <= oend);
632 if (oend <= oend_w) {
639 assert(oend > oend_w);
645 while (op < oend) *op++ = *ip++;
658 BYTE* const oend, seq_t sequence,
666 BYTE* const oend_w = oend - WILDCOPY_OVERLENGTH;
669 RETURN_ERROR_IF(sequenceLength > (size_t)(oend - op), dstSize_tooSmall, "last match must fit within dstBuffer");
701 BYTE* const oend, seq_
657 ZSTD_execSequenceEnd(BYTE* op, BYTE* const oend, seq_t sequence, const BYTE** litPtr, const BYTE* const litLimit, const BYTE* const prefixStart, const BYTE* const virtualStart, const BYTE* const dictEnd) argument
700 ZSTD_execSequence(BYTE* op, BYTE* const oend, seq_t sequence, const BYTE** litPtr, const BYTE* const litLimit, const BYTE* const prefixStart, const BYTE* const virtualStart, const BYTE* const dictEnd) argument
953 ZSTD_assertValidSequence( ZSTD_DCtx const* dctx, BYTE const* op, BYTE const* oend, seq_t const seq, BYTE const* prefixStart, BYTE const* virtualStart) argument
991 BYTE* const oend = ostart + maxDstSize; local
1143 BYTE* const oend = ostart + maxDstSize; local
[all...]
H A Dzstd_decompress.c615 BYTE* const oend = dstCapacity != 0 ? ostart + dstCapacity : ostart; local
650 decodedSize = ZSTD_decompressBlock_internal(dctx, op, oend-op, ip, cBlockSize, /* frame */ 1);
653 decodedSize = ZSTD_copyRawBlock(op, oend-op, ip, cBlockSize);
656 decodedSize = ZSTD_setRleBlock(op, oend-op, *ip, blockProperties.origSize);
1560 ZSTD_DStream* zds, char** op, char* oend,
1576 size_t const dstSize = isSkipFrame ? 0 : oend - *op;
1582 assert(*op <= oend);
1596 char* const oend = output->size != 0 ? dst + output->size : dst; local
1680 && (U64)(size_t)(oend-op) >= zds->fParams.frameContentSize) {
1684 size_t const decompressedSize = ZSTD_decompress_usingDDict(zds, op, oend
1559 ZSTD_decompressContinueStream( ZSTD_DStream* zds, char** op, char* oend, void const* src, size_t srcSize) argument
[all...]
H A Dhuf_decompress.c246 BYTE* const oend = op + dstSize; local
255 HUF_decodeStreamX1(op, &bitD, oend, dt, dtLog);
273 BYTE* const oend = ostart + dstSize; local
274 BYTE* const olimit = oend - 3;
345 HUF_decodeStreamX1(op4, &bitD4, oend, dt, dtLog);
735 BYTE* const oend = ostart + dstSize; local
739 HUF_decodeStreamX2(ostart, &bitD, oend, dt, dtd.tableLog);
759 BYTE* const oend = ostart + dstSize; local
760 BYTE* const olimit = oend - (sizeof(size_t)-1);
853 HUF_decodeStreamX2(op4, &bitD4, oend, d
[all...]
/freebsd-current/sys/cddl/contrib/opensolaris/common/lz4/
H A Dlz4.c487 const BYTE *const oend = (BYTE *) dest + osize; local
544 (length >> 8) > oend)
594 if unlikely(op + (1 + LASTLITERALS) + (len >> 8) > oend)
637 oend)
682 const BYTE *const oend = (BYTE *) dest + osize; local
737 (length >> 8) > oend)
787 if unlikely(op + (1 + LASTLITERALS) + (len >> 8) > oend)
830 oend)
907 BYTE *const oend = op + maxOutputSize; local
934 if ((cpy > oend
[all...]
/freebsd-current/sys/contrib/zstd/lib/legacy/
H A Dzstd_v01.c1371 BYTE* const oend = op + length; local
1372 while (op < oend) COPY8(op, ip);
1498 BYTE* const oend = op + maxDstSize; local
1508 op = oend - litSize;
1526 BYTE* const oend = ostart + maxDstSize; local
1547 memset(oend - rleSize, *ip, rleSize);
1549 *litStart = oend - rleSize;
1558 *litStart = oend - decodedLitSize;
1757 BYTE* const base, BYTE* const oend)
1767 if (endMatch > oend) retur
1754 ZSTD_execSequence(BYTE* op, seq_t sequence, const BYTE** litPtr, const BYTE* const litLimit, BYTE* const base, BYTE* const oend) argument
1857 BYTE* const oend = ostart + maxDstSize; local
1946 BYTE* const oend = ostart + maxDstSize; local
[all...]
H A Dzstd_v03.c1724 BYTE* const oend = ostart + dstSize; local
1767 for ( ; (endSignal==BIT_DStream_unfinished) && (op4<(oend-7)) ; )
1799 HUF_decodeStreamX2(op4, &bitD4, oend, dt, dtLog);
2086 BYTE* const oend = ostart + dstSize; local
2129 for ( ; (endSignal==BIT_DStream_unfinished) && (op4<(oend-7)) ; )
2161 HUF_decodeStreamX4(op4, &bitD4, oend, dt, dtLog);
2397 BYTE* const oend = op + length; local
2398 do COPY8(op, ip) while (op < oend);
2747 BYTE* const base, BYTE* const oend)
2754 BYTE* const oend_8 = oend
2744 ZSTD_execSequence(BYTE* op, seq_t sequence, const BYTE** litPtr, const BYTE* const litLimit, BYTE* const base, BYTE* const oend) argument
2823 BYTE* const oend = ostart + maxDstSize; local
2910 BYTE* const oend = ostart + maxDstSize; local
[all...]
H A Dzstd_v07.c1873 BYTE* const oend = op + dstSize; local
1883 HUFv07_decodeStreamX2(op, &bitD, oend, dt, dtLog);
1930 BYTE* const oend = ostart + dstSize; local
1971 for ( ; (endSignal==BITv07_DStream_unfinished) && (op4<(oend-7)) ; ) {
2001 HUFv07_decodeStreamX2(op4, &bitD4, oend, dt, dtLog);
2289 BYTE* const oend = ostart + dstSize; local
2293 HUFv07_decodeStreamX4(ostart, &bitD, oend, dt, dtd.tableLog);
2340 BYTE* const oend = ostart + dstSize; local
2381 for ( ; (endSignal==BITv07_DStream_unfinished) && (op4<(oend-7)) ; ) {
2412 HUFv07_decodeStreamX4(op4, &bitD4, oend, d
2781 BYTE* const oend = op + length; local
3589 ZSTDv07_execSequence(BYTE* op, BYTE* const oend, seq_t sequence, const BYTE** litPtr, const BYTE* const litLimit, const BYTE* const base, const BYTE* const vBase, const BYTE* const dictEnd) argument
3672 BYTE* const oend = ostart + maxDstSize; local
3799 BYTE* const oend = ostart + dstCapacity; local
4404 char* const oend = ostart + *dstCapacityPtr; local
[all...]
H A Dzstd_v06.c548 BYTE* const oend = op + length; local
551 while (op < oend);
2098 BYTE* const oend = op + dstSize; local
2107 HUFv06_decodeStreamX2(op, &bitD, oend, dt, dtLog);
2140 BYTE* const oend = ostart + dstSize; local
2182 for ( ; (endSignal==BITv06_DStream_unfinished) && (op4<(oend-7)) ; ) {
2212 HUFv06_decodeStreamX2(op4, &bitD4, oend, dt, dtLog);
2471 BYTE* const oend = ostart + dstSize; local
2483 HUFv06_decodeStreamX4(ostart, &bitD, oend, dt, dtLog);
2515 BYTE* const oend local
3361 ZSTDv06_execSequence(BYTE* op, BYTE* const oend, seq_t sequence, const BYTE** litPtr, const BYTE* const litLimit, const BYTE* const base, const BYTE* const vBase, const BYTE* const dictEnd) argument
3445 BYTE* const oend = ostart + maxDstSize; local
3562 BYTE* const oend = ostart + dstCapacity; local
4022 char* const oend = ostart + *dstCapacityPtr; local
[all...]
H A Dzstd_v05.c513 BYTE* const oend = op + length; local
516 while (op < oend);
1962 BYTE* const oend = op + dstSize; local
1972 HUFv05_decodeStreamX2(op, &bitD, oend, dt, dtLog);
2006 BYTE* const oend = ostart + dstSize; local
2048 for ( ; (endSignal==BITv05_DStream_unfinished) && (op4<(oend-7)) ; ) {
2078 HUFv05_decodeStreamX2(op4, &bitD4, oend, dt, dtLog);
2342 BYTE* const oend = ostart + dstSize; local
2355 HUFv05_decodeStreamX4(ostart, &bitD, oend, dt, dtLog);
2388 BYTE* const oend local
3223 ZSTDv05_execSequence(BYTE* op, BYTE* const oend, seq_t sequence, const BYTE** litPtr, const BYTE* const litLimit, const BYTE* const base, const BYTE* const vBase, const BYTE* const dictEnd) argument
3311 BYTE* const oend = ostart + maxDstSize; local
3424 BYTE* const oend = ostart + maxDstSize; local
3894 char* const oend = ostart + *maxDstSizePtr; local
[all...]
H A Dzstd_v02.c1727 BYTE* const oend = ostart + dstSize; local
1770 for ( ; (endSignal==BIT_DStream_unfinished) && (op4<(oend-7)) ; )
1802 HUF_decodeStreamX2(op4, &bitD4, oend, dt, dtLog);
2089 BYTE* const oend = ostart + dstSize; local
2132 for ( ; (endSignal==BIT_DStream_unfinished) && (op4<(oend-7)) ; )
2164 HUF_decodeStreamX4(op4, &bitD4, oend, dt, dtLog);
2444 BYTE* const oend = ostart + dstSize; local
2489 for ( ; (op3 <= opStart4) && (endSignal==BIT_DStream_unfinished) && (op4<=(oend-16)) ; )
2521 HUF_decodeStreamX6(op4, &bitD4, oend, DTable, dtLog);
2756 BYTE* const oend local
3103 ZSTD_execSequence(BYTE* op, seq_t sequence, const BYTE** litPtr, const BYTE* const litLimit, BYTE* const base, BYTE* const oend) argument
3182 BYTE* const oend = ostart + maxDstSize; local
3269 BYTE* const oend = ostart + maxDstSize; local
[all...]
H A Dzstd_v04.c399 BYTE* const oend = op + length; local
402 while (op < oend);
1876 BYTE* const oend = ostart + dstSize; local
1918 for ( ; (endSignal==BIT_DStream_unfinished) && (op4<(oend-7)) ; )
1950 HUF_decodeStreamX2(op4, &bitD4, oend, dt, dtLog);
2234 BYTE* const oend = ostart + dstSize; local
2276 for ( ; (endSignal==BIT_DStream_unfinished) && (op4<(oend-7)) ; )
2308 HUF_decodeStreamX4(op4, &bitD4, oend, dt, dtLog);
2866 BYTE* const oend, seq_t sequence,
2875 BYTE* const oend_8 = oend
2865 ZSTD_execSequence(BYTE* op, BYTE* const oend, seq_t sequence, const BYTE** litPtr, const BYTE* const litLimit, const BYTE* const base, const BYTE* const vBase, const BYTE* const dictEnd) argument
2959 BYTE* const oend = ostart + maxDstSize; local
3065 BYTE* const oend = ostart + maxDstSize; local
3429 char* const oend = ostart + *maxDstSizePtr; local
[all...]
/freebsd-current/sys/contrib/zstd/lib/common/
H A Dzstd_internal.h223 BYTE* const oend = op + length; local
229 } while (op < oend);
242 while (op < oend);
252 while (op < oend);

Completed in 494 milliseconds

12