Home
last modified time | relevance | path

Searched refs:MINRATIO (Results 1 – 1 of 1) sorted by relevance

/external/zstd/lib/dictBuilder/
Dzdict.c15 #define MINRATIO 4 /* minimum nb of apparition to be selected in dictionary */ macro
17 #define ZDICT_MIN_SAMPLES_SIZE (ZDICT_CONTENTSIZE_MIN * MINRATIO)
545 if (minRatio < MINRATIO) minRatio = MINRATIO; in ZDICT_trainBuffer_legacy()
987 unsigned const minRep = (selectivity > 30) ? MINRATIO : nbSamples >> selectivity; in ZDICT_trainFromBuffer_unsafe_legacy()
1036 if (minRep > MINRATIO) { in ZDICT_trainFromBuffer_unsafe_legacy()
1042 if ((dictContentSize > targetDictSize*3) && (nbSamples > 2*MINRATIO) && (selectivity>1)) { in ZDICT_trainFromBuffer_unsafe_legacy()
1044 while ((nbSamples >> proposedSelectivity) <= MINRATIO) { proposedSelectivity--; } in ZDICT_trainFromBuffer_unsafe_legacy()