kSlotNew
This commit is contained in:
+10
-3
@@ -1662,10 +1662,20 @@ _storeSequence:
|
||||
{
|
||||
#if ZSTD_REP_NUM == 4
|
||||
if (offset >= ZSTD_REP_NUM) {
|
||||
#if 0
|
||||
rep[3] = rep[2];
|
||||
rep[2] = rep[1];
|
||||
rep[1] = rep[0];
|
||||
rep[0] = offset - (ZSTD_REP_NUM - 1);
|
||||
#else
|
||||
if (kSlotNew < 3)
|
||||
rep[3] = rep[2];
|
||||
if (kSlotNew < 2)
|
||||
rep[2] = rep[1];
|
||||
if (kSlotNew < 1)
|
||||
rep[1] = rep[0];
|
||||
rep[kSlotNew] = offset - (ZSTD_REP_NUM - 1);
|
||||
#endif
|
||||
} else {
|
||||
if (offset != 0) {
|
||||
size_t temp = rep[offset];
|
||||
@@ -2463,6 +2473,3 @@ ZSTD_parameters ZSTD_getParams(int compressionLevel, U64 srcSizeHint)
|
||||
result.srcSize = srcSizeHint;
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
void ZSTD_setAdditionalParam(ZSTD_CCtx* ctx, int additionalParam) { ctx->additionalParam = additionalParam; };
|
||||
|
||||
Reference in New Issue
Block a user