Lines Matching refs:U32

20     U32* const hashTable = ms->hashTable;  in ZSTD_fillHashTable()
21 U32 const hBits = cParams->hashLog; in ZSTD_fillHashTable()
22 U32 const mls = cParams->minMatch; in ZSTD_fillHashTable()
26 const U32 fastHashFillStep = 3; in ZSTD_fillHashTable()
32 U32 const curr = (U32)(ip - base); in ZSTD_fillHashTable()
37 { U32 p; in ZSTD_fillHashTable()
94 ZSTD_matchState_t* ms, seqStore_t* seqStore, U32 rep[ZSTD_REP_NUM], in ZSTD_compressBlock_fast_noDict_generic()
96 U32 const mls, U32 const hasStep) in ZSTD_compressBlock_fast_noDict_generic()
99 U32* const hashTable = ms->hashTable; in ZSTD_compressBlock_fast_noDict_generic()
100 U32 const hlog = cParams->hashLog; in ZSTD_compressBlock_fast_noDict_generic()
105 const U32 endIndex = (U32)((size_t)(istart - base) + srcSize); in ZSTD_compressBlock_fast_noDict_generic()
106 const U32 prefixStartIndex = ZSTD_getLowestPrefixIndex(ms, endIndex, cParams->windowLog); in ZSTD_compressBlock_fast_noDict_generic()
116 U32 current0; in ZSTD_compressBlock_fast_noDict_generic()
118 U32 rep_offset1 = rep[0]; in ZSTD_compressBlock_fast_noDict_generic()
119 U32 rep_offset2 = rep[1]; in ZSTD_compressBlock_fast_noDict_generic()
120 U32 offsetSaved = 0; in ZSTD_compressBlock_fast_noDict_generic()
124 U32 idx; /* match idx for ip0 */ in ZSTD_compressBlock_fast_noDict_generic()
125 U32 mval; /* src value at match idx */ in ZSTD_compressBlock_fast_noDict_generic()
127 U32 offcode; in ZSTD_compressBlock_fast_noDict_generic()
141 { U32 const curr = (U32)(ip0 - base); in ZSTD_compressBlock_fast_noDict_generic()
142 U32 const windowLow = ZSTD_getLowestPrefixIndex(ms, curr, cParams->windowLog); in ZSTD_compressBlock_fast_noDict_generic()
143 U32 const maxRep = curr - windowLow; in ZSTD_compressBlock_fast_noDict_generic()
170 const U32 rval = MEM_read32(ip2 - rep_offset1); in ZSTD_compressBlock_fast_noDict_generic()
173 current0 = (U32)(ip0 - base); in ZSTD_compressBlock_fast_noDict_generic()
214 current0 = (U32)(ip0 - base); in ZSTD_compressBlock_fast_noDict_generic()
269 rep_offset1 = (U32)(ip0-match0); in ZSTD_compressBlock_fast_noDict_generic()
292 hashTable[hash1] = (U32)(ip1 - base); in ZSTD_compressBlock_fast_noDict_generic()
300 hashTable[ZSTD_hashPtr(ip0-2, hlog, mls)] = (U32)(ip0-2-base); in ZSTD_compressBlock_fast_noDict_generic()
306 …{ U32 const tmpOff = rep_offset2; rep_offset2 = rep_offset1; rep_offset1 = tmpOff; } /* swap rep_o… in ZSTD_compressBlock_fast_noDict_generic()
307 hashTable[ZSTD_hashPtr(ip0, hlog, mls)] = (U32)(ip0-base); in ZSTD_compressBlock_fast_noDict_generic()
319 ZSTD_matchState_t* ms, seqStore_t* seqStore, U32 rep[ZSTD_REP_NUM], \
336 ZSTD_matchState_t* ms, seqStore_t* seqStore, U32 rep[ZSTD_REP_NUM], in ZSTD_compressBlock_fast()
339 U32 const mls = ms->cParams.minMatch; in ZSTD_compressBlock_fast()
373 ZSTD_matchState_t* ms, seqStore_t* seqStore, U32 rep[ZSTD_REP_NUM], in ZSTD_compressBlock_fast_dictMatchState_generic()
374 void const* src, size_t srcSize, U32 const mls, U32 const hasStep) in ZSTD_compressBlock_fast_dictMatchState_generic()
377 U32* const hashTable = ms->hashTable; in ZSTD_compressBlock_fast_dictMatchState_generic()
378 U32 const hlog = cParams->hashLog; in ZSTD_compressBlock_fast_dictMatchState_generic()
380 U32 const stepSize = cParams->targetLength + !(cParams->targetLength); in ZSTD_compressBlock_fast_dictMatchState_generic()
385 const U32 prefixStartIndex = ms->window.dictLimit; in ZSTD_compressBlock_fast_dictMatchState_generic()
389 U32 offset_1=rep[0], offset_2=rep[1]; in ZSTD_compressBlock_fast_dictMatchState_generic()
390 U32 offsetSaved = 0; in ZSTD_compressBlock_fast_dictMatchState_generic()
394 const U32* const dictHashTable = dms->hashTable; in ZSTD_compressBlock_fast_dictMatchState_generic()
395 const U32 dictStartIndex = dms->window.dictLimit; in ZSTD_compressBlock_fast_dictMatchState_generic()
399 const U32 dictIndexDelta = prefixStartIndex - (U32)(dictEnd - dictBase); in ZSTD_compressBlock_fast_dictMatchState_generic()
400 const U32 dictAndPrefixLength = (U32)(ip - prefixStart + dictEnd - dictStart); in ZSTD_compressBlock_fast_dictMatchState_generic()
401 const U32 dictHLog = dictCParams->hashLog; in ZSTD_compressBlock_fast_dictMatchState_generic()
405 const U32 maxDistance = 1U << cParams->windowLog; in ZSTD_compressBlock_fast_dictMatchState_generic()
406 const U32 endIndex = (U32)((size_t)(ip - base) + srcSize); in ZSTD_compressBlock_fast_dictMatchState_generic()
414 assert(prefixStartIndex >= (U32)(dictEnd - dictBase)); in ZSTD_compressBlock_fast_dictMatchState_generic()
428 U32 const curr = (U32)(ip-base); in ZSTD_compressBlock_fast_dictMatchState_generic()
429 U32 const matchIndex = hashTable[h]; in ZSTD_compressBlock_fast_dictMatchState_generic()
431 const U32 repIndex = curr + 1 - offset_1; in ZSTD_compressBlock_fast_dictMatchState_generic()
437 …if ( ((U32)((prefixStartIndex-1) - repIndex) >= 3) /* intentional underflow : ensure repIndex isn'… in ZSTD_compressBlock_fast_dictMatchState_generic()
445 U32 const dictMatchIndex = dictHashTable[dictHash]; in ZSTD_compressBlock_fast_dictMatchState_generic()
454 U32 const offset = (U32)(curr-dictMatchIndex-dictIndexDelta); in ZSTD_compressBlock_fast_dictMatchState_generic()
471 U32 const offset = (U32)(ip-match); in ZSTD_compressBlock_fast_dictMatchState_generic()
488 hashTable[ZSTD_hashPtr(ip-2, hlog, mls)] = (U32)(ip-2-base); in ZSTD_compressBlock_fast_dictMatchState_generic()
492 U32 const current2 = (U32)(ip-base); in ZSTD_compressBlock_fast_dictMatchState_generic()
493 U32 const repIndex2 = current2 - offset_2; in ZSTD_compressBlock_fast_dictMatchState_generic()
497 if ( ((U32)((prefixStartIndex-1) - (U32)repIndex2) >= 3 /* intentional overflow */) in ZSTD_compressBlock_fast_dictMatchState_generic()
501U32 tmpOffset = offset_2; offset_2 = offset_1; offset_1 = tmpOffset; /* swap offset_2 <=> offset… in ZSTD_compressBlock_fast_dictMatchState_generic()
528 ZSTD_matchState_t* ms, seqStore_t* seqStore, U32 rep[ZSTD_REP_NUM], in ZSTD_compressBlock_fast_dictMatchState()
531 U32 const mls = ms->cParams.minMatch; in ZSTD_compressBlock_fast_dictMatchState()
549 ZSTD_matchState_t* ms, seqStore_t* seqStore, U32 rep[ZSTD_REP_NUM], in ZSTD_compressBlock_fast_extDict_generic()
550 void const* src, size_t srcSize, U32 const mls, U32 const hasStep) in ZSTD_compressBlock_fast_extDict_generic()
553 U32* const hashTable = ms->hashTable; in ZSTD_compressBlock_fast_extDict_generic()
554 U32 const hlog = cParams->hashLog; in ZSTD_compressBlock_fast_extDict_generic()
556 U32 const stepSize = cParams->targetLength + !(cParams->targetLength); in ZSTD_compressBlock_fast_extDict_generic()
562 const U32 endIndex = (U32)((size_t)(istart - base) + srcSize); in ZSTD_compressBlock_fast_extDict_generic()
563 const U32 lowLimit = ZSTD_getLowestMatchIndex(ms, endIndex, cParams->windowLog); in ZSTD_compressBlock_fast_extDict_generic()
564 const U32 dictStartIndex = lowLimit; in ZSTD_compressBlock_fast_extDict_generic()
566 const U32 dictLimit = ms->window.dictLimit; in ZSTD_compressBlock_fast_extDict_generic()
567 const U32 prefixStartIndex = dictLimit < lowLimit ? lowLimit : dictLimit; in ZSTD_compressBlock_fast_extDict_generic()
572 U32 offset_1=rep[0], offset_2=rep[1]; in ZSTD_compressBlock_fast_extDict_generic()
585 const U32 matchIndex = hashTable[h]; in ZSTD_compressBlock_fast_extDict_generic()
588 const U32 curr = (U32)(ip-base); in ZSTD_compressBlock_fast_extDict_generic()
589 const U32 repIndex = curr + 1 - offset_1; in ZSTD_compressBlock_fast_extDict_generic()
595 if ( ( ((U32)((prefixStartIndex-1) - repIndex) >= 3) /* intentional underflow */ in ZSTD_compressBlock_fast_extDict_generic()
613 U32 const offset = curr - matchIndex; in ZSTD_compressBlock_fast_extDict_generic()
625 hashTable[ZSTD_hashPtr(ip-2, hlog, mls)] = (U32)(ip-2-base); in ZSTD_compressBlock_fast_extDict_generic()
628 U32 const current2 = (U32)(ip-base); in ZSTD_compressBlock_fast_extDict_generic()
629 U32 const repIndex2 = current2 - offset_2; in ZSTD_compressBlock_fast_extDict_generic()
631 …if ( (((U32)((prefixStartIndex-1) - repIndex2) >= 3) & (offset_2 <= curr - dictStartIndex)) /* in… in ZSTD_compressBlock_fast_extDict_generic()
635 …{ U32 const tmpOffset = offset_2; offset_2 = offset_1; offset_1 = tmpOffset; } /* swap offset_2 <… in ZSTD_compressBlock_fast_extDict_generic()
659 ZSTD_matchState_t* ms, seqStore_t* seqStore, U32 rep[ZSTD_REP_NUM], in ZSTD_compressBlock_fast_extDict()
662 U32 const mls = ms->cParams.minMatch; in ZSTD_compressBlock_fast_extDict()