Skip to content

Commit

Permalink
changed variable name to ZSTD_c_blockSplitterLevel
Browse files Browse the repository at this point in the history
  • Loading branch information
Cyan4973 committed Oct 29, 2024
1 parent f593ccd commit 4d41911
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
12 changes: 6 additions & 6 deletions lib/compress/zstd_compress.c
Original file line number Diff line number Diff line change
Expand Up @@ -603,7 +603,7 @@ ZSTD_bounds ZSTD_cParam_getBounds(ZSTD_cParameter param)
bounds.upperBound = (int)ZSTD_ps_disable;
return bounds;

case ZSTD_c_blockSplitter_level:
case ZSTD_c_blockSplitterLevel:
bounds.lowerBound = 0;
bounds.upperBound = ZSTD_BLOCKSPLITTER_LEVEL_MAX;
return bounds;
Expand Down Expand Up @@ -674,7 +674,7 @@ static int ZSTD_isUpdateAuthorized(ZSTD_cParameter param)
case ZSTD_c_minMatch:
case ZSTD_c_targetLength:
case ZSTD_c_strategy:
case ZSTD_c_blockSplitter_level:
case ZSTD_c_blockSplitterLevel:
return 1;

case ZSTD_c_format:
Expand Down Expand Up @@ -761,7 +761,7 @@ size_t ZSTD_CCtx_setParameter(ZSTD_CCtx* cctx, ZSTD_cParameter param, int value)
case ZSTD_c_blockDelimiters:
case ZSTD_c_validateSequences:
case ZSTD_c_useBlockSplitter:
case ZSTD_c_blockSplitter_level:
case ZSTD_c_blockSplitterLevel:
case ZSTD_c_useRowMatchFinder:
case ZSTD_c_deterministicRefPrefix:
case ZSTD_c_prefetchCDictTables:
Expand Down Expand Up @@ -987,8 +987,8 @@ size_t ZSTD_CCtxParams_setParameter(ZSTD_CCtx_params* CCtxParams,
CCtxParams->postBlockSplitter = (ZSTD_paramSwitch_e)value;
return CCtxParams->postBlockSplitter;

case ZSTD_c_blockSplitter_level:
BOUNDCHECK(ZSTD_c_blockSplitter_level, value);
case ZSTD_c_blockSplitterLevel:
BOUNDCHECK(ZSTD_c_blockSplitterLevel, value);
CCtxParams->preBlockSplitter_level = value;
return (size_t)CCtxParams->preBlockSplitter_level;

Expand Down Expand Up @@ -1150,7 +1150,7 @@ size_t ZSTD_CCtxParams_getParameter(
case ZSTD_c_useBlockSplitter :
*value = (int)CCtxParams->postBlockSplitter;
break;
case ZSTD_c_blockSplitter_level :
case ZSTD_c_blockSplitterLevel :
*value = CCtxParams->preBlockSplitter_level;
break;
case ZSTD_c_useRowMatchFinder :
Expand Down
6 changes: 3 additions & 3 deletions lib/zstd.h
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ typedef enum {
* ZSTD_c_prefetchCDictTables
* ZSTD_c_enableSeqProducerFallback
* ZSTD_c_maxBlockSize
* ZSTD_c_blockSplitter_level
* ZSTD_c_blockSplitterLevel
* Because they are not stable, it's necessary to define ZSTD_STATIC_LINKING_ONLY to access them.
* note : never ever use experimentalParam? names directly;
* also, the enums values themselves are unstable and can still change.
Expand Down Expand Up @@ -2265,7 +2265,7 @@ ZSTDLIB_STATIC_API size_t ZSTD_CCtx_refPrefix_advanced(ZSTD_CCtx* cctx, const vo
*/
#define ZSTD_c_searchForExternalRepcodes ZSTD_c_experimentalParam19

/* ZSTD_c_blockSplitter_level
/* ZSTD_c_blockSplitterLevel
* note: this parameter only influences the first splitter stage,
* which is active before producing the sequences.
* ZSTD_c_useBlockSplitter influence the next splitter stage,
Expand All @@ -2281,7 +2281,7 @@ ZSTDLIB_STATIC_API size_t ZSTD_CCtx_refPrefix_advanced(ZSTD_CCtx* cctx, const vo
* to ensure expansion guarantees in presence of incompressible data.
*/
#define ZSTD_BLOCKSPLITTER_LEVEL_MAX 6
#define ZSTD_c_blockSplitter_level ZSTD_c_experimentalParam20
#define ZSTD_c_blockSplitterLevel ZSTD_c_experimentalParam20

/*! ZSTD_CCtx_getParameter() :
* Get the requested compression parameter value, selected by enum ZSTD_cParameter,
Expand Down

0 comments on commit 4d41911

Please sign in to comment.