#include "Precomp.h"
#include "Ppmd7.h"
Go to the source code of this file.
#define kTopValue (1 << 24) |
#define MASK |
( |
|
sym) | |
((signed char *)charMask)[sym] |
Definition at line 83 of file Ppmd7Dec.c.
85 size_t charMask[256 /
sizeof(size_t)];
104 if ((hiCnt += (++s)->Freq) > count)
122 do {
MASK((--s)->Symbol) = 0; }
while (--i);
144 UInt32 freqSum, count, hiCnt;
162 hiCnt += (s->
Freq & k);
176 for (hiCnt = 0; (hiCnt += (*pps)->Freq) <= count; pps++);
185 if (count >= freqSum)
187 rc->
Decode(rc, hiCnt, freqSum - hiCnt);
189 do {
MASK(ps[--i]->Symbol) = 0; }
while (i != 0);
Definition at line 11 of file Ppmd7Dec.c.
15 p->
Range = 0xFFFFFFFF;
18 for (i = 0; i < 4; i++)
20 return (p->
Code < 0xFFFFFFFF);
Definition at line 45 of file Ppmd7Dec.c.
48 p->Code -= start * p->Range;
Definition at line 53 of file Ppmd7Dec.c.
56 UInt32 newBound = (p->Range >> 14) * size0;
58 if (p->Code < newBound)
Definition at line 25 of file Ppmd7Dec.c.
28 return p->Code / (p->Range /= total);