Lines Matching refs:mf

464         CMatchFinder *mf = MF(mt);

465 if (MatchFinder_NeedMove(mf))
470 const Byte *beforePtr = Inline_MatchFinder_GetPointerToCurrentPos(mf);
472 MatchFinder_MoveBlock(mf);
473 offset = beforePtr - Inline_MatchFinder_GetPointerToCurrentPos(mf);
491 MatchFinder_ReadIfRequired(mf);
494 UInt32 num = Inline_MatchFinder_GetNumAvailableBytes(mf);
499 if (avail < mf->numHashBytes) :
513 if (num >= mf->numHashBytes)
515 num = num - mf->numHashBytes + 1;
519 if (mf->pos > (UInt32)kMtMaxValForNormalize - num)
521 const UInt32 subValue = (mf->pos - mf->historySize - 1); // & ~(UInt32)(kNormalizeAlign - 1);
522 MatchFinder_REDUCE_OFFSETS(mf, subValue)
523 MatchFinder_Normalize3(subValue, mf->hash + mf->fixedHashSize, (size_t)mf->hashMask + 1);
527 mt->GetHeadsFunc(mf->buffer, mf->pos, mf->hash + mf->fixedHashSize, mf->hashMask, heads + 2, num, mf->crc);
530 mf->pos += num; // wrap over zero is allowed at the end of stream
531 mf->buffer += num;
851 CMatchFinder *mf = MF(p);
864 if (!MatchFinder_Create(mf, historySize, keepAddBufferBefore, matchMaxLen, keepAddBufferAfter, alloc))
882 CMatchFinder *mf = MF(p);
893 MatchFinder_Init_4(mf);
895 MatchFinder_Init_LowHash(mf);
897 p->pointerToCurPos = Inline_MatchFinder_GetPointerToCurrentPos(mf);
907 p->hash = mf->hash;
908 p->fixedHashSize = mf->fixedHashSize;
909 // p->hash4Mask = mf->hash4Mask;
910 p->crc = mf->crc;
911 // memcpy(p->crc, mf->crc, sizeof(mf->crc));
913 p->son = mf->son;
914 p->matchMaxLen = mf->matchMaxLen;
915 p->numHashBytes = mf->numHashBytes;
917 /* (mf->pos) and (mf->streamPos) were already initialized to 1 in MatchFinder_Init_4() */
918 // mf->streamPos = mf->pos = 1; // optimal smallest value
922 /* we must init (p->pos = mf->pos) for BT, because
923 BT code needs (p->pos == delta_value_for_empty_hash_record == mf->pos) */
924 p->pos = mf->pos; // do not change it
927 p->cyclicBufferSize = mf->cyclicBufferSize;
928 p->buffer = mf->buffer;
929 p->cutValue = mf->cutValue;