Lines Matching refs:MinContext

299   p->MinContext = p->MaxContext = (CTX_PTR)(p->HiUnit -= UNIT_SIZE); /* AllocContext(p); */  in RestartModel()
300 p->MinContext->Suffix = 0; in RestartModel()
301 p->MinContext->NumStats = 256; in RestartModel()
302 p->MinContext->SummFreq = 256 + 1; in RestartModel()
305 p->MinContext->Stats = REF(p->FoundState); in RestartModel()
344 CTX_PTR c = p->MinContext; in CreateSuccessors()
427 if (p->FoundState->Freq < MAX_FREQ / 4 && p->MinContext->Suffix != 0) in UpdateModel()
429 c = SUFFIX(p->MinContext); in UpdateModel()
459 p->MinContext = p->MaxContext = CreateSuccessors(p, True); in UpdateModel()
460 if (p->MinContext == 0) in UpdateModel()
465 SetSuccessor(p->FoundState, REF(p->MinContext)); in UpdateModel()
492 p->Text -= (p->MaxContext != p->MinContext); in UpdateModel()
498 fSuccessor = REF(p->MinContext); in UpdateModel()
501 s0 = p->MinContext->SummFreq - (ns = p->MinContext->NumStats) - (p->FoundState->Freq - 1); in UpdateModel()
503 for (c = p->MaxContext; c != p->MinContext; c = SUFFIX(c)) in UpdateModel()
567 p->MaxContext = p->MinContext = CTX(fSuccessor); in UpdateModel()
573 CPpmd_State *stats = STATS(p->MinContext); in Rescale()
581 escFreq = p->MinContext->SummFreq - s->Freq; in Rescale()
587 i = p->MinContext->NumStats - 1; in Rescale()
607 unsigned numStats = p->MinContext->NumStats; in Rescale()
611 p->MinContext->NumStats = (UInt16)(p->MinContext->NumStats - i); in Rescale()
612 if (p->MinContext->NumStats == 1) in Rescale()
622 *(p->FoundState = ONE_STATE(p->MinContext)) = tmp; in Rescale()
626 n1 = (p->MinContext->NumStats + 1) >> 1; in Rescale()
628 p->MinContext->Stats = STATS_REF(ShrinkUnits(p, stats, n0, n1)); in Rescale()
630 p->MinContext->SummFreq = (UInt16)(sumFreq + escFreq - (escFreq >> 1)); in Rescale()
631 p->FoundState = STATS(p->MinContext); in Rescale()
637 unsigned nonMasked = p->MinContext->NumStats - numMasked; in Ppmd7_MakeEscFreq()
638 if (p->MinContext->NumStats != 256) in Ppmd7_MakeEscFreq()
641 (nonMasked < (unsigned)SUFFIX(p->MinContext)->NumStats - p->MinContext->NumStats) + in Ppmd7_MakeEscFreq()
642 2 * (p->MinContext->SummFreq < 11 * p->MinContext->NumStats) + in Ppmd7_MakeEscFreq()
663 p->MinContext = p->MaxContext = c; in NextContext()
672 p->MinContext->SummFreq += 4; in Ppmd7_Update1()
685 p->PrevSuccess = (2 * p->FoundState->Freq > p->MinContext->SummFreq); in Ppmd7_Update1_0()
687 p->MinContext->SummFreq += 4; in Ppmd7_Update1_0()
703 p->MinContext->SummFreq += 4; in Ppmd7_Update2()