MCPcopy Create free account
hub / github.com/abbeycode/UnrarKit / update1

Method update1

Libraries/unrar/model.cpp:396–407  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

394
395
396inline void RARPPM_CONTEXT::update1(ModelPPM *Model,RARPPM_STATE* p)
397{
398 (Model->FoundState=p)->Freq += 4;
399 U.SummFreq += 4;
400 if (p[0].Freq > p[-1].Freq)
401 {
402 _PPMD_SWAP(p[0],p[-1]);
403 Model->FoundState=--p;
404 if (p->Freq > MAX_FREQ)
405 rescale(Model);
406 }
407}
408
409
410

Callers

nothing calls this directly

Calls 1

_PPMD_SWAPFunction · 0.85

Tested by

no test coverage detected