mirror of
https://github.com/badvision/lawless-legends.git
synced 2025-02-08 03:30:51 +00:00
Fixed comment
This commit is contained in:
parent
e8ea2e9f87
commit
cd17eb873e
@ -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;
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user