Lines Matching refs:U32
23 U32* const hashLarge = ms->hashTable; in ZSTD_fillDoubleHashTableForCDict()
24 U32 const hBitsL = cParams->hashLog + ZSTD_SHORT_CACHE_TAG_BITS; in ZSTD_fillDoubleHashTableForCDict()
25 U32 const mls = cParams->minMatch; in ZSTD_fillDoubleHashTableForCDict()
26 U32* const hashSmall = ms->chainTable; in ZSTD_fillDoubleHashTableForCDict()
27 U32 const hBitsS = cParams->chainLog + ZSTD_SHORT_CACHE_TAG_BITS; in ZSTD_fillDoubleHashTableForCDict()
31 const U32 fastHashFillStep = 3; in ZSTD_fillDoubleHashTableForCDict()
38 U32 const curr = (U32)(ip - base); in ZSTD_fillDoubleHashTableForCDict()
39 U32 i; in ZSTD_fillDoubleHashTableForCDict()
61 U32* const hashLarge = ms->hashTable; in ZSTD_fillDoubleHashTableForCCtx()
62 U32 const hBitsL = cParams->hashLog; in ZSTD_fillDoubleHashTableForCCtx()
63 U32 const mls = cParams->minMatch; in ZSTD_fillDoubleHashTableForCCtx()
64 U32* const hashSmall = ms->chainTable; in ZSTD_fillDoubleHashTableForCCtx()
65 U32 const hBitsS = cParams->chainLog; in ZSTD_fillDoubleHashTableForCCtx()
69 const U32 fastHashFillStep = 3; in ZSTD_fillDoubleHashTableForCCtx()
76 U32 const curr = (U32)(ip - base); in ZSTD_fillDoubleHashTableForCCtx()
77 U32 i; in ZSTD_fillDoubleHashTableForCCtx()
107 ZSTD_MatchState_t* ms, SeqStore_t* seqStore, U32 rep[ZSTD_REP_NUM], in ZSTD_compressBlock_doubleFast_noDict_generic()
108 void const* src, size_t srcSize, U32 const mls /* template */) in ZSTD_compressBlock_doubleFast_noDict_generic()
111 U32* const hashLong = ms->hashTable; in ZSTD_compressBlock_doubleFast_noDict_generic()
112 const U32 hBitsL = cParams->hashLog; in ZSTD_compressBlock_doubleFast_noDict_generic()
113 U32* const hashSmall = ms->chainTable; in ZSTD_compressBlock_doubleFast_noDict_generic()
114 const U32 hBitsS = cParams->chainLog; in ZSTD_compressBlock_doubleFast_noDict_generic()
118 const U32 endIndex = (U32)((size_t)(istart - base) + srcSize); in ZSTD_compressBlock_doubleFast_noDict_generic()
120 const U32 prefixLowestIndex = ZSTD_getLowestPrefixIndex(ms, endIndex, cParams->windowLog); in ZSTD_compressBlock_doubleFast_noDict_generic()
124 U32 offset_1=rep[0], offset_2=rep[1]; in ZSTD_compressBlock_doubleFast_noDict_generic()
125 U32 offsetSaved1 = 0, offsetSaved2 = 0; in ZSTD_compressBlock_doubleFast_noDict_generic()
128 U32 offset; in ZSTD_compressBlock_doubleFast_noDict_generic()
129 U32 curr; in ZSTD_compressBlock_doubleFast_noDict_generic()
140 U32 idxl0; /* the long match index for ip */ in ZSTD_compressBlock_doubleFast_noDict_generic()
141 U32 idxl1; /* the long match index for ip1 */ in ZSTD_compressBlock_doubleFast_noDict_generic()
160 U32 const current = (U32)(ip - base); in ZSTD_compressBlock_doubleFast_noDict_generic()
161 U32 const windowLow = ZSTD_getLowestPrefixIndex(ms, current, cParams->windowLog); in ZSTD_compressBlock_doubleFast_noDict_generic()
162 U32 const maxRep = current - windowLow; in ZSTD_compressBlock_doubleFast_noDict_generic()
184 const U32 idxs0 = hashSmall[hs0]; in ZSTD_compressBlock_doubleFast_noDict_generic()
185 curr = (U32)(ip-base); in ZSTD_compressBlock_doubleFast_noDict_generic()
209 offset = (U32)(ip-matchl0); in ZSTD_compressBlock_doubleFast_noDict_generic()
258 offset = (U32)(ip - matchs0); in ZSTD_compressBlock_doubleFast_noDict_generic()
267 offset = (U32)(ip-matchl1); in ZSTD_compressBlock_doubleFast_noDict_generic()
288 hashLong[hl1] = (U32)(ip1 - base); in ZSTD_compressBlock_doubleFast_noDict_generic()
301 { U32 const indexToInsert = curr+2; in ZSTD_compressBlock_doubleFast_noDict_generic()
303 hashLong[ZSTD_hashPtr(ip-2, hBitsL, 8)] = (U32)(ip-2-base); in ZSTD_compressBlock_doubleFast_noDict_generic()
305 hashSmall[ZSTD_hashPtr(ip-1, hBitsS, mls)] = (U32)(ip-1-base); in ZSTD_compressBlock_doubleFast_noDict_generic()
314 …U32 const tmpOff = offset_2; offset_2 = offset_1; offset_1 = tmpOff; /* swap offset_2 <=> offset_… in ZSTD_compressBlock_doubleFast_noDict_generic()
315 hashSmall[ZSTD_hashPtr(ip, hBitsS, mls)] = (U32)(ip-base); in ZSTD_compressBlock_doubleFast_noDict_generic()
316 hashLong[ZSTD_hashPtr(ip, hBitsL, 8)] = (U32)(ip-base); in ZSTD_compressBlock_doubleFast_noDict_generic()
330 ZSTD_MatchState_t* ms, SeqStore_t* seqStore, U32 rep[ZSTD_REP_NUM], in ZSTD_compressBlock_doubleFast_dictMatchState_generic()
332 U32 const mls /* template */) in ZSTD_compressBlock_doubleFast_dictMatchState_generic()
335 U32* const hashLong = ms->hashTable; in ZSTD_compressBlock_doubleFast_dictMatchState_generic()
336 const U32 hBitsL = cParams->hashLog; in ZSTD_compressBlock_doubleFast_dictMatchState_generic()
337 U32* const hashSmall = ms->chainTable; in ZSTD_compressBlock_doubleFast_dictMatchState_generic()
338 const U32 hBitsS = cParams->chainLog; in ZSTD_compressBlock_doubleFast_dictMatchState_generic()
343 const U32 endIndex = (U32)((size_t)(istart - base) + srcSize); in ZSTD_compressBlock_doubleFast_dictMatchState_generic()
345 const U32 prefixLowestIndex = ZSTD_getLowestPrefixIndex(ms, endIndex, cParams->windowLog); in ZSTD_compressBlock_doubleFast_dictMatchState_generic()
349 U32 offset_1=rep[0], offset_2=rep[1]; in ZSTD_compressBlock_doubleFast_dictMatchState_generic()
353 const U32* const dictHashLong = dms->hashTable; in ZSTD_compressBlock_doubleFast_dictMatchState_generic()
354 const U32* const dictHashSmall = dms->chainTable; in ZSTD_compressBlock_doubleFast_dictMatchState_generic()
355 const U32 dictStartIndex = dms->window.dictLimit; in ZSTD_compressBlock_doubleFast_dictMatchState_generic()
359 const U32 dictIndexDelta = prefixLowestIndex - (U32)(dictEnd - dictBase); in ZSTD_compressBlock_doubleFast_dictMatchState_generic()
360 const U32 dictHBitsL = dictCParams->hashLog + ZSTD_SHORT_CACHE_TAG_BITS; in ZSTD_compressBlock_doubleFast_dictMatchState_generic()
361 const U32 dictHBitsS = dictCParams->chainLog + ZSTD_SHORT_CACHE_TAG_BITS; in ZSTD_compressBlock_doubleFast_dictMatchState_generic()
362 const U32 dictAndPrefixLength = (U32)((ip - prefixLowest) + (dictEnd - dictStart)); in ZSTD_compressBlock_doubleFast_dictMatchState_generic()
370 size_t const hashTableBytes = (((size_t)1) << dictCParams->hashLog) * sizeof(U32); in ZSTD_compressBlock_doubleFast_dictMatchState_generic()
371 size_t const chainTableBytes = (((size_t)1) << dictCParams->chainLog) * sizeof(U32); in ZSTD_compressBlock_doubleFast_dictMatchState_generic()
387 U32 offset; in ZSTD_compressBlock_doubleFast_dictMatchState_generic()
392 … U32 const dictMatchIndexAndTagL = dictHashLong[dictHashAndTagL >> ZSTD_SHORT_CACHE_TAG_BITS]; in ZSTD_compressBlock_doubleFast_dictMatchState_generic()
393 … U32 const dictMatchIndexAndTagS = dictHashSmall[dictHashAndTagS >> ZSTD_SHORT_CACHE_TAG_BITS]; in ZSTD_compressBlock_doubleFast_dictMatchState_generic()
396 U32 const curr = (U32)(ip-base); in ZSTD_compressBlock_doubleFast_dictMatchState_generic()
397 U32 const matchIndexL = hashLong[h2]; in ZSTD_compressBlock_doubleFast_dictMatchState_generic()
398 U32 matchIndexS = hashSmall[h]; in ZSTD_compressBlock_doubleFast_dictMatchState_generic()
401 const U32 repIndex = curr + 1 - offset_1; in ZSTD_compressBlock_doubleFast_dictMatchState_generic()
420 offset = (U32)(ip-matchLong); in ZSTD_compressBlock_doubleFast_dictMatchState_generic()
425 U32 const dictMatchIndexL = dictMatchIndexAndTagL >> ZSTD_SHORT_CACHE_TAG_BITS; in ZSTD_compressBlock_doubleFast_dictMatchState_generic()
431 offset = (U32)(curr - dictMatchIndexL - dictIndexDelta); in ZSTD_compressBlock_doubleFast_dictMatchState_generic()
443 U32 const dictMatchIndexS = dictMatchIndexAndTagS >> ZSTD_SHORT_CACHE_TAG_BITS; in ZSTD_compressBlock_doubleFast_dictMatchState_generic()
460 U32 const matchIndexL3 = hashLong[hl3]; in ZSTD_compressBlock_doubleFast_dictMatchState_generic()
461 … U32 const dictMatchIndexAndTagL3 = dictHashLong[dictHashAndTagL3 >> ZSTD_SHORT_CACHE_TAG_BITS]; in ZSTD_compressBlock_doubleFast_dictMatchState_generic()
470 offset = (U32)(ip-matchL3); in ZSTD_compressBlock_doubleFast_dictMatchState_generic()
475 U32 const dictMatchIndexL3 = dictMatchIndexAndTagL3 >> ZSTD_SHORT_CACHE_TAG_BITS; in ZSTD_compressBlock_doubleFast_dictMatchState_generic()
481 offset = (U32)(curr + 1 - dictMatchIndexL3 - dictIndexDelta); in ZSTD_compressBlock_doubleFast_dictMatchState_generic()
489 offset = (U32)(curr - matchIndexS); in ZSTD_compressBlock_doubleFast_dictMatchState_generic()
493 offset = (U32)(ip - match); in ZSTD_compressBlock_doubleFast_dictMatchState_generic()
511 { U32 const indexToInsert = curr+2; in ZSTD_compressBlock_doubleFast_dictMatchState_generic()
513 hashLong[ZSTD_hashPtr(ip-2, hBitsL, 8)] = (U32)(ip-2-base); in ZSTD_compressBlock_doubleFast_dictMatchState_generic()
515 hashSmall[ZSTD_hashPtr(ip-1, hBitsS, mls)] = (U32)(ip-1-base); in ZSTD_compressBlock_doubleFast_dictMatchState_generic()
520 U32 const current2 = (U32)(ip-base); in ZSTD_compressBlock_doubleFast_dictMatchState_generic()
521 U32 const repIndex2 = current2 - offset_2; in ZSTD_compressBlock_doubleFast_dictMatchState_generic()
529 …U32 tmpOffset = offset_2; offset_2 = offset_1; offset_1 = tmpOffset; /* swap offset_2 <=> offset… in ZSTD_compressBlock_doubleFast_dictMatchState_generic()
552 … ZSTD_MatchState_t* ms, SeqStore_t* seqStore, U32 rep[ZSTD_REP_NUM], \
570 ZSTD_MatchState_t* ms, SeqStore_t* seqStore, U32 rep[ZSTD_REP_NUM], in ZSTD_compressBlock_doubleFast()
573 const U32 mls = ms->cParams.minMatch; in ZSTD_compressBlock_doubleFast()
590 ZSTD_MatchState_t* ms, SeqStore_t* seqStore, U32 rep[ZSTD_REP_NUM], in ZSTD_compressBlock_doubleFast_dictMatchState()
593 const U32 mls = ms->cParams.minMatch; in ZSTD_compressBlock_doubleFast_dictMatchState()
612 ZSTD_MatchState_t* ms, SeqStore_t* seqStore, U32 rep[ZSTD_REP_NUM], in ZSTD_compressBlock_doubleFast_extDict_generic()
614 U32 const mls /* template */) in ZSTD_compressBlock_doubleFast_extDict_generic()
617 U32* const hashLong = ms->hashTable; in ZSTD_compressBlock_doubleFast_extDict_generic()
618 U32 const hBitsL = cParams->hashLog; in ZSTD_compressBlock_doubleFast_extDict_generic()
619 U32* const hashSmall = ms->chainTable; in ZSTD_compressBlock_doubleFast_extDict_generic()
620 U32 const hBitsS = cParams->chainLog; in ZSTD_compressBlock_doubleFast_extDict_generic()
627 const U32 endIndex = (U32)((size_t)(istart - base) + srcSize); in ZSTD_compressBlock_doubleFast_extDict_generic()
628 const U32 lowLimit = ZSTD_getLowestMatchIndex(ms, endIndex, cParams->windowLog); in ZSTD_compressBlock_doubleFast_extDict_generic()
629 const U32 dictStartIndex = lowLimit; in ZSTD_compressBlock_doubleFast_extDict_generic()
630 const U32 dictLimit = ms->window.dictLimit; in ZSTD_compressBlock_doubleFast_extDict_generic()
631 const U32 prefixStartIndex = (dictLimit > lowLimit) ? dictLimit : lowLimit; in ZSTD_compressBlock_doubleFast_extDict_generic()
636 U32 offset_1=rep[0], offset_2=rep[1]; in ZSTD_compressBlock_doubleFast_extDict_generic()
647 const U32 matchIndex = hashSmall[hSmall]; in ZSTD_compressBlock_doubleFast_extDict_generic()
652 const U32 matchLongIndex = hashLong[hLong]; in ZSTD_compressBlock_doubleFast_extDict_generic()
656 const U32 curr = (U32)(ip-base); in ZSTD_compressBlock_doubleFast_extDict_generic()
657 const U32 repIndex = curr + 1 - offset_1; /* offset_1 expected <= curr +1 */ in ZSTD_compressBlock_doubleFast_extDict_generic()
674 U32 offset; in ZSTD_compressBlock_doubleFast_extDict_generic()
684 U32 const matchIndex3 = hashLong[h3]; in ZSTD_compressBlock_doubleFast_extDict_generic()
687 U32 offset; in ZSTD_compressBlock_doubleFast_extDict_generic()
719 { U32 const indexToInsert = curr+2; in ZSTD_compressBlock_doubleFast_extDict_generic()
721 hashLong[ZSTD_hashPtr(ip-2, hBitsL, 8)] = (U32)(ip-2-base); in ZSTD_compressBlock_doubleFast_extDict_generic()
723 hashSmall[ZSTD_hashPtr(ip-1, hBitsS, mls)] = (U32)(ip-1-base); in ZSTD_compressBlock_doubleFast_extDict_generic()
728 U32 const current2 = (U32)(ip-base); in ZSTD_compressBlock_doubleFast_extDict_generic()
729 U32 const repIndex2 = current2 - offset_2; in ZSTD_compressBlock_doubleFast_extDict_generic()
736 …U32 const tmpOffset = offset_2; offset_2 = offset_1; offset_1 = tmpOffset; /* swap offset_2 <=> … in ZSTD_compressBlock_doubleFast_extDict_generic()
761 ZSTD_MatchState_t* ms, SeqStore_t* seqStore, U32 rep[ZSTD_REP_NUM], in ZSTD_compressBlock_doubleFast_extDict()
764 U32 const mls = ms->cParams.minMatch; in ZSTD_compressBlock_doubleFast_extDict()