Fixed comment

This commit is contained in:
Martin Haye 2016-12-30 17:42:35 -08:00
parent e8ea2e9f87
commit cd17eb873e
2 changed files with 2 additions and 2 deletions

View File

@ -1232,7 +1232,7 @@ class A2PackPartitions
//lx47.decompress(outputData, 0, uncomp, 0, inLen)
//assert uncomp == inputData
// Test overlapped decompression
// Verify the stream comes out right with overlapped decompression
def underlap = 2
def buf = new byte[inLen+underlap]
def initialOffset = inLen - outputData.length + underlap;

View File

@ -51,7 +51,7 @@ public class Lx47Algorithm
int countEliasExpGammaBits(int value, int exp) {
return (exp==0) ? countEliasGammaBits(value) : (countEliasGammaBits((value >> exp) + 1) + exp);
}
int countSeqBits(int prevLits, int offset, int len) {
return (prevLits>0 ? 0 : 1)
+ countEliasExpGammaBits(offset, OFFSET_EXP_BITS)