Addressing comments on parsing
This commit is contained in:
parent
47199480da
commit
1407919d13
@ -2288,7 +2288,7 @@ static void ZSTD_copyBlockSequences(ZSTD_CCtx* zc)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (outSeqs[i].offset <= ZSTD_REP_NUM) {
|
if (outSeqs[i].offset <= ZSTD_REP_NUM) {
|
||||||
outSeqs[i].rep = 1;
|
outSeqs[i].rep = outSeqs[i].offset;
|
||||||
repIdx = i - outSeqs[i].offset;
|
repIdx = i - outSeqs[i].offset;
|
||||||
|
|
||||||
if (outSeqs[i].litLength == 0) {
|
if (outSeqs[i].litLength == 0) {
|
||||||
@ -2297,10 +2297,11 @@ static void ZSTD_copyBlockSequences(ZSTD_CCtx* zc)
|
|||||||
} else {
|
} else {
|
||||||
repIdx = i - 1;
|
repIdx = i - 1;
|
||||||
}
|
}
|
||||||
|
++outSeqs[i].rep;
|
||||||
}
|
}
|
||||||
assert(repIdx >= -3);
|
assert(repIdx >= -3);
|
||||||
outSeqs[i].offset = repIdx >= 0 ? outSeqs[repIdx].offset : repStartValue[-repIdx - 1];
|
outSeqs[i].offset = repIdx >= 0 ? outSeqs[repIdx].offset : repStartValue[-repIdx - 1];
|
||||||
if (outSeqs[i].offset == 3) {
|
if (outSeqs[i].offset == 4) {
|
||||||
--outSeqs[i].offset;
|
--outSeqs[i].offset;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
@ -1077,7 +1077,7 @@ typedef struct {
|
|||||||
unsigned int offset;
|
unsigned int offset;
|
||||||
unsigned int litLength;
|
unsigned int litLength;
|
||||||
unsigned int matchLength;
|
unsigned int matchLength;
|
||||||
int rep;
|
unsigned int rep;
|
||||||
} ZSTD_Sequence;
|
} ZSTD_Sequence;
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user