Lines Matching refs:MinContext
303 p->MinContext = p->MaxContext = (CTX_PTR)(p->HiUnit -= UNIT_SIZE); /* AllocContext(p); */ in RestartModel()
304 p->MinContext->Suffix = 0; in RestartModel()
305 p->MinContext->NumStats = 256; in RestartModel()
306 p->MinContext->SummFreq = 256 + 1; in RestartModel()
309 p->MinContext->Stats = REF(p->FoundState); in RestartModel()
348 CTX_PTR c = p->MinContext; in CreateSuccessors()
431 if (p->FoundState->Freq < MAX_FREQ / 4 && p->MinContext->Suffix != 0) in UpdateModel()
433 c = SUFFIX(p->MinContext); in UpdateModel()
463 p->MinContext = p->MaxContext = CreateSuccessors(p, True); in UpdateModel()
464 if (p->MinContext == 0) in UpdateModel()
469 SetSuccessor(p->FoundState, REF(p->MinContext)); in UpdateModel()
496 p->Text -= (p->MaxContext != p->MinContext); in UpdateModel()
502 fSuccessor = REF(p->MinContext); in UpdateModel()
505 s0 = p->MinContext->SummFreq - (ns = p->MinContext->NumStats) - (p->FoundState->Freq - 1); in UpdateModel()
507 for (c = p->MaxContext; c != p->MinContext; c = SUFFIX(c)) in UpdateModel()
571 p->MaxContext = p->MinContext = CTX(fSuccessor); in UpdateModel()
577 CPpmd_State *stats = STATS(p->MinContext); in Rescale()
585 escFreq = p->MinContext->SummFreq - s->Freq; in Rescale()
591 i = p->MinContext->NumStats - 1; in Rescale()
611 unsigned numStats = p->MinContext->NumStats; in Rescale()
615 p->MinContext->NumStats = (UInt16)(p->MinContext->NumStats - i); in Rescale()
616 if (p->MinContext->NumStats == 1) in Rescale()
626 *(p->FoundState = ONE_STATE(p->MinContext)) = tmp; in Rescale()
630 n1 = (p->MinContext->NumStats + 1) >> 1; in Rescale()
632 p->MinContext->Stats = STATS_REF(ShrinkUnits(p, stats, n0, n1)); in Rescale()
634 p->MinContext->SummFreq = (UInt16)(sumFreq + escFreq - (escFreq >> 1)); in Rescale()
635 p->FoundState = STATS(p->MinContext); in Rescale()
641 unsigned nonMasked = p->MinContext->NumStats - numMasked; in Ppmd7_MakeEscFreq()
642 if (p->MinContext->NumStats != 256) in Ppmd7_MakeEscFreq()
645 (nonMasked < (unsigned)SUFFIX(p->MinContext)->NumStats - p->MinContext->NumStats) + in Ppmd7_MakeEscFreq()
646 2 * (unsigned)(p->MinContext->SummFreq < 11 * p->MinContext->NumStats) + in Ppmd7_MakeEscFreq()
667 p->MinContext = p->MaxContext = c; in NextContext()
676 p->MinContext->SummFreq += 4; in Ppmd7_Update1()
689 p->PrevSuccess = (2 * p->FoundState->Freq > p->MinContext->SummFreq); in Ppmd7_Update1_0()
691 p->MinContext->SummFreq += 4; in Ppmd7_Update1_0()
707 p->MinContext->SummFreq += 4; in Ppmd7_Update2()