Remove inlining for opt
This commit is contained in:
parent
18a20b3ad7
commit
d88c1d95ce
@ -253,8 +253,7 @@ static U32 ZSTD_litLengthPrice(U32 const litLength, const optState_t* const optP
|
|||||||
* Provides the cost of the match part (offset + matchLength) of a sequence
|
* Provides the cost of the match part (offset + matchLength) of a sequence
|
||||||
* Must be combined with ZSTD_fullLiteralsCost() to get the full cost of a sequence.
|
* Must be combined with ZSTD_fullLiteralsCost() to get the full cost of a sequence.
|
||||||
* optLevel: when <2, favors small offset for decompression speed (improved cache efficiency) */
|
* optLevel: when <2, favors small offset for decompression speed (improved cache efficiency) */
|
||||||
FORCE_INLINE_TEMPLATE U32
|
static U32 ZSTD_getMatchPrice(U32 const offset,
|
||||||
ZSTD_getMatchPrice(U32 const offset,
|
|
||||||
U32 const matchLength,
|
U32 const matchLength,
|
||||||
const optState_t* const optPtr,
|
const optState_t* const optPtr,
|
||||||
int const optLevel)
|
int const optLevel)
|
||||||
@ -485,9 +484,7 @@ static U32 ZSTD_insertBt1(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
FORCE_INLINE_TEMPLATE
|
static void ZSTD_updateTree_internal(ZSTD_matchState_t* ms,
|
||||||
void ZSTD_updateTree_internal(
|
|
||||||
ZSTD_matchState_t* ms,
|
|
||||||
const BYTE* const ip, const BYTE* const iend,
|
const BYTE* const ip, const BYTE* const iend,
|
||||||
const U32 mls, const ZSTD_dictMode_e dictMode)
|
const U32 mls, const ZSTD_dictMode_e dictMode)
|
||||||
{
|
{
|
||||||
@ -511,8 +508,7 @@ void ZSTD_updateTree(ZSTD_matchState_t* ms, const BYTE* ip, const BYTE* iend) {
|
|||||||
ZSTD_updateTree_internal(ms, ip, iend, ms->cParams.minMatch, ZSTD_noDict);
|
ZSTD_updateTree_internal(ms, ip, iend, ms->cParams.minMatch, ZSTD_noDict);
|
||||||
}
|
}
|
||||||
|
|
||||||
FORCE_INLINE_TEMPLATE
|
static U32 ZSTD_insertBtAndGetAllMatches (
|
||||||
U32 ZSTD_insertBtAndGetAllMatches (
|
|
||||||
ZSTD_match_t* matches, /* store result (found matches) in this table (presumed large enough) */
|
ZSTD_match_t* matches, /* store result (found matches) in this table (presumed large enough) */
|
||||||
ZSTD_matchState_t* ms,
|
ZSTD_matchState_t* ms,
|
||||||
U32* nextToUpdate3,
|
U32* nextToUpdate3,
|
||||||
@ -745,7 +741,7 @@ U32 ZSTD_insertBtAndGetAllMatches (
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
FORCE_INLINE_TEMPLATE U32 ZSTD_BtGetAllMatches (
|
static U32 ZSTD_BtGetAllMatches (
|
||||||
ZSTD_match_t* matches, /* store result (match found, increasing size) in this table */
|
ZSTD_match_t* matches, /* store result (match found, increasing size) in this table */
|
||||||
ZSTD_matchState_t* ms,
|
ZSTD_matchState_t* ms,
|
||||||
U32* nextToUpdate3,
|
U32* nextToUpdate3,
|
||||||
@ -932,7 +928,7 @@ listStats(const U32* table, int lastEltID)
|
|||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
FORCE_INLINE_TEMPLATE size_t
|
static size_t
|
||||||
ZSTD_compressBlock_opt_generic(ZSTD_matchState_t* ms,
|
ZSTD_compressBlock_opt_generic(ZSTD_matchState_t* ms,
|
||||||
seqStore_t* seqStore,
|
seqStore_t* seqStore,
|
||||||
U32 rep[ZSTD_REP_NUM],
|
U32 rep[ZSTD_REP_NUM],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user