ReactOS 0.4.16-dev-122-g325d74c
|
Go to the source code of this file.
Macros | |
#define | ZSTD_LITFREQ_ADD 2 /* scaling factor for litFreq, so that frequencies adapt faster to new stats */ |
#define | ZSTD_FREQ_DIV 4 /* log factor when using previous stats to init next stats */ |
#define | ZSTD_MAX_PRICE (1<<30) |
#define | ZSTD_PREDEF_THRESHOLD 1024 /* if srcSize < ZSTD_PREDEF_THRESHOLD, symbols' cost is assumed static, directly determined by pre-defined distributions */ |
#define | BITCOST_ACCURACY 8 |
#define | BITCOST_MULTIPLIER (1 << BITCOST_ACCURACY) |
#define | WEIGHT(stat, opt) (opt ? ZSTD_fracWeight(stat) : ZSTD_bitWeight(stat)) |
#define BITCOST_ACCURACY 8 |
Definition at line 36 of file zstd_opt.c.
#define BITCOST_MULTIPLIER (1 << BITCOST_ACCURACY) |
Definition at line 37 of file zstd_opt.c.
#define WEIGHT | ( | stat, | |
opt | |||
) | (opt ? ZSTD_fracWeight(stat) : ZSTD_bitWeight(stat)) |
Definition at line 38 of file zstd_opt.c.
Definition at line 17 of file zstd_opt.c.
#define ZSTD_LITFREQ_ADD 2 /* scaling factor for litFreq, so that frequencies adapt faster to new stats */ |
Definition at line 16 of file zstd_opt.c.
#define ZSTD_MAX_PRICE (1<<30) |
Definition at line 18 of file zstd_opt.c.
#define ZSTD_PREDEF_THRESHOLD 1024 /* if srcSize < ZSTD_PREDEF_THRESHOLD, symbols' cost is assumed static, directly determined by pre-defined distributions */ |
Definition at line 20 of file zstd_opt.c.
MEM_STATIC U32 ZSTD_bitWeight | ( | U32 | stat | ) |
Definition at line 41 of file zstd_opt.c.
FORCE_INLINE_TEMPLATE U32 ZSTD_BtGetAllMatches | ( | ZSTD_match_t * | matches, |
ZSTD_matchState_t * | ms, | ||
U32 * | nextToUpdate3, | ||
const BYTE * | ip, | ||
const BYTE *const | iHighLimit, | ||
const ZSTD_dictMode_e | dictMode, | ||
const U32 | rep[ZSTD_REP_NUM], | ||
U32 const | ll0, | ||
U32 const | lengthToBeat | ||
) |
Definition at line 742 of file zstd_opt.c.
Referenced by ZSTD_compressBlock_opt_generic().
size_t ZSTD_compressBlock_btopt | ( | ZSTD_matchState_t * | ms, |
seqStore_t * | seqStore, | ||
U32 | rep[ZSTD_REP_NUM], | ||
const void * | src, | ||
size_t | srcSize | ||
) |
Definition at line 1069 of file zstd_opt.c.
Referenced by ZSTD_selectBlockCompressor().
size_t ZSTD_compressBlock_btopt_dictMatchState | ( | ZSTD_matchState_t * | ms, |
seqStore_t * | seqStore, | ||
U32 | rep[ZSTD_REP_NUM], | ||
const void * | src, | ||
size_t | srcSize | ||
) |
Definition at line 1170 of file zstd_opt.c.
Referenced by ZSTD_selectBlockCompressor().
size_t ZSTD_compressBlock_btopt_extDict | ( | ZSTD_matchState_t * | ms, |
seqStore_t * | seqStore, | ||
U32 | rep[ZSTD_REP_NUM], | ||
const void * | src, | ||
size_t | srcSize | ||
) |
Definition at line 1184 of file zstd_opt.c.
Referenced by ZSTD_selectBlockCompressor().
size_t ZSTD_compressBlock_btultra | ( | ZSTD_matchState_t * | ms, |
seqStore_t * | seqStore, | ||
U32 | rep[ZSTD_REP_NUM], | ||
const void * | src, | ||
size_t | srcSize | ||
) |
Definition at line 1134 of file zstd_opt.c.
Referenced by ZSTD_selectBlockCompressor().
size_t ZSTD_compressBlock_btultra2 | ( | ZSTD_matchState_t * | ms, |
seqStore_t * | seqStore, | ||
U32 | rep[ZSTD_REP_NUM], | ||
const void * | src, | ||
size_t | srcSize | ||
) |
Definition at line 1142 of file zstd_opt.c.
Referenced by ZSTD_selectBlockCompressor().
size_t ZSTD_compressBlock_btultra_dictMatchState | ( | ZSTD_matchState_t * | ms, |
seqStore_t * | seqStore, | ||
U32 | rep[ZSTD_REP_NUM], | ||
const void * | src, | ||
size_t | srcSize | ||
) |
Definition at line 1177 of file zstd_opt.c.
Referenced by ZSTD_selectBlockCompressor().
size_t ZSTD_compressBlock_btultra_extDict | ( | ZSTD_matchState_t * | ms, |
seqStore_t * | seqStore, | ||
U32 | rep[ZSTD_REP_NUM], | ||
const void * | src, | ||
size_t | srcSize | ||
) |
Definition at line 1191 of file zstd_opt.c.
Referenced by ZSTD_selectBlockCompressor().
FORCE_INLINE_TEMPLATE size_t ZSTD_compressBlock_opt_generic | ( | ZSTD_matchState_t * | ms, |
seqStore_t * | seqStore, | ||
U32 | rep[ZSTD_REP_NUM], | ||
const void * | src, | ||
size_t | srcSize, | ||
const int | optLevel, | ||
const ZSTD_dictMode_e | dictMode | ||
) |
Definition at line 796 of file zstd_opt.c.
Referenced by ZSTD_compressBlock_btopt(), ZSTD_compressBlock_btopt_dictMatchState(), ZSTD_compressBlock_btopt_extDict(), ZSTD_compressBlock_btultra(), ZSTD_compressBlock_btultra2(), ZSTD_compressBlock_btultra_dictMatchState(), ZSTD_compressBlock_btultra_extDict(), and ZSTD_initStats_ultra().
|
static |
Definition at line 67 of file zstd_opt.c.
Referenced by ZSTD_rawLiteralsCost(), ZSTD_rescaleFreqs(), ZSTD_setBasePrices(), ZSTD_updateStats(), and ZSTD_upscaleStats().
Definition at line 85 of file zstd_opt.c.
Referenced by ZSTD_rescaleFreqs().
MEM_STATIC U32 ZSTD_fracWeight | ( | U32 | rawStat | ) |
Definition at line 46 of file zstd_opt.c.
FORCE_INLINE_TEMPLATE U32 ZSTD_getMatchPrice | ( | U32 const | offset, |
U32 const | matchLength, | ||
const optState_t *const | optPtr, | ||
int const | optLevel | ||
) |
Definition at line 257 of file zstd_opt.c.
Referenced by ZSTD_compressBlock_opt_generic().
|
static |
Definition at line 1107 of file zstd_opt.c.
Referenced by ZSTD_compressBlock_btultra2().
|
static |
Definition at line 341 of file zstd_opt.c.
Referenced by ZSTD_insertBtAndGetAllMatches().
|
static |
ZSTD_insertBt1() : add one or multiple positions to tree. ip : assumed <= iend-8 .
Definition at line 369 of file zstd_opt.c.
Referenced by ZSTD_updateTree_internal().
FORCE_INLINE_TEMPLATE U32 ZSTD_insertBtAndGetAllMatches | ( | ZSTD_match_t * | matches, |
ZSTD_matchState_t * | ms, | ||
U32 * | nextToUpdate3, | ||
const BYTE *const | ip, | ||
const BYTE *const | iLimit, | ||
const ZSTD_dictMode_e | dictMode, | ||
const U32 | rep[ZSTD_REP_NUM], | ||
U32 const | ll0, | ||
const U32 | lengthToBeat, | ||
U32 const | mls | ||
) |
Definition at line 509 of file zstd_opt.c.
Referenced by ZSTD_BtGetAllMatches().
|
static |
Definition at line 240 of file zstd_opt.c.
Referenced by ZSTD_compressBlock_opt_generic().
|
static |
Definition at line 215 of file zstd_opt.c.
Referenced by ZSTD_compressBlock_opt_generic().
MEM_STATIC U32 ZSTD_readMINMATCH | ( | const void * | memPtr, |
U32 | length | ||
) |
Definition at line 325 of file zstd_opt.c.
Referenced by ZSTD_insertBtAndGetAllMatches().
|
static |
Definition at line 104 of file zstd_opt.c.
Referenced by ZSTD_compressBlock_opt_generic().
|
static |
Definition at line 72 of file zstd_opt.c.
Referenced by ZSTD_compressBlock_opt_generic(), and ZSTD_rescaleFreqs().
|
static |
Definition at line 773 of file zstd_opt.c.
Referenced by ZSTD_compressBlock_opt_generic().
|
static |
Definition at line 288 of file zstd_opt.c.
Referenced by ZSTD_compressBlock_opt_generic().
Definition at line 504 of file zstd_opt.c.
Referenced by ZSTD_loadDictionaryContent().
FORCE_INLINE_TEMPLATE void ZSTD_updateTree_internal | ( | ZSTD_matchState_t * | ms, |
const BYTE *const | ip, | ||
const BYTE *const | iend, | ||
const U32 | mls, | ||
const ZSTD_dictMode_e | dictMode | ||
) |
Definition at line 483 of file zstd_opt.c.
Referenced by ZSTD_BtGetAllMatches(), and ZSTD_updateTree().
MEM_STATIC void ZSTD_upscaleStats | ( | optState_t * | optPtr | ) |
Definition at line 1092 of file zstd_opt.c.
Referenced by ZSTD_initStats_ultra().