Lines Matching refs:UInt32
51 UInt32 myNumBlocks = p->numProcessedBlocks; in MtSync_StopWriting()
100 …Sync_Create2(CMtSync *p, unsigned (MY_STD_CALL *startAddress)(void *), void *obj, UInt32 numBlocks) in MtSync_Create2()
122 …tSync_Create(CMtSync *p, unsigned (MY_STD_CALL *startAddress)(void *), void *obj, UInt32 numBlocks) in MtSync_Create()
135 static void GetHeads ## name(const Byte *p, UInt32 pos, \
136 UInt32 *hash, UInt32 hashMask, UInt32 *heads, UInt32 numHeads, const UInt32 *crc) \
138 const UInt32 value = (v); p++; *heads++ = pos - hash[value]; hash[value] = pos++; } }
142 DEF_GetHeads2(2, (p[0] | ((UInt32)p[1] << 8)), hashMask = hashMask; crc = crc; )
143 DEF_GetHeads(3, (crc[p[0]] ^ p[1] ^ ((UInt32)p[2] << 8)) & hashMask)
144 DEF_GetHeads(4, (crc[p[0]] ^ p[1] ^ ((UInt32)p[2] << 8) ^ (crc[p[3]] << 5)) & hashMask)
145 DEF_GetHeads(4b, (crc[p[0]] ^ p[1] ^ ((UInt32)p[2] << 8) ^ ((UInt32)p[3] << 16)) & hashMask)
153 UInt32 numProcessedBlocks = 0; in HashThreadFunc()
191 UInt32 subValue = (mf->pos - mf->historySize - 1); in HashThreadFunc()
196 … UInt32 *heads = mt->hashBuf + ((numProcessedBlocks++) & kMtHashNumBlocksMask) * kMtHashBlockSize; in HashThreadFunc()
197 UInt32 num = mf->streamPos - mf->pos; in HashThreadFunc()
234 Int32 NO_INLINE GetMatchesSpecN(UInt32 lenLimit, UInt32 pos, const Byte *cur, CLzRef *son, in GetMatchesSpecN()
235 UInt32 _cyclicBufferPos, UInt32 _cyclicBufferSize, UInt32 _cutValue, in GetMatchesSpecN()
236 … UInt32 *_distances, UInt32 _maxLen, const UInt32 *hash, Int32 limit, UInt32 size, UInt32 *posRes) in GetMatchesSpecN()
240 UInt32 *distances = _distances + 1; in GetMatchesSpecN()
241 UInt32 curMatch = pos - *hash++; in GetMatchesSpecN()
245 UInt32 len0 = 0, len1 = 0; in GetMatchesSpecN()
246 UInt32 cutValue = _cutValue; in GetMatchesSpecN()
247 UInt32 maxLen = _maxLen; in GetMatchesSpecN()
250 UInt32 delta = pos - curMatch; in GetMatchesSpecN()
259 UInt32 len = (len0 < len1 ? len0 : len1); in GetMatchesSpecN()
298 UInt32 num = (UInt32)(distances - _distances); in GetMatchesSpecN()
311 void BtGetMatches(CMatchFinderMt *p, UInt32 *distances) in BtGetMatches()
313 UInt32 numProcessed = 0; in BtGetMatches()
314 UInt32 curPos = 2; in BtGetMatches()
315 UInt32 limit = kMtBtBlockSize - (p->matchMaxLen * 2); in BtGetMatches()
330 UInt32 size = p->hashBufPosLimit - p->hashBufPos; in BtGetMatches()
331 UInt32 lenLimit = p->matchMaxLen; in BtGetMatches()
332 UInt32 pos = p->pos; in BtGetMatches()
333 UInt32 cyclicBufferPos = p->cyclicBufferPos; in BtGetMatches()
337 UInt32 size2 = p->hashNumAvail - lenLimit + 1; in BtGetMatches()
347 UInt32 *startDistances = distances + curPos; in BtGetMatches()
348 UInt32 num = (UInt32)(GetMatchesSpec1(lenLimit, pos - p->hashBuf[p->hashBufPos++], in BtGetMatches()
359 UInt32 posRes; in BtGetMatches()
380 void BtFillBlock(CMatchFinderMt *p, UInt32 globalBlockIndex) in BtFillBlock()
393 UInt32 subValue = p->pos - p->cyclicBufferSize; in BtFillBlock()
410 UInt32 blockIndex = 0; in BtThreadFunc()
465 SRes MatchFinderMt_Create(CMatchFinderMt *p, UInt32 historySize, UInt32 keepAddBufferBefore, in MatchFinderMt_Create()
466 UInt32 matchMaxLen, UInt32 keepAddBufferAfter, ISzAlloc *alloc) in MatchFinderMt_Create()
474 p->hashBuf = (UInt32 *)alloc->Alloc(alloc, (kHashBufferSize + kBtBufferSize) * sizeof(UInt32)); in MatchFinderMt_Create()
529 UInt32 blockIndex; in MatchFinderMt_GetNextBlock_Bt()
546 UInt32 MatchFinderMt_GetNumAvailableBytes(CMatchFinderMt *p) in MatchFinderMt_GetNumAvailableBytes()
557 UInt32 * MixMatches2(CMatchFinderMt *p, UInt32 matchMinPos, UInt32 *distances) in MixMatches2()
559 UInt32 hash2Value, curMatch2; in MixMatches2()
560 UInt32 *hash = p->hash; in MixMatches2()
562 UInt32 lzPos = p->lzPos; in MixMatches2()
577 UInt32 * MixMatches3(CMatchFinderMt *p, UInt32 matchMinPos, UInt32 *distances) in MixMatches3()
579 UInt32 hash2Value, hash3Value, curMatch2, curMatch3; in MixMatches3()
580 UInt32 *hash = p->hash; in MixMatches3()
582 UInt32 lzPos = p->lzPos; in MixMatches3()
667 UInt32 MatchFinderMt2_GetMatches(CMatchFinderMt *p, UInt32 *distances) in MatchFinderMt2_GetMatches()
669 const UInt32 *btBuf = p->btBuf + p->btBufPos; in MatchFinderMt2_GetMatches()
670 UInt32 len = *btBuf++; in MatchFinderMt2_GetMatches()
674 UInt32 i; in MatchFinderMt2_GetMatches()
685 UInt32 MatchFinderMt_GetMatches(CMatchFinderMt *p, UInt32 *distances) in MatchFinderMt_GetMatches()
687 const UInt32 *btBuf = p->btBuf + p->btBufPos; in MatchFinderMt_GetMatches()
688 UInt32 len = *btBuf++; in MatchFinderMt_GetMatches()
694 len = (UInt32)(p->MixMatchesFunc(p, p->lzPos - p->historySize, distances) - (distances)); in MatchFinderMt_GetMatches()
699 UInt32 *distances2; in MatchFinderMt_GetMatches()
708 len = (UInt32)(distances2 - (distances)); in MatchFinderMt_GetMatches()
715 …MT if (p->btNumAvailBytes-- >= (n)) { const Byte *cur = p->pointerToCurPos; UInt32 *hash = p->hash;
718 void MatchFinderMt0_Skip(CMatchFinderMt *p, UInt32 num)
724 void MatchFinderMt2_Skip(CMatchFinderMt *p, UInt32 num)
727 UInt32 hash2Value;
733 void MatchFinderMt3_Skip(CMatchFinderMt *p, UInt32 num)
736 UInt32 hash2Value, hash3Value;