| 72 | |
| 73 | |
| 74 | void ModelPPM::StartModelRare(int MaxOrder) |
| 75 | { |
| 76 | int i, k, m ,Step; |
| 77 | EscCount=1; |
| 78 | /* |
| 79 | if (MaxOrder < 2) |
| 80 | { |
| 81 | memset(CharMask,0,sizeof(CharMask)); |
| 82 | OrderFall=ModelPPM::MaxOrder; |
| 83 | MinContext=MaxContext; |
| 84 | while (MinContext->Suffix != NULL) |
| 85 | { |
| 86 | MinContext=MinContext->Suffix; |
| 87 | OrderFall--; |
| 88 | } |
| 89 | FoundState=MinContext->U.Stats; |
| 90 | MinContext=MaxContext; |
| 91 | } |
| 92 | else |
| 93 | */ |
| 94 | { |
| 95 | ModelPPM::MaxOrder=MaxOrder; |
| 96 | RestartModelRare(); |
| 97 | NS2BSIndx[0]=2*0; |
| 98 | NS2BSIndx[1]=2*1; |
| 99 | memset(NS2BSIndx+2,2*2,9); |
| 100 | memset(NS2BSIndx+11,2*3,256-11); |
| 101 | for (i=0;i < 3;i++) |
| 102 | NS2Indx[i]=i; |
| 103 | for (m=i, k=Step=1;i < 256;i++) |
| 104 | { |
| 105 | NS2Indx[i]=m; |
| 106 | if ( !--k ) |
| 107 | { |
| 108 | k = ++Step; |
| 109 | m++; |
| 110 | } |
| 111 | } |
| 112 | memset(HB2Flag,0,0x40); |
| 113 | memset(HB2Flag+0x40,0x08,0x100-0x40); |
| 114 | DummySEE2Cont.Shift=PERIOD_BITS; |
| 115 | } |
| 116 | } |
| 117 | |
| 118 | |
| 119 | void RARPPM_CONTEXT::rescale(ModelPPM *Model) |
nothing calls this directly
no outgoing calls
no test coverage detected