Lines Matching +full:4 +full:- +full:byte

1 // SPDX-License-Identifier: GPL-2.0+ OR BSD-3-Clause
6 * This source code is licensed under both the BSD-style license (found in the
9 * You may select, at your option, one of the above-listed licenses.
21 const ZSTD_compressionParameters* const cParams = &ms->cParams; in ZSTD_fillHashTableForCDict()
22 U32* const hashTable = ms->hashTable; in ZSTD_fillHashTableForCDict()
23 U32 const hBits = cParams->hashLog + ZSTD_SHORT_CACHE_TAG_BITS; in ZSTD_fillHashTableForCDict()
24 U32 const mls = cParams->minMatch; in ZSTD_fillHashTableForCDict()
25 const BYTE* const base = ms->window.base; in ZSTD_fillHashTableForCDict()
26 const BYTE* ip = base + ms->nextToUpdate; in ZSTD_fillHashTableForCDict()
27 const BYTE* const iend = ((const BYTE*)end) - HASH_READ_SIZE; in ZSTD_fillHashTableForCDict()
38 U32 const curr = (U32)(ip - base); in ZSTD_fillHashTableForCDict()
58 const ZSTD_compressionParameters* const cParams = &ms->cParams; in ZSTD_fillHashTableForCCtx()
59 U32* const hashTable = ms->hashTable; in ZSTD_fillHashTableForCCtx()
60 U32 const hBits = cParams->hashLog; in ZSTD_fillHashTableForCCtx()
61 U32 const mls = cParams->minMatch; in ZSTD_fillHashTableForCCtx()
62 const BYTE* const base = ms->window.base; in ZSTD_fillHashTableForCCtx()
63 const BYTE* ip = base + ms->nextToUpdate; in ZSTD_fillHashTableForCCtx()
64 const BYTE* const iend = ((const BYTE*)end) - HASH_READ_SIZE; in ZSTD_fillHashTableForCCtx()
75 U32 const curr = (U32)(ip - base); in ZSTD_fillHashTableForCCtx()
101 typedef int (*ZSTD_match4Found) (const BYTE* currentPtr, const BYTE* matchAddress, U32 matchIdx, U3…
104 ZSTD_match4Found_cmov(const BYTE* currentPtr, const BYTE* matchAddress, U32 matchIdx, U32 idxLowLim… in ZSTD_match4Found_cmov()
109 static const BYTE dummy[] = {0x12,0x34,0x56,0x78}; in ZSTD_match4Found_cmov()
114 const BYTE* mvalAddr = ZSTD_selectAddr(matchIdx, idxLowLimit, matchAddress, dummy); in ZSTD_match4Found_cmov()
127 ZSTD_match4Found_branch(const BYTE* currentPtr, const BYTE* matchAddress, U32 matchIdx, U32 idxLowL… in ZSTD_match4Found_branch()
145 * given position is broken into 4 stages:
150 * 4. Compare
156 * Rather than do 1->2->3->4 sequentially for a single position before moving
165 * Pos | Time -->
166 * ----+-------------------
171 * N+4 | R H T M
180 * to re-enter the loop:
182 * Pos | Time -->
183 * ----+-------------------
196 const ZSTD_compressionParameters* const cParams = &ms->cParams; in ZSTD_compressBlock_fast_noDict_generic()
197 U32* const hashTable = ms->hashTable; in ZSTD_compressBlock_fast_noDict_generic()
198 U32 const hlog = cParams->hashLog; in ZSTD_compressBlock_fast_noDict_generic()
199 size_t const stepSize = cParams->targetLength + !(cParams->targetLength) + 1; /* min 2 */ in ZSTD_compressBlock_fast_noDict_generic()
200 const BYTE* const base = ms->window.base; in ZSTD_compressBlock_fast_noDict_generic()
201 const BYTE* const istart = (const BYTE*)src; in ZSTD_compressBlock_fast_noDict_generic()
202 const U32 endIndex = (U32)((size_t)(istart - base) + srcSize); in ZSTD_compressBlock_fast_noDict_generic()
203 const U32 prefixStartIndex = ZSTD_getLowestPrefixIndex(ms, endIndex, cParams->windowLog); in ZSTD_compressBlock_fast_noDict_generic()
204 const BYTE* const prefixStart = base + prefixStartIndex; in ZSTD_compressBlock_fast_noDict_generic()
205 const BYTE* const iend = istart + srcSize; in ZSTD_compressBlock_fast_noDict_generic()
206 const BYTE* const ilimit = iend - HASH_READ_SIZE; in ZSTD_compressBlock_fast_noDict_generic()
208 const BYTE* anchor = istart; in ZSTD_compressBlock_fast_noDict_generic()
209 const BYTE* ip0 = istart; in ZSTD_compressBlock_fast_noDict_generic()
210 const BYTE* ip1; in ZSTD_compressBlock_fast_noDict_generic()
211 const BYTE* ip2; in ZSTD_compressBlock_fast_noDict_generic()
212 const BYTE* ip3; in ZSTD_compressBlock_fast_noDict_generic()
224 const BYTE* match0; in ZSTD_compressBlock_fast_noDict_generic()
232 const BYTE* nextStep; in ZSTD_compressBlock_fast_noDict_generic()
233 const size_t kStepIncr = (1 << (kSearchStrength - 1)); in ZSTD_compressBlock_fast_noDict_generic()
238 { U32 const curr = (U32)(ip0 - base); in ZSTD_compressBlock_fast_noDict_generic()
239 U32 const windowLow = ZSTD_getLowestPrefixIndex(ms, curr, cParams->windowLog); in ZSTD_compressBlock_fast_noDict_generic()
240 U32 const maxRep = curr - windowLow; in ZSTD_compressBlock_fast_noDict_generic()
251 /* calculate positions, ip0 - anchor == 0, so we skip step calc */ in ZSTD_compressBlock_fast_noDict_generic()
267 const U32 rval = MEM_read32(ip2 - rep_offset1); in ZSTD_compressBlock_fast_noDict_generic()
270 current0 = (U32)(ip0 - base); in ZSTD_compressBlock_fast_noDict_generic()
276 match0 = ip0 - rep_offset1; in ZSTD_compressBlock_fast_noDict_generic()
277 mLength = ip0[-1] == match0[-1]; in ZSTD_compressBlock_fast_noDict_generic()
278 ip0 -= mLength; in ZSTD_compressBlock_fast_noDict_generic()
279 match0 -= mLength; in ZSTD_compressBlock_fast_noDict_generic()
281 mLength += 4; in ZSTD_compressBlock_fast_noDict_generic()
286 hashTable[hash1] = (U32)(ip1 - base); in ZSTD_compressBlock_fast_noDict_generic()
295 hashTable[hash1] = (U32)(ip1 - base); in ZSTD_compressBlock_fast_noDict_generic()
313 current0 = (U32)(ip0 - base); in ZSTD_compressBlock_fast_noDict_generic()
318 if (step <= 4) { in ZSTD_compressBlock_fast_noDict_generic()
320 * The minimum possible match has length 4, so search can resume at ip0 + 4. in ZSTD_compressBlock_fast_noDict_generic()
322 hashTable[hash1] = (U32)(ip1 - base); in ZSTD_compressBlock_fast_noDict_generic()
358 * - If both offsets are zero they are in the same order. in ZSTD_compressBlock_fast_noDict_generic()
359 * - If both offsets are non-zero, we won't restore the offsets from `offsetSaved[12]`. in ZSTD_compressBlock_fast_noDict_generic()
360 * - If only one is zero, we need to decide which offset to restore. in ZSTD_compressBlock_fast_noDict_generic()
361 * - If rep_offset1 is non-zero, then rep_offset2 must be offsetSaved1. in ZSTD_compressBlock_fast_noDict_generic()
362 * - It is impossible for rep_offset2 to be non-zero. in ZSTD_compressBlock_fast_noDict_generic()
374 return (size_t)(iend - anchor); in ZSTD_compressBlock_fast_noDict_generic()
381 rep_offset1 = (U32)(ip0-match0); in ZSTD_compressBlock_fast_noDict_generic()
383 mLength = 4; in ZSTD_compressBlock_fast_noDict_generic()
386 while (((ip0>anchor) & (match0>prefixStart)) && (ip0[-1] == match0[-1])) { in ZSTD_compressBlock_fast_noDict_generic()
387 ip0--; in ZSTD_compressBlock_fast_noDict_generic()
388 match0--; in ZSTD_compressBlock_fast_noDict_generic()
397 ZSTD_storeSeq(seqStore, (size_t)(ip0 - anchor), anchor, iend, offcode, mLength); in ZSTD_compressBlock_fast_noDict_generic()
406 …_hashPtr(base+current0+2, hlog, mls)] = current0+2; /* here because current+2 could be > iend-8 */ in ZSTD_compressBlock_fast_noDict_generic()
407 hashTable[ZSTD_hashPtr(ip0-2, hlog, mls)] = (U32)(ip0-2-base); in ZSTD_compressBlock_fast_noDict_generic()
410 while ( (ip0 <= ilimit) && (MEM_read32(ip0) == MEM_read32(ip0 - rep_offset2)) ) { in ZSTD_compressBlock_fast_noDict_generic()
412 size_t const rLength = ZSTD_count(ip0+4, ip0+4-rep_offset2, iend) + 4; in ZSTD_compressBlock_fast_noDict_generic()
414 hashTable[ZSTD_hashPtr(ip0, hlog, mls)] = (U32)(ip0-base); in ZSTD_compressBlock_fast_noDict_generic()
418 continue; /* faster when present (confirmed on gcc-8) ... (?) */ in ZSTD_compressBlock_fast_noDict_generic()
432 ZSTD_GEN_FAST_FN(noDict, 4, 1)
437 ZSTD_GEN_FAST_FN(noDict, 4, 0)
446 U32 const mml = ms->cParams.minMatch; in ZSTD_compressBlock_fast()
448 int const useCmov = ms->cParams.windowLog < 19; in ZSTD_compressBlock_fast()
449 assert(ms->dictMatchState == NULL); in ZSTD_compressBlock_fast()
454 case 4 : in ZSTD_compressBlock_fast()
468 case 4 : in ZSTD_compressBlock_fast()
486 const ZSTD_compressionParameters* const cParams = &ms->cParams; in ZSTD_compressBlock_fast_dictMatchState_generic()
487 U32* const hashTable = ms->hashTable; in ZSTD_compressBlock_fast_dictMatchState_generic()
488 U32 const hlog = cParams->hashLog; in ZSTD_compressBlock_fast_dictMatchState_generic()
490 U32 const stepSize = cParams->targetLength + !(cParams->targetLength); in ZSTD_compressBlock_fast_dictMatchState_generic()
491 const BYTE* const base = ms->window.base; in ZSTD_compressBlock_fast_dictMatchState_generic()
492 const BYTE* const istart = (const BYTE*)src; in ZSTD_compressBlock_fast_dictMatchState_generic()
493 const BYTE* ip0 = istart; in ZSTD_compressBlock_fast_dictMatchState_generic()
494 const BYTE* ip1 = ip0 + stepSize; /* we assert below that stepSize >= 1 */ in ZSTD_compressBlock_fast_dictMatchState_generic()
495 const BYTE* anchor = istart; in ZSTD_compressBlock_fast_dictMatchState_generic()
496 const U32 prefixStartIndex = ms->window.dictLimit; in ZSTD_compressBlock_fast_dictMatchState_generic()
497 const BYTE* const prefixStart = base + prefixStartIndex; in ZSTD_compressBlock_fast_dictMatchState_generic()
498 const BYTE* const iend = istart + srcSize; in ZSTD_compressBlock_fast_dictMatchState_generic()
499 const BYTE* const ilimit = iend - HASH_READ_SIZE; in ZSTD_compressBlock_fast_dictMatchState_generic()
502 const ZSTD_MatchState_t* const dms = ms->dictMatchState; in ZSTD_compressBlock_fast_dictMatchState_generic()
503 const ZSTD_compressionParameters* const dictCParams = &dms->cParams ; in ZSTD_compressBlock_fast_dictMatchState_generic()
504 const U32* const dictHashTable = dms->hashTable; in ZSTD_compressBlock_fast_dictMatchState_generic()
505 const U32 dictStartIndex = dms->window.dictLimit; in ZSTD_compressBlock_fast_dictMatchState_generic()
506 const BYTE* const dictBase = dms->window.base; in ZSTD_compressBlock_fast_dictMatchState_generic()
507 const BYTE* const dictStart = dictBase + dictStartIndex; in ZSTD_compressBlock_fast_dictMatchState_generic()
508 const BYTE* const dictEnd = dms->window.nextSrc; in ZSTD_compressBlock_fast_dictMatchState_generic()
509 const U32 dictIndexDelta = prefixStartIndex - (U32)(dictEnd - dictBase); in ZSTD_compressBlock_fast_dictMatchState_generic()
510 const U32 dictAndPrefixLength = (U32)(istart - prefixStart + dictEnd - dictStart); in ZSTD_compressBlock_fast_dictMatchState_generic()
511 const U32 dictHBits = dictCParams->hashLog + ZSTD_SHORT_CACHE_TAG_BITS; in ZSTD_compressBlock_fast_dictMatchState_generic()
515 const U32 maxDistance = 1U << cParams->windowLog; in ZSTD_compressBlock_fast_dictMatchState_generic()
516 const U32 endIndex = (U32)((size_t)(istart - base) + srcSize); in ZSTD_compressBlock_fast_dictMatchState_generic()
517 assert(endIndex - prefixStartIndex <= maxDistance); in ZSTD_compressBlock_fast_dictMatchState_generic()
524 assert(prefixStartIndex >= (U32)(dictEnd - dictBase)); in ZSTD_compressBlock_fast_dictMatchState_generic()
526 if (ms->prefetchCDictTables) { in ZSTD_compressBlock_fast_dictMatchState_generic()
527 size_t const hashTableBytes = (((size_t)1) << dictCParams->hashLog) * sizeof(U32); in ZSTD_compressBlock_fast_dictMatchState_generic()
550 U32 curr = (U32)(ip0 - base); in ZSTD_compressBlock_fast_dictMatchState_generic()
553 const BYTE* nextStep = ip0 + kStepIncr; in ZSTD_compressBlock_fast_dictMatchState_generic()
557 const BYTE* match = base + matchIndex; in ZSTD_compressBlock_fast_dictMatchState_generic()
558 const U32 repIndex = curr + 1 - offset_1; in ZSTD_compressBlock_fast_dictMatchState_generic()
559 const BYTE* repMatch = (repIndex < prefixStartIndex) ? in ZSTD_compressBlock_fast_dictMatchState_generic()
560 dictBase + (repIndex - dictIndexDelta) : in ZSTD_compressBlock_fast_dictMatchState_generic()
568 const BYTE* const repMatchEnd = repIndex < prefixStartIndex ? dictEnd : iend; in ZSTD_compressBlock_fast_dictMatchState_generic()
569 … mLength = ZSTD_count_2segments(ip0 + 1 + 4, repMatch + 4, iend, repMatchEnd, prefixStart) + 4; in ZSTD_compressBlock_fast_dictMatchState_generic()
571 … ZSTD_storeSeq(seqStore, (size_t) (ip0 - anchor), anchor, iend, REPCODE1_TO_OFFBASE, mLength); in ZSTD_compressBlock_fast_dictMatchState_generic()
578 const BYTE* dictMatch = dictBase + dictMatchIndex; in ZSTD_compressBlock_fast_dictMatchState_generic()
583 U32 const offset = (U32) (curr - dictMatchIndex - dictIndexDelta); in ZSTD_compressBlock_fast_dictMatchState_generic()
584 … mLength = ZSTD_count_2segments(ip0 + 4, dictMatch + 4, iend, dictEnd, prefixStart) + 4; in ZSTD_compressBlock_fast_dictMatchState_generic()
586 && (ip0[-1] == dictMatch[-1])) { in ZSTD_compressBlock_fast_dictMatchState_generic()
587 ip0--; in ZSTD_compressBlock_fast_dictMatchState_generic()
588 dictMatch--; in ZSTD_compressBlock_fast_dictMatchState_generic()
593 …ZSTD_storeSeq(seqStore, (size_t) (ip0 - anchor), anchor, iend, OFFSET_TO_OFFBASE(offset), mLength); in ZSTD_compressBlock_fast_dictMatchState_generic()
600 /* found a regular match of size >= 4 */ in ZSTD_compressBlock_fast_dictMatchState_generic()
601 U32 const offset = (U32) (ip0 - match); in ZSTD_compressBlock_fast_dictMatchState_generic()
602 mLength = ZSTD_count(ip0 + 4, match + 4, iend) + 4; in ZSTD_compressBlock_fast_dictMatchState_generic()
604 && (ip0[-1] == match[-1])) { in ZSTD_compressBlock_fast_dictMatchState_generic()
605 ip0--; in ZSTD_compressBlock_fast_dictMatchState_generic()
606 match--; in ZSTD_compressBlock_fast_dictMatchState_generic()
611 …ZSTD_storeSeq(seqStore, (size_t) (ip0 - anchor), anchor, iend, OFFSET_TO_OFFBASE(offset), mLength); in ZSTD_compressBlock_fast_dictMatchState_generic()
628 curr = (U32)(ip0 - base); in ZSTD_compressBlock_fast_dictMatchState_generic()
640 …hTable[ZSTD_hashPtr(base+curr+2, hlog, mls)] = curr+2; /* here because curr+2 could be > iend-8 */ in ZSTD_compressBlock_fast_dictMatchState_generic()
641 hashTable[ZSTD_hashPtr(ip0-2, hlog, mls)] = (U32)(ip0-2-base); in ZSTD_compressBlock_fast_dictMatchState_generic()
645 U32 const current2 = (U32)(ip0-base); in ZSTD_compressBlock_fast_dictMatchState_generic()
646 U32 const repIndex2 = current2 - offset_2; in ZSTD_compressBlock_fast_dictMatchState_generic()
647 const BYTE* repMatch2 = repIndex2 < prefixStartIndex ? in ZSTD_compressBlock_fast_dictMatchState_generic()
648 dictBase - dictIndexDelta + repIndex2 : in ZSTD_compressBlock_fast_dictMatchState_generic()
652 const BYTE* const repEnd2 = repIndex2 < prefixStartIndex ? dictEnd : iend; in ZSTD_compressBlock_fast_dictMatchState_generic()
653 …size_t const repLength2 = ZSTD_count_2segments(ip0+4, repMatch2+4, iend, repEnd2, prefixStart) + 4; in ZSTD_compressBlock_fast_dictMatchState_generic()
676 return (size_t)(iend - anchor); in ZSTD_compressBlock_fast_dictMatchState_generic()
680 ZSTD_GEN_FAST_FN(dictMatchState, 4, 0)
689 U32 const mls = ms->cParams.minMatch; in ZSTD_compressBlock_fast_dictMatchState()
690 assert(ms->dictMatchState != NULL); in ZSTD_compressBlock_fast_dictMatchState()
694 case 4 : in ZSTD_compressBlock_fast_dictMatchState()
712 const ZSTD_compressionParameters* const cParams = &ms->cParams; in ZSTD_compressBlock_fast_extDict_generic()
713 U32* const hashTable = ms->hashTable; in ZSTD_compressBlock_fast_extDict_generic()
714 U32 const hlog = cParams->hashLog; in ZSTD_compressBlock_fast_extDict_generic()
716 size_t const stepSize = cParams->targetLength + !(cParams->targetLength) + 1; in ZSTD_compressBlock_fast_extDict_generic()
717 const BYTE* const base = ms->window.base; in ZSTD_compressBlock_fast_extDict_generic()
718 const BYTE* const dictBase = ms->window.dictBase; in ZSTD_compressBlock_fast_extDict_generic()
719 const BYTE* const istart = (const BYTE*)src; in ZSTD_compressBlock_fast_extDict_generic()
720 const BYTE* anchor = istart; in ZSTD_compressBlock_fast_extDict_generic()
721 const U32 endIndex = (U32)((size_t)(istart - base) + srcSize); in ZSTD_compressBlock_fast_extDict_generic()
722 const U32 lowLimit = ZSTD_getLowestMatchIndex(ms, endIndex, cParams->windowLog); in ZSTD_compressBlock_fast_extDict_generic()
724 const BYTE* const dictStart = dictBase + dictStartIndex; in ZSTD_compressBlock_fast_extDict_generic()
725 const U32 dictLimit = ms->window.dictLimit; in ZSTD_compressBlock_fast_extDict_generic()
727 const BYTE* const prefixStart = base + prefixStartIndex; in ZSTD_compressBlock_fast_extDict_generic()
728 const BYTE* const dictEnd = dictBase + prefixStartIndex; in ZSTD_compressBlock_fast_extDict_generic()
729 const BYTE* const iend = istart + srcSize; in ZSTD_compressBlock_fast_extDict_generic()
730 const BYTE* const ilimit = iend - 8; in ZSTD_compressBlock_fast_extDict_generic()
734 const BYTE* ip0 = istart; in ZSTD_compressBlock_fast_extDict_generic()
735 const BYTE* ip1; in ZSTD_compressBlock_fast_extDict_generic()
736 const BYTE* ip2; in ZSTD_compressBlock_fast_extDict_generic()
737 const BYTE* ip3; in ZSTD_compressBlock_fast_extDict_generic()
744 const BYTE* idxBase; /* base pointer for idx */ in ZSTD_compressBlock_fast_extDict_generic()
747 const BYTE* match0; in ZSTD_compressBlock_fast_extDict_generic()
749 const BYTE* matchEnd = 0; /* initialize to avoid warning, assert != 0 later */ in ZSTD_compressBlock_fast_extDict_generic()
752 const BYTE* nextStep; in ZSTD_compressBlock_fast_extDict_generic()
753 const size_t kStepIncr = (1 << (kSearchStrength - 1)); in ZSTD_compressBlock_fast_extDict_generic()
763 { U32 const curr = (U32)(ip0 - base); in ZSTD_compressBlock_fast_extDict_generic()
764 U32 const maxRep = curr - dictStartIndex; in ZSTD_compressBlock_fast_extDict_generic()
775 /* calculate positions, ip0 - anchor == 0, so we skip step calc */ in ZSTD_compressBlock_fast_extDict_generic()
792 U32 const current2 = (U32)(ip2 - base); in ZSTD_compressBlock_fast_extDict_generic()
793 U32 const repIndex = current2 - offset_1; in ZSTD_compressBlock_fast_extDict_generic()
794 const BYTE* const repBase = repIndex < prefixStartIndex ? dictBase : base; in ZSTD_compressBlock_fast_extDict_generic()
796 if ( ((U32)(prefixStartIndex - repIndex) >= 4) /* intentional underflow */ in ZSTD_compressBlock_fast_extDict_generic()
804 current0 = (U32)(ip0 - base); in ZSTD_compressBlock_fast_extDict_generic()
813 mLength = ip0[-1] == match0[-1]; in ZSTD_compressBlock_fast_extDict_generic()
814 ip0 -= mLength; in ZSTD_compressBlock_fast_extDict_generic()
815 match0 -= mLength; in ZSTD_compressBlock_fast_extDict_generic()
817 mLength += 4; in ZSTD_compressBlock_fast_extDict_generic()
846 current0 = (U32)(ip0 - base); in ZSTD_compressBlock_fast_extDict_generic()
897 return (size_t)(iend - anchor); in ZSTD_compressBlock_fast_extDict_generic()
902 { U32 const offset = current0 - idx; in ZSTD_compressBlock_fast_extDict_generic()
903 const BYTE* const lowMatchPtr = idx < prefixStartIndex ? dictStart : prefixStart; in ZSTD_compressBlock_fast_extDict_generic()
909 mLength = 4; in ZSTD_compressBlock_fast_extDict_generic()
912 while (((ip0>anchor) & (match0>lowMatchPtr)) && (ip0[-1] == match0[-1])) { in ZSTD_compressBlock_fast_extDict_generic()
913 ip0--; in ZSTD_compressBlock_fast_extDict_generic()
914 match0--; in ZSTD_compressBlock_fast_extDict_generic()
924 ZSTD_storeSeq(seqStore, (size_t)(ip0 - anchor), anchor, iend, offcode, mLength); in ZSTD_compressBlock_fast_extDict_generic()
931 hashTable[hash1] = (U32)(ip1 - base); in ZSTD_compressBlock_fast_extDict_generic()
938 …_hashPtr(base+current0+2, hlog, mls)] = current0+2; /* here because current+2 could be > iend-8 */ in ZSTD_compressBlock_fast_extDict_generic()
939 hashTable[ZSTD_hashPtr(ip0-2, hlog, mls)] = (U32)(ip0-2-base); in ZSTD_compressBlock_fast_extDict_generic()
942 U32 const repIndex2 = (U32)(ip0-base) - offset_2; in ZSTD_compressBlock_fast_extDict_generic()
943 …const BYTE* const repMatch2 = repIndex2 < prefixStartIndex ? dictBase + repIndex2 : base + repInde… in ZSTD_compressBlock_fast_extDict_generic()
946 const BYTE* const repEnd2 = repIndex2 < prefixStartIndex ? dictEnd : iend; in ZSTD_compressBlock_fast_extDict_generic()
947 …size_t const repLength2 = ZSTD_count_2segments(ip0+4, repMatch2+4, iend, repEnd2, prefixStart) + 4; in ZSTD_compressBlock_fast_extDict_generic()
950 hashTable[ZSTD_hashPtr(ip0, hlog, mls)] = (U32)(ip0-base); in ZSTD_compressBlock_fast_extDict_generic()
961 ZSTD_GEN_FAST_FN(extDict, 4, 0)
970 U32 const mls = ms->cParams.minMatch; in ZSTD_compressBlock_fast_extDict()
971 assert(ms->dictMatchState == NULL); in ZSTD_compressBlock_fast_extDict()
975 case 4 : in ZSTD_compressBlock_fast_extDict()