Lines Matching refs:U32
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()
28 const U32 fastHashFillStep = 3; in ZSTD_fillHashTableForCDict()
38 U32 const curr = (U32)(ip - base); in ZSTD_fillHashTableForCDict()
44 { U32 p; in ZSTD_fillHashTableForCDict()
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()
65 const U32 fastHashFillStep = 3; in ZSTD_fillHashTableForCCtx()
75 U32 const curr = (U32)(ip - base); in ZSTD_fillHashTableForCCtx()
80 { U32 p; in ZSTD_fillHashTableForCCtx()
101 …STD_match4Found) (const BYTE* currentPtr, const BYTE* matchAddress, U32 matchIdx, U32 idxLowLimit);
104 ZSTD_match4Found_cmov(const BYTE* currentPtr, const BYTE* matchAddress, U32 matchIdx, U32 idxLowLim… in ZSTD_match4Found_cmov()
127 ZSTD_match4Found_branch(const BYTE* currentPtr, const BYTE* matchAddress, U32 matchIdx, U32 idxLowL… in ZSTD_match4Found_branch()
132 U32 mval; in ZSTD_match4Found_branch()
192 ZSTD_MatchState_t* ms, SeqStore_t* seqStore, U32 rep[ZSTD_REP_NUM], in ZSTD_compressBlock_fast_noDict_generic()
194 U32 const mls, int useCmov) 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()
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()
213 U32 current0; in ZSTD_compressBlock_fast_noDict_generic()
215 U32 rep_offset1 = rep[0]; in ZSTD_compressBlock_fast_noDict_generic()
216 U32 rep_offset2 = rep[1]; in ZSTD_compressBlock_fast_noDict_generic()
217 U32 offsetSaved1 = 0, offsetSaved2 = 0; in ZSTD_compressBlock_fast_noDict_generic()
221 U32 matchIdx; /* match idx for ip0 */ in ZSTD_compressBlock_fast_noDict_generic()
223 U32 offcode; 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()
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()
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()
322 hashTable[hash1] = (U32)(ip1 - base); in ZSTD_compressBlock_fast_noDict_generic()
381 rep_offset1 = (U32)(ip0-match0); in ZSTD_compressBlock_fast_noDict_generic()
407 hashTable[ZSTD_hashPtr(ip0-2, hlog, mls)] = (U32)(ip0-2-base); in ZSTD_compressBlock_fast_noDict_generic()
413 …{ U32 const tmpOff = rep_offset2; rep_offset2 = rep_offset1; rep_offset1 = tmpOff; } /* swap rep_o… in ZSTD_compressBlock_fast_noDict_generic()
414 hashTable[ZSTD_hashPtr(ip0, hlog, mls)] = (U32)(ip0-base); in ZSTD_compressBlock_fast_noDict_generic()
426 ZSTD_MatchState_t* ms, SeqStore_t* seqStore, U32 rep[ZSTD_REP_NUM], \
443 ZSTD_MatchState_t* ms, SeqStore_t* seqStore, U32 rep[ZSTD_REP_NUM], in ZSTD_compressBlock_fast()
446 U32 const mml = ms->cParams.minMatch; in ZSTD_compressBlock_fast()
483 ZSTD_MatchState_t* ms, SeqStore_t* seqStore, U32 rep[ZSTD_REP_NUM], in ZSTD_compressBlock_fast_dictMatchState_generic()
484 void const* src, size_t srcSize, U32 const mls, U32 const hasStep) 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()
496 const U32 prefixStartIndex = ms->window.dictLimit; in ZSTD_compressBlock_fast_dictMatchState_generic()
500 U32 offset_1=rep[0], offset_2=rep[1]; 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()
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()
524 assert(prefixStartIndex >= (U32)(dictEnd - dictBase)); in ZSTD_compressBlock_fast_dictMatchState_generic()
527 size_t const hashTableBytes = (((size_t)1) << dictCParams->hashLog) * sizeof(U32); in ZSTD_compressBlock_fast_dictMatchState_generic()
546 U32 dictMatchIndexAndTag = dictHashTable[dictHashAndTag0 >> ZSTD_SHORT_CACHE_TAG_BITS]; in ZSTD_compressBlock_fast_dictMatchState_generic()
549 U32 matchIndex = hashTable[hash0]; in ZSTD_compressBlock_fast_dictMatchState_generic()
550 U32 curr = (U32)(ip0 - base); in ZSTD_compressBlock_fast_dictMatchState_generic()
558 const U32 repIndex = curr + 1 - offset_1; in ZSTD_compressBlock_fast_dictMatchState_generic()
577 const U32 dictMatchIndex = dictMatchIndexAndTag >> ZSTD_SHORT_CACHE_TAG_BITS; in ZSTD_compressBlock_fast_dictMatchState_generic()
583 U32 const offset = (U32) (curr - dictMatchIndex - dictIndexDelta); in ZSTD_compressBlock_fast_dictMatchState_generic()
601 U32 const offset = (U32) (ip0 - match); in ZSTD_compressBlock_fast_dictMatchState_generic()
628 curr = (U32)(ip0 - base); 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()
654 …U32 tmpOffset = offset_2; offset_2 = offset_1; offset_1 = tmpOffset; /* swap offset_2 <=> offset… in ZSTD_compressBlock_fast_dictMatchState_generic()
686 ZSTD_MatchState_t* ms, SeqStore_t* seqStore, U32 rep[ZSTD_REP_NUM], in ZSTD_compressBlock_fast_dictMatchState()
689 U32 const mls = ms->cParams.minMatch; in ZSTD_compressBlock_fast_dictMatchState()
709 ZSTD_MatchState_t* ms, SeqStore_t* seqStore, U32 rep[ZSTD_REP_NUM], in ZSTD_compressBlock_fast_extDict_generic()
710 void const* src, size_t srcSize, U32 const mls, U32 const hasStep) 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()
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()
723 const U32 dictStartIndex = lowLimit; in ZSTD_compressBlock_fast_extDict_generic()
725 const U32 dictLimit = ms->window.dictLimit; in ZSTD_compressBlock_fast_extDict_generic()
726 const U32 prefixStartIndex = dictLimit < lowLimit ? lowLimit : dictLimit; in ZSTD_compressBlock_fast_extDict_generic()
731 U32 offset_1=rep[0], offset_2=rep[1]; in ZSTD_compressBlock_fast_extDict_generic()
732 U32 offsetSaved1 = 0, offsetSaved2 = 0; in ZSTD_compressBlock_fast_extDict_generic()
738 U32 current0; in ZSTD_compressBlock_fast_extDict_generic()
743 U32 idx; /* match idx for ip0 */ in ZSTD_compressBlock_fast_extDict_generic()
746 U32 offcode; 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()
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()
795 U32 rval; 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()
822 U32 const mval = idx >= dictStartIndex ? in ZSTD_compressBlock_fast_extDict_generic()
846 current0 = (U32)(ip0 - base); in ZSTD_compressBlock_fast_extDict_generic()
850 U32 const mval = idx >= dictStartIndex ? in ZSTD_compressBlock_fast_extDict_generic()
902 { U32 const offset = current0 - idx; in ZSTD_compressBlock_fast_extDict_generic()
931 hashTable[hash1] = (U32)(ip1 - base); 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()
948 …{ U32 const tmpOffset = offset_2; offset_2 = offset_1; offset_1 = tmpOffset; } /* swap offset_2 <… in ZSTD_compressBlock_fast_extDict_generic()
950 hashTable[ZSTD_hashPtr(ip0, hlog, mls)] = (U32)(ip0-base); in ZSTD_compressBlock_fast_extDict_generic()
967 ZSTD_MatchState_t* ms, SeqStore_t* seqStore, U32 rep[ZSTD_REP_NUM], in ZSTD_compressBlock_fast_extDict()
970 U32 const mls = ms->cParams.minMatch; in ZSTD_compressBlock_fast_extDict()