Lines Matching refs:U32
19 U32* const hashLarge = ms->hashTable;
20 U32 const hBitsL = cParams->hashLog;
21 U32 const mls = cParams->minMatch;
22 U32* const hashSmall = ms->chainTable;
23 U32 const hBitsS = cParams->chainLog;
27 const U32 fastHashFillStep = 3;
34 U32 const curr = (U32)(ip - base);
35 U32 i;
52 ZSTD_matchState_t* ms, seqStore_t* seqStore, U32 rep[ZSTD_REP_NUM],
53 void const* src, size_t srcSize, U32 const mls /* template */)
56 U32* const hashLong = ms->hashTable;
57 const U32 hBitsL = cParams->hashLog;
58 U32* const hashSmall = ms->chainTable;
59 const U32 hBitsS = cParams->chainLog;
63 const U32 endIndex = (U32)((size_t)(istart - base) + srcSize);
65 const U32 prefixLowestIndex = ZSTD_getLowestPrefixIndex(ms, endIndex, cParams->windowLog);
69 U32 offset_1=rep[0], offset_2=rep[1];
70 U32 offsetSaved = 0;
73 U32 offset;
74 U32 curr;
85 U32 idxl0; /* the long match index for ip */
86 U32 idxl1; /* the long match index for ip1 */
100 U32 const current = (U32)(ip - base);
101 U32 const windowLow = ZSTD_getLowestPrefixIndex(ms, current, cParams->windowLog);
102 U32 const maxRep = current - windowLow;
124 const U32 idxs0 = hashSmall[hs0];
125 curr = (U32)(ip-base);
144 offset = (U32)(ip-matchl0);
192 offset = (U32)(ip-matchl1);
200 offset = (U32)(ip - matchs0);
217 hashLong[hl1] = (U32)(ip1 - base);
230 { U32 const indexToInsert = curr+2;
232 hashLong[ZSTD_hashPtr(ip-2, hBitsL, 8)] = (U32)(ip-2-base);
234 hashSmall[ZSTD_hashPtr(ip-1, hBitsS, mls)] = (U32)(ip-1-base);
243 U32 const tmpOff = offset_2; offset_2 = offset_1; offset_1 = tmpOff; /* swap offset_2 <=> offset_1 */
244 hashSmall[ZSTD_hashPtr(ip, hBitsS, mls)] = (U32)(ip-base);
245 hashLong[ZSTD_hashPtr(ip, hBitsL, 8)] = (U32)(ip-base);
258 ZSTD_matchState_t* ms, seqStore_t* seqStore, U32 rep[ZSTD_REP_NUM],
260 U32 const mls /* template */)
263 U32* const hashLong = ms->hashTable;
264 const U32 hBitsL = cParams->hashLog;
265 U32* const hashSmall = ms->chainTable;
266 const U32 hBitsS = cParams->chainLog;
271 const U32 endIndex = (U32)((size_t)(istart - base) + srcSize);
273 const U32 prefixLowestIndex = ZSTD_getLowestPrefixIndex(ms, endIndex, cParams->windowLog);
277 U32 offset_1=rep[0], offset_2=rep[1];
278 U32 offsetSaved = 0;
282 const U32* const dictHashLong = dms->hashTable;
283 const U32* const dictHashSmall = dms->chainTable;
284 const U32 dictStartIndex = dms->window.dictLimit;
288 const U32 dictIndexDelta = prefixLowestIndex - (U32)(dictEnd - dictBase);
289 const U32 dictHBitsL = dictCParams->hashLog;
290 const U32 dictHBitsS = dictCParams->chainLog;
291 const U32 dictAndPrefixLength = (U32)((ip - prefixLowest) + (dictEnd - dictStart));
309 U32 offset;
314 U32 const curr = (U32)(ip-base);
315 U32 const matchIndexL = hashLong[h2];
316 U32 matchIndexS = hashSmall[h];
319 const U32 repIndex = curr + 1 - offset_1;
326 if (((U32)((prefixLowestIndex-1) - repIndex) >= 3 /* intentional underflow */)
339 offset = (U32)(ip-matchLong);
345 U32 const dictMatchIndexL = dictHashLong[dictHL];
351 offset = (U32)(curr - dictMatchIndexL - dictIndexDelta);
363 U32 const dictMatchIndexS = dictHashSmall[dictHS];
381 U32 const matchIndexL3 = hashLong[hl3];
390 offset = (U32)(ip-matchL3);
396 U32 const dictMatchIndexL3 = dictHashLong[dictHLNext];
402 offset = (U32)(curr + 1 - dictMatchIndexL3 - dictIndexDelta);
410 offset = (U32)(curr - matchIndexS);
414 offset = (U32)(ip - match);
432 { U32 const indexToInsert = curr+2;
434 hashLong[ZSTD_hashPtr(ip-2, hBitsL, 8)] = (U32)(ip-2-base);
436 hashSmall[ZSTD_hashPtr(ip-1, hBitsS, mls)] = (U32)(ip-1-base);
441 U32 const current2 = (U32)(ip-base);
442 U32 const repIndex2 = current2 - offset_2;
446 if ( ((U32)((prefixLowestIndex-1) - (U32)repIndex2) >= 3 /* intentional overflow */)
450 U32 tmpOffset = offset_2; offset_2 = offset_1; offset_1 = tmpOffset; /* swap offset_2 <=> offset_1 */
473 ZSTD_matchState_t* ms, seqStore_t* seqStore, U32 rep[ZSTD_REP_NUM], \
491 ZSTD_matchState_t* ms, seqStore_t* seqStore, U32 rep[ZSTD_REP_NUM],
494 const U32 mls = ms->cParams.minMatch;
511 ZSTD_matchState_t* ms, seqStore_t* seqStore, U32 rep[ZSTD_REP_NUM],
514 const U32 mls = ms->cParams.minMatch;
531 ZSTD_matchState_t* ms, seqStore_t* seqStore, U32 rep[ZSTD_REP_NUM],
533 U32 const mls /* template */)
536 U32* const hashLong = ms->hashTable;
537 U32 const hBitsL = cParams->hashLog;
538 U32* const hashSmall = ms->chainTable;
539 U32 const hBitsS = cParams->chainLog;
546 const U32 endIndex = (U32)((size_t)(istart - base) + srcSize);
547 const U32 lowLimit = ZSTD_getLowestMatchIndex(ms, endIndex, cParams->windowLog);
548 const U32 dictStartIndex = lowLimit;
549 const U32 dictLimit = ms->window.dictLimit;
550 const U32 prefixStartIndex = (dictLimit > lowLimit) ? dictLimit : lowLimit;
555 U32 offset_1=rep[0], offset_2=rep[1];
566 const U32 matchIndex = hashSmall[hSmall];
571 const U32 matchLongIndex = hashLong[hLong];
575 const U32 curr = (U32)(ip-base);
576 const U32 repIndex = curr + 1 - offset_1; /* offset_1 expected <= curr +1 */
582 if ((((U32)((prefixStartIndex-1) - repIndex) >= 3) /* intentional underflow : ensure repIndex doesn't overlap dict + prefix */
593 U32 offset;
603 U32 const matchIndex3 = hashLong[h3];
606 U32 offset;
638 { U32 const indexToInsert = curr+2;
640 hashLong[ZSTD_hashPtr(ip-2, hBitsL, 8)] = (U32)(ip-2-base);
642 hashSmall[ZSTD_hashPtr(ip-1, hBitsS, mls)] = (U32)(ip-1-base);
647 U32 const current2 = (U32)(ip-base);
648 U32 const repIndex2 = current2 - offset_2;
650 if ( (((U32)((prefixStartIndex-1) - repIndex2) >= 3) /* intentional overflow : ensure repIndex2 doesn't overlap dict + prefix */
655 U32 const tmpOffset = offset_2; offset_2 = offset_1; offset_1 = tmpOffset; /* swap offset_2 <=> offset_1 */
680 ZSTD_matchState_t* ms, seqStore_t* seqStore, U32 rep[ZSTD_REP_NUM],
683 U32 const mls = ms->cParams.minMatch;