Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff -rw lzma922/LzmaDec.c lzma922x/LzmaDec.c
- 714a715,730
- >
- > {
- > UInt32 c,pos,posmax,P;
- > posmax = 1<<(p->prop.lp);
- > for( pos=0; pos<posmax; pos++ ) {
- > for( c=0; c<256; c++ ) {
- > for( i=0; i<256; i++ ) {
- > CLzmaProb* q = probs + Literal + ((pos << p->prop.lc) + (c>>(8-p->prop.lc)))*0x300;
- > P = i<128 ? kBitModelTotal/2 : 126*2;
- > q[0x100+i] = P;
- > q[0x200+i] = kBitModelTotal-P;
- > }
- > }
- > }
- > }
- >
- diff -rw lzma922/LzmaEnc.c lzma922x/LzmaEnc.c
- 1978a1979,1980
- > //#define LIT_PROBS(pos, prevByte)
- >
- 1981,1982c1983,1997
- < for (i = 0; i < num; i++)
- < p->litProbs[i] = kProbInitValue;
- ---
- > for( i=0; i<num; i++ ) p->litProbs[i] = kProbInitValue;
- >
- > UInt32 c,pos,posmax,P;
- > posmax = 1<<(p->lp);
- > for( pos=0; pos<posmax; pos++ ) {
- > for( c=0; c<256; c++ ) {
- > for( i=0; i<256; i++ ) {
- > CLzmaProb* q = p->litProbs + ((pos << p->lc) + (c>>(8-p->lc)))*0x300;
- > P = i<128 ? kProbInitValue : 126*2;
- > q[0x100+i] = P;
- > q[0x200+i] = kBitModelTotal-P;
- > }
- > }
- > }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement