codemod: ZSTD_defaultPolicy_e -> ZSTD_DefaultPolicy_e
This commit is contained in:
@@ -2826,7 +2826,7 @@ ZSTD_buildSequencesStatistics(
|
|||||||
size_t const mostFrequent = HIST_countFast_wksp(
|
size_t const mostFrequent = HIST_countFast_wksp(
|
||||||
countWorkspace, &max, ofCodeTable, nbSeq, entropyWorkspace, entropyWkspSize); /* can't fail */
|
countWorkspace, &max, ofCodeTable, nbSeq, entropyWorkspace, entropyWkspSize); /* can't fail */
|
||||||
/* We can only use the basic table if max <= DefaultMaxOff, otherwise the offsets are too large */
|
/* We can only use the basic table if max <= DefaultMaxOff, otherwise the offsets are too large */
|
||||||
ZSTD_defaultPolicy_e const defaultPolicy = (max <= DefaultMaxOff) ? ZSTD_defaultAllowed : ZSTD_defaultDisallowed;
|
ZSTD_DefaultPolicy_e const defaultPolicy = (max <= DefaultMaxOff) ? ZSTD_defaultAllowed : ZSTD_defaultDisallowed;
|
||||||
DEBUGLOG(5, "Building OF table");
|
DEBUGLOG(5, "Building OF table");
|
||||||
nextEntropy->offcode_repeatMode = prevEntropy->offcode_repeatMode;
|
nextEntropy->offcode_repeatMode = prevEntropy->offcode_repeatMode;
|
||||||
stats.Offtype = ZSTD_selectEncodingType(&nextEntropy->offcode_repeatMode,
|
stats.Offtype = ZSTD_selectEncodingType(&nextEntropy->offcode_repeatMode,
|
||||||
|
|||||||
@@ -159,7 +159,7 @@ ZSTD_selectEncodingType(
|
|||||||
size_t const mostFrequent, size_t nbSeq, unsigned const FSELog,
|
size_t const mostFrequent, size_t nbSeq, unsigned const FSELog,
|
||||||
FSE_CTable const* prevCTable,
|
FSE_CTable const* prevCTable,
|
||||||
short const* defaultNorm, U32 defaultNormLog,
|
short const* defaultNorm, U32 defaultNormLog,
|
||||||
ZSTD_defaultPolicy_e const isDefaultAllowed,
|
ZSTD_DefaultPolicy_e const isDefaultAllowed,
|
||||||
ZSTD_strategy const strategy)
|
ZSTD_strategy const strategy)
|
||||||
{
|
{
|
||||||
ZSTD_STATIC_ASSERT(ZSTD_defaultDisallowed == 0 && ZSTD_defaultAllowed != 0);
|
ZSTD_STATIC_ASSERT(ZSTD_defaultDisallowed == 0 && ZSTD_defaultAllowed != 0);
|
||||||
|
|||||||
@@ -18,7 +18,7 @@
|
|||||||
typedef enum {
|
typedef enum {
|
||||||
ZSTD_defaultDisallowed = 0,
|
ZSTD_defaultDisallowed = 0,
|
||||||
ZSTD_defaultAllowed = 1
|
ZSTD_defaultAllowed = 1
|
||||||
} ZSTD_defaultPolicy_e;
|
} ZSTD_DefaultPolicy_e;
|
||||||
|
|
||||||
SymbolEncodingType_e
|
SymbolEncodingType_e
|
||||||
ZSTD_selectEncodingType(
|
ZSTD_selectEncodingType(
|
||||||
@@ -26,7 +26,7 @@ ZSTD_selectEncodingType(
|
|||||||
size_t const mostFrequent, size_t nbSeq, unsigned const FSELog,
|
size_t const mostFrequent, size_t nbSeq, unsigned const FSELog,
|
||||||
FSE_CTable const* prevCTable,
|
FSE_CTable const* prevCTable,
|
||||||
short const* defaultNorm, U32 defaultNormLog,
|
short const* defaultNorm, U32 defaultNormLog,
|
||||||
ZSTD_defaultPolicy_e const isDefaultAllowed,
|
ZSTD_DefaultPolicy_e const isDefaultAllowed,
|
||||||
ZSTD_strategy const strategy);
|
ZSTD_strategy const strategy);
|
||||||
|
|
||||||
size_t
|
size_t
|
||||||
|
|||||||
Reference in New Issue
Block a user