/freebsd/sys/contrib/zstd/lib/decompress/ |
H A D | zstd_decompress_block.c | 864 const BYTE* const prefixStart, const BYTE* const virtualStart, const BYTE* const dictEnd) in ZSTD_execSequenceEnd() argument 884 if (sequence.offset > (size_t)(oLitEnd - prefixStart)) { in ZSTD_execSequenceEnd() 887 match = dictEnd - (prefixStart - match); in ZSTD_execSequenceEnd() 897 match = prefixStart; in ZSTD_execSequenceEnd() 911 const BYTE* const prefixStart, const BYTE* const virtualStart, const BYTE* const dictEnd) in ZSTD_execSequenceEndSplitLitBuffer() argument 932 if (sequence.offset > (size_t)(oLitEnd - prefixStart)) { in ZSTD_execSequenceEndSplitLitBuffer() 935 match = dictEnd - (prefixStart - match); in ZSTD_execSequenceEndSplitLitBuffer() 945 match = prefixStart; in ZSTD_execSequenceEndSplitLitBuffer() 956 const BYTE* const prefixStart, const BYTE* const virtualStart, const BYTE* const dictEnd) in ZSTD_execSequence() argument 976 …return ZSTD_execSequenceEnd(op, oend, sequence, litPtr, litLimit, prefixStart, virtualStart, dictE… in ZSTD_execSequence() [all …]
|
H A D | zstd_ddict.c | 64 dctx->prefixStart = ddict->dictContent; in ZSTD_copyDDictParameters() 69 dctx->dictContentBeginForFuzzing = dctx->prefixStart; in ZSTD_copyDDictParameters()
|
H A D | zstd_decompress_internal.h | 134 const void* prefixStart; /* start of current segment */ member
|
H A D | zstd_decompress.c | 1320 …art = (const char*)dict - ((const char*)(dctx->previousDstEnd) - (const char*)(dctx->prefixStart)); in ZSTD_refDictContent() 1321 dctx->prefixStart = dict; in ZSTD_refDictContent() 1324 dctx->dictContentBeginForFuzzing = dctx->prefixStart; in ZSTD_refDictContent() 1453 dctx->prefixStart = NULL; in ZSTD_decompressBegin()
|
/freebsd/sys/contrib/openzfs/module/zstd/lib/decompress/ |
H A D | zstd_decompress_block.c | 660 … const BYTE* const prefixStart, const BYTE* const virtualStart, const BYTE* const dictEnd) in ZSTD_execSequenceEnd() argument 680 if (sequence.offset > (size_t)(oLitEnd - prefixStart)) { in ZSTD_execSequenceEnd() 683 match = dictEnd - (prefixStart-match); in ZSTD_execSequenceEnd() 693 match = prefixStart; in ZSTD_execSequenceEnd() 703 … const BYTE* const prefixStart, const BYTE* const virtualStart, const BYTE* const dictEnd) in ZSTD_execSequence() argument 723 …return ZSTD_execSequenceEnd(op, oend, sequence, litPtr, litLimit, prefixStart, virtualStart, dictE… in ZSTD_execSequence() 746 if (sequence.offset > (size_t)(oLitEnd - prefixStart)) { in ZSTD_execSequence() 749 match = dictEnd + (match - prefixStart); in ZSTD_execSequence() 759 match = prefixStart; in ZSTD_execSequence() 764 assert(match >= prefixStart); in ZSTD_execSequence() [all …]
|
H A D | zstd_ddict.c | 64 dctx->prefixStart = ddict->dictContent; in ZSTD_copyDDictParameters() 69 dctx->dictContentBeginForFuzzing = dctx->prefixStart; in ZSTD_copyDDictParameters()
|
H A D | zstd_decompress_internal.h | 112 const void* prefixStart; /* start of current segment */ member
|
H A D | zstd_decompress.c | 1042 …art = (const char*)dict - ((const char*)(dctx->previousDstEnd) - (const char*)(dctx->prefixStart)); in ZSTD_refDictContent() 1043 dctx->prefixStart = dict; in ZSTD_refDictContent() 1046 dctx->dictContentBeginForFuzzing = dctx->prefixStart; in ZSTD_refDictContent() 1165 dctx->prefixStart = NULL; in ZSTD_decompressBegin()
|
/freebsd/sys/contrib/openzfs/module/zstd/lib/compress/ |
H A D | zstd_fast.c | 65 const BYTE* const prefixStart = base + prefixStartIndex; in ZSTD_compressBlock_fast_generic() local 73 ip0 += (ip0 == prefixStart); in ZSTD_compressBlock_fast_generic() 146 while (((ip0>anchor) & (match0>prefixStart)) in ZSTD_compressBlock_fast_generic() 221 const BYTE* const prefixStart = base + prefixStartIndex; in ZSTD_compressBlock_fast_dictMatchState_generic() local 235 const U32 dictAndPrefixLength = (U32)(ip - prefixStart + dictEnd - dictStart); in ZSTD_compressBlock_fast_dictMatchState_generic() 273 mLength = ZSTD_count_2segments(ip+1+4, repMatch+4, iend, repMatchEnd, prefixStart) + 4; in ZSTD_compressBlock_fast_dictMatchState_generic() 288 mLength = ZSTD_count_2segments(ip+4, dictMatch+4, iend, dictEnd, prefixStart) + 4; in ZSTD_compressBlock_fast_dictMatchState_generic() 306 while (((ip>anchor) & (match>prefixStart)) in ZSTD_compressBlock_fast_dictMatchState_generic() 333 … size_t const repLength2 = ZSTD_count_2segments(ip+4, repMatch2+4, iend, repEnd2, prefixStart) + 4; in ZSTD_compressBlock_fast_dictMatchState_generic() 395 const BYTE* const prefixStart = base + prefixStartIndex; in ZSTD_compressBlock_fast_extDict_generic() local [all …]
|
H A D | zstd_double_fast.c | 380 const BYTE* const prefixStart = base + prefixStartIndex; in ZSTD_compressBlock_doubleFast_extDict_generic() local 415 mLength = ZSTD_count_2segments(ip+1+4, repMatch+4, iend, repMatchEnd, prefixStart) + 4; in ZSTD_compressBlock_doubleFast_extDict_generic() 421 … const BYTE* const lowMatchPtr = matchLongIndex < prefixStartIndex ? dictStart : prefixStart; in ZSTD_compressBlock_doubleFast_extDict_generic() 423 mLength = ZSTD_count_2segments(ip+8, matchLong+8, iend, matchEnd, prefixStart) + 8; in ZSTD_compressBlock_doubleFast_extDict_generic() 439 … const BYTE* const lowMatchPtr = matchIndex3 < prefixStartIndex ? dictStart : prefixStart; in ZSTD_compressBlock_doubleFast_extDict_generic() 440 mLength = ZSTD_count_2segments(ip+9, match3+8, iend, matchEnd, prefixStart) + 8; in ZSTD_compressBlock_doubleFast_extDict_generic() 446 … const BYTE* const lowMatchPtr = matchIndex < prefixStartIndex ? dictStart : prefixStart; in ZSTD_compressBlock_doubleFast_extDict_generic() 447 mLength = ZSTD_count_2segments(ip+4, match+4, iend, matchEnd, prefixStart) + 4; in ZSTD_compressBlock_doubleFast_extDict_generic() 483 … size_t const repLength2 = ZSTD_count_2segments(ip+4, repMatch2+4, iend, repEnd2, prefixStart) + 4; in ZSTD_compressBlock_doubleFast_extDict_generic()
|
H A D | zstd_lazy.c | 80 const BYTE* const prefixStart = base + dictLimit; in ZSTD_insertDUBT1() local 116 …matchLength += ZSTD_count_2segments(ip+matchLength, match+matchLength, iend, dictEnd, prefixStart); in ZSTD_insertDUBT1() 170 const BYTE* const prefixStart = base + ms->window.dictLimit; in ZSTD_DUBT_findBetterDictMatch() local 192 …matchLength += ZSTD_count_2segments(ip+matchLength, match+matchLength, iend, dictEnd, prefixStart); in ZSTD_DUBT_findBetterDictMatch() 301 const BYTE* const prefixStart = base + dictLimit; in ZSTD_DUBT_findBestMatch() local 321 …matchLength += ZSTD_count_2segments(ip+matchLength, match+matchLength, iend, dictEnd, prefixStart); in ZSTD_DUBT_findBestMatch() 494 const BYTE* const prefixStart = base + dictLimit; in ZSTD_HcFindBestMatch_generic() local 520 currentMl = ZSTD_count_2segments(ip+4, match+4, iLimit, dictEnd, prefixStart) + 4; in ZSTD_HcFindBestMatch_generic() 553 currentMl = ZSTD_count_2segments(ip+4, match+4, iLimit, dmsEnd, prefixStart) + 4; in ZSTD_HcFindBestMatch_generic() 942 const BYTE* const prefixStart = base + dictLimit; in ZSTD_compressBlock_lazy_extDict_generic() local [all …]
|
H A D | zstd_opt.c | 387 const BYTE* const prefixStart = base + dictLimit; in ZSTD_insertBt1() local 443 …matchLength += ZSTD_count_2segments(ip+matchLength, match+matchLength, iend, dictEnd, prefixStart); in ZSTD_insertBt1() 535 const BYTE* const prefixStart = base + dictLimit; in ZSTD_insertBtAndGetAllMatches() local 587 …(U32)ZSTD_count_2segments(ip+minMatch, repMatch+minMatch, iLimit, dictEnd, prefixStart) + minMatch; in ZSTD_insertBtAndGetAllMatches() 593 … (U32)ZSTD_count_2segments(ip+minMatch, repMatch+minMatch, iLimit, dmsEnd, prefixStart) + minMatch; in ZSTD_insertBtAndGetAllMatches() 619 mlen = ZSTD_count_2segments(ip, match, iLimit, dictEnd, prefixStart); in ZSTD_insertBtAndGetAllMatches() 656 …tchLength += ZSTD_count_2segments(ip+matchLength, match+matchLength, iLimit, dictEnd, prefixStart); in ZSTD_insertBtAndGetAllMatches() 704 …atchLength += ZSTD_count_2segments(ip+matchLength, match+matchLength, iLimit, dmsEnd, prefixStart); in ZSTD_insertBtAndGetAllMatches() 810 const BYTE* const prefixStart = base + ms->window.dictLimit; in ZSTD_compressBlock_opt_generic() local 826 ip += (ip==prefixStart); in ZSTD_compressBlock_opt_generic() [all …]
|
/freebsd/sys/contrib/zstd/lib/compress/ |
H A D | zstd_fast.c | 107 const BYTE* const prefixStart = base + prefixStartIndex; in ZSTD_compressBlock_fast_noDict_generic() local 140 ip0 += (ip0 == prefixStart); in ZSTD_compressBlock_fast_noDict_generic() 274 while (((ip0>anchor) & (match0>prefixStart)) && (ip0[-1] == match0[-1])) { in ZSTD_compressBlock_fast_noDict_generic() 386 const BYTE* const prefixStart = base + prefixStartIndex; in ZSTD_compressBlock_fast_dictMatchState_generic() local 400 const U32 dictAndPrefixLength = (U32)(ip - prefixStart + dictEnd - dictStart); in ZSTD_compressBlock_fast_dictMatchState_generic() 440 mLength = ZSTD_count_2segments(ip+1+4, repMatch+4, iend, repMatchEnd, prefixStart) + 4; in ZSTD_compressBlock_fast_dictMatchState_generic() 455 mLength = ZSTD_count_2segments(ip+4, dictMatch+4, iend, dictEnd, prefixStart) + 4; in ZSTD_compressBlock_fast_dictMatchState_generic() 473 while (((ip>anchor) & (match>prefixStart)) in ZSTD_compressBlock_fast_dictMatchState_generic() 500 … size_t const repLength2 = ZSTD_count_2segments(ip+4, repMatch2+4, iend, repEnd2, prefixStart) + 4; in ZSTD_compressBlock_fast_dictMatchState_generic() 568 const BYTE* const prefixStart = base + prefixStartIndex; in ZSTD_compressBlock_fast_extDict_generic() local [all …]
|
H A D | zstd_double_fast.c | 551 const BYTE* const prefixStart = base + prefixStartIndex; in ZSTD_compressBlock_doubleFast_extDict_generic() local 586 mLength = ZSTD_count_2segments(ip+1+4, repMatch+4, iend, repMatchEnd, prefixStart) + 4; in ZSTD_compressBlock_doubleFast_extDict_generic() 592 … const BYTE* const lowMatchPtr = matchLongIndex < prefixStartIndex ? dictStart : prefixStart; in ZSTD_compressBlock_doubleFast_extDict_generic() 594 mLength = ZSTD_count_2segments(ip+8, matchLong+8, iend, matchEnd, prefixStart) + 8; in ZSTD_compressBlock_doubleFast_extDict_generic() 610 … const BYTE* const lowMatchPtr = matchIndex3 < prefixStartIndex ? dictStart : prefixStart; in ZSTD_compressBlock_doubleFast_extDict_generic() 611 mLength = ZSTD_count_2segments(ip+9, match3+8, iend, matchEnd, prefixStart) + 8; in ZSTD_compressBlock_doubleFast_extDict_generic() 617 … const BYTE* const lowMatchPtr = matchIndex < prefixStartIndex ? dictStart : prefixStart; in ZSTD_compressBlock_doubleFast_extDict_generic() 618 mLength = ZSTD_count_2segments(ip+4, match+4, iend, matchEnd, prefixStart) + 4; in ZSTD_compressBlock_doubleFast_extDict_generic() 654 … size_t const repLength2 = ZSTD_count_2segments(ip+4, repMatch2+4, iend, repEnd2, prefixStart) + 4; in ZSTD_compressBlock_doubleFast_extDict_generic()
|
H A D | zstd_lazy.c | 80 const BYTE* const prefixStart = base + dictLimit; in ZSTD_insertDUBT1() local 116 …matchLength += ZSTD_count_2segments(ip+matchLength, match+matchLength, iend, dictEnd, prefixStart); in ZSTD_insertDUBT1() 170 const BYTE* const prefixStart = base + ms->window.dictLimit; in ZSTD_DUBT_findBetterDictMatch() local 192 …matchLength += ZSTD_count_2segments(ip+matchLength, match+matchLength, iend, dictEnd, prefixStart); in ZSTD_DUBT_findBetterDictMatch() 302 const BYTE* const prefixStart = base + dictLimit; in ZSTD_DUBT_findBestMatch() local 322 …matchLength += ZSTD_count_2segments(ip+matchLength, match+matchLength, iend, dictEnd, prefixStart); in ZSTD_DUBT_findBestMatch() 519 const BYTE* const prefixStart, const U32 curr, in ZSTD_dedicatedDictSearch_lazy_search() argument 558 currentMl = ZSTD_count_2segments(ip+4, match+4, iLimit, ddsEnd, prefixStart) + 4; in ZSTD_dedicatedDictSearch_lazy_search() 595 currentMl = ZSTD_count_2segments(ip+4, match+4, iLimit, ddsEnd, prefixStart) + 4; in ZSTD_dedicatedDictSearch_lazy_search() 661 const BYTE* const prefixStart = base + dictLimit; in ZSTD_HcFindBestMatch() local [all …]
|
H A D | zstd_opt.c | 430 const BYTE* const prefixStart = base + dictLimit; in ZSTD_insertBt1() local 490 …matchLength += ZSTD_count_2segments(ip+matchLength, match+matchLength, iend, dictEnd, prefixStart); in ZSTD_insertBt1() 582 const BYTE* const prefixStart = base + dictLimit; in ZSTD_insertBtAndGetAllMatches() local 634 …(U32)ZSTD_count_2segments(ip+minMatch, repMatch+minMatch, iLimit, dictEnd, prefixStart) + minMatch; in ZSTD_insertBtAndGetAllMatches() 640 … (U32)ZSTD_count_2segments(ip+minMatch, repMatch+minMatch, iLimit, dmsEnd, prefixStart) + minMatch; in ZSTD_insertBtAndGetAllMatches() 666 mlen = ZSTD_count_2segments(ip, match, iLimit, dictEnd, prefixStart); in ZSTD_insertBtAndGetAllMatches() 703 …tchLength += ZSTD_count_2segments(ip+matchLength, match+matchLength, iLimit, dictEnd, prefixStart); in ZSTD_insertBtAndGetAllMatches() 751 …atchLength += ZSTD_count_2segments(ip+matchLength, match+matchLength, iLimit, dmsEnd, prefixStart); in ZSTD_insertBtAndGetAllMatches() 1051 const BYTE* const prefixStart = base + ms->window.dictLimit; in ZSTD_compressBlock_opt_generic() local 1074 ip += (ip==prefixStart); in ZSTD_compressBlock_opt_generic() [all …]
|