Lines Matching refs:UInt32

55   UInt32 myNumBlocks = p->numProcessedBlocks;  in MtSync_StopWriting()
104 static SRes MtSync_Create2(CMtSync *p, THREAD_FUNC_TYPE startAddress, void *obj, UInt32 numBlocks) in MtSync_Create2()
126 static SRes MtSync_Create(CMtSync *p, THREAD_FUNC_TYPE startAddress, void *obj, UInt32 numBlocks) in MtSync_Create()
139 static void GetHeads ## name(const Byte *p, UInt32 pos, \
140 UInt32 *hash, UInt32 hashMask, UInt32 *heads, UInt32 numHeads, const UInt32 *crc) \
142 const UInt32 value = (v); p++; *heads++ = pos - hash[value]; hash[value] = pos++; } }
146 DEF_GetHeads2(2, (p[0] | ((UInt32)p[1] << 8)), UNUSED_VAR(hashMask); UNUSED_VAR(crc); )
147 DEF_GetHeads(3, (crc[p[0]] ^ p[1] ^ ((UInt32)p[2] << 8)) & hashMask)
148 DEF_GetHeads(4, (crc[p[0]] ^ p[1] ^ ((UInt32)p[2] << 8) ^ (crc[p[3]] << 5)) & hashMask)
149 DEF_GetHeads(4b, (crc[p[0]] ^ p[1] ^ ((UInt32)p[2] << 8) ^ ((UInt32)p[3] << 16)) & hashMask)
157 UInt32 numProcessedBlocks = 0; in HashThreadFunc()
198 UInt32 subValue = (mf->pos - mf->historySize - 1); in HashThreadFunc()
203UInt32 *heads = mt->hashBuf + ((numProcessedBlocks++) & kMtHashNumBlocksMask) * kMtHashBlockSize; in HashThreadFunc()
204 UInt32 num = mf->streamPos - mf->pos; in HashThreadFunc()
245 static UInt32 *GetMatchesSpecN(UInt32 lenLimit, UInt32 pos, const Byte *cur, CLzRef *son, in GetMatchesSpecN()
246 size_t _cyclicBufferPos, UInt32 _cyclicBufferSize, UInt32 _cutValue, in GetMatchesSpecN()
247UInt32 *distances, UInt32 _maxLen, const UInt32 *hash, const UInt32 *limit, UInt32 size, UInt32 *p… in GetMatchesSpecN()
251 UInt32 *_distances = ++distances; in GetMatchesSpecN()
252 UInt32 delta = *hash++; in GetMatchesSpecN()
257 UInt32 cutValue = _cutValue; in GetMatchesSpecN()
285 UInt32 pair0 = *pair; in GetMatchesSpecN()
295 *distances++ = (UInt32)len; in GetMatchesSpecN()
299 UInt32 pair1 = pair[1]; in GetMatchesSpecN()
307 UInt32 curMatch = pos - delta; in GetMatchesSpecN()
336 UInt32 num = (UInt32)(distances - _distances); in GetMatchesSpecN()
349 static void BtGetMatches(CMatchFinderMt *p, UInt32 *distances) in BtGetMatches()
351 UInt32 numProcessed = 0; in BtGetMatches()
352 UInt32 curPos = 2; in BtGetMatches()
353 UInt32 limit = kMtBtBlockSize - (p->matchMaxLen * 2); // * 2 in BtGetMatches()
372 UInt32 size = p->hashBufPosLimit - p->hashBufPos; in BtGetMatches()
373 UInt32 lenLimit = p->matchMaxLen; in BtGetMatches()
374 UInt32 pos = p->pos; in BtGetMatches()
375 UInt32 cyclicBufferPos = p->cyclicBufferPos; in BtGetMatches()
379 UInt32 size2 = p->hashNumAvail - lenLimit + 1; in BtGetMatches()
390 UInt32 *startDistances = distances + curPos; in BtGetMatches()
391 UInt32 num = (UInt32)(GetMatchesSpec1(lenLimit, pos - p->hashBuf[p->hashBufPos++], in BtGetMatches()
402 UInt32 posRes; in BtGetMatches()
403 …curPos = (UInt32)(GetMatchesSpecN(lenLimit, pos, p->buffer, p->son, cyclicBufferPos, p->cyclicBuff… in BtGetMatches()
426 static void BtFillBlock(CMatchFinderMt *p, UInt32 globalBlockIndex) in BtFillBlock()
439 UInt32 subValue = p->pos - p->cyclicBufferSize; in BtFillBlock()
456 UInt32 blockIndex = 0; in BtThreadFunc()
512 SRes MatchFinderMt_Create(CMatchFinderMt *p, UInt32 historySize, UInt32 keepAddBufferBefore, in MatchFinderMt_Create()
513 UInt32 matchMaxLen, UInt32 keepAddBufferAfter, ISzAllocPtr alloc) in MatchFinderMt_Create()
521 … p->hashBuf = (UInt32 *)ISzAlloc_Alloc(alloc, (kHashBufferSize + kBtBufferSize) * sizeof(UInt32)); in MatchFinderMt_Create()
583 UInt32 blockIndex; in MatchFinderMt_GetNextBlock_Bt()
600 static UInt32 MatchFinderMt_GetNumAvailableBytes(CMatchFinderMt *p) in MatchFinderMt_GetNumAvailableBytes()
606 static UInt32 * MixMatches2(CMatchFinderMt *p, UInt32 matchMinPos, UInt32 *distances) in MixMatches2()
608 UInt32 h2, curMatch2; in MixMatches2()
609 UInt32 *hash = p->hash; in MixMatches2()
611 UInt32 lzPos = p->lzPos; in MixMatches2()
627 static UInt32 * MixMatches3(CMatchFinderMt *p, UInt32 matchMinPos, UInt32 *distances) in MixMatches3()
629 UInt32 h2, h3, curMatch2, curMatch3; in MixMatches3()
630 UInt32 *hash = p->hash; in MixMatches3()
632 UInt32 lzPos = p->lzPos; in MixMatches3()
719 static UInt32 MatchFinderMt2_GetMatches(CMatchFinderMt *p, UInt32 *distances) in MatchFinderMt2_GetMatches()
721 const UInt32 *btBuf = p->btBuf + p->btBufPos; in MatchFinderMt2_GetMatches()
722 UInt32 len = *btBuf++; in MatchFinderMt2_GetMatches()
726 UInt32 i; in MatchFinderMt2_GetMatches()
729 UInt32 v0 = btBuf[0]; in MatchFinderMt2_GetMatches()
730 UInt32 v1 = btBuf[1]; in MatchFinderMt2_GetMatches()
741 static UInt32 MatchFinderMt_GetMatches(CMatchFinderMt *p, UInt32 *distances) in MatchFinderMt_GetMatches()
743 const UInt32 *btBuf = p->btBuf + p->btBufPos; in MatchFinderMt_GetMatches()
744 UInt32 len = *btBuf++; in MatchFinderMt_GetMatches()
751 len = (UInt32)(p->MixMatchesFunc(p, p->lzPos - p->historySize, distances) - (distances)); in MatchFinderMt_GetMatches()
756 UInt32 *distances2; in MatchFinderMt_GetMatches()
761 UInt32 v0 = btBuf[0]; in MatchFinderMt_GetMatches()
762 UInt32 v1 = btBuf[1]; in MatchFinderMt_GetMatches()
769 len = (UInt32)(distances2 - (distances)); in MatchFinderMt_GetMatches()
776 …MT if (p->btNumAvailBytes-- >= (n)) { const Byte *cur = p->pointerToCurPos; UInt32 *hash = p->hash;
779 static void MatchFinderMt0_Skip(CMatchFinderMt *p, UInt32 num)
785 static void MatchFinderMt2_Skip(CMatchFinderMt *p, UInt32 num)
788 UInt32 h2;
794 static void MatchFinderMt3_Skip(CMatchFinderMt *p, UInt32 num)
797 UInt32 h2, h3;