Home
last modified time | relevance | path

Searched refs:strategy (Results 1 – 25 of 115) sorted by relevance

12345

/src/crypto/openssh/regress/unittests/test_helper/
H A Dfuzz.c61 int strategy; member
108 switch (fuzz->strategy) { in fuzz_fmt()
111 fuzz_ntop(fuzz->strategy), in fuzz_fmt()
116 fuzz_ntop(fuzz->strategy), in fuzz_fmt()
123 fuzz_ntop(fuzz->strategy), in fuzz_fmt()
128 fuzz_ntop(fuzz->strategy), in fuzz_fmt()
135 fuzz_ntop(fuzz->strategy), in fuzz_fmt()
140 fuzz_ntop(fuzz->strategy), in fuzz_fmt()
146 fuzz_ntop(fuzz->strategy), in fuzz_fmt()
264 fuzz, fuzz_ntop(fuzz->strategy), fuzz->o1, fuzz->o2, fuzz->slen)); in fuzz_strategy_done()
[all …]
/src/sys/contrib/openzfs/module/zstd/lib/compress/
H A Dzstd_compress_literals.c116 ZSTD_minLiteralsToCompress(ZSTD_strategy strategy, HUF_repeat huf_repeat) in ZSTD_minLiteralsToCompress() argument
118 assert((int)strategy >= 0); in ZSTD_minLiteralsToCompress()
119 assert((int)strategy <= 9); in ZSTD_minLiteralsToCompress()
123 { int const shift = MIN(9-(int)strategy, 3); in ZSTD_minLiteralsToCompress()
136 ZSTD_strategy strategy, in ZSTD_compressLiterals() argument
159 if (srcSize < ZSTD_minLiteralsToCompress(strategy, prevHuf->repeatMode)) in ZSTD_compressLiterals()
166 | (strategy < ZSTD_lazy && srcSize <= 1024 ? HUF_flags_preferRepeat : 0) in ZSTD_compressLiterals()
167 | (strategy >= HUF_OPTIMAL_DEPTH_THRESHOLD ? HUF_flags_optimalDepth : 0) in ZSTD_compressLiterals()
188 { size_t const minGain = ZSTD_minGain(srcSize, strategy); in ZSTD_compressLiterals()
H A Dzstd_ldm.c150 assert(1 <= (int)cParams->strategy && (int)cParams->strategy <= 9); in ZSTD_ldm_adjustParameters()
152 params->hashRateLog = 7 - (cParams->strategy/3); in ZSTD_ldm_adjustParameters()
160 if (cParams->strategy >= ZSTD_btultra) in ZSTD_ldm_adjustParameters()
164 assert(1 <= (int)cParams->strategy && (int)cParams->strategy <= 9); in ZSTD_ldm_adjustParameters()
165 …params->bucketSizeLog = BOUNDED(LDM_BUCKET_SIZE_LOG, (U32)cParams->strategy, ZSTD_LDM_BUCKETSIZELO… in ZSTD_ldm_adjustParameters()
257 switch(ms->cParams.strategy) in ZSTD_ldm_fillFastTables()
690 … ZSTD_selectBlockCompressor(cParams->strategy, useRowMatchFinder, ZSTD_matchState_dictMode(ms)); in ZSTD_ldm_blockCompress()
699 if (cParams->strategy >= ZSTD_btopt) { in ZSTD_ldm_blockCompress()
H A Dzstd_compress.c226 static int ZSTD_rowMatchFinderSupported(const ZSTD_strategy strategy) { in ZSTD_rowMatchFinderSupported() argument
227 return (strategy >= ZSTD_greedy && strategy <= ZSTD_lazy2); in ZSTD_rowMatchFinderSupported()
233 static int ZSTD_rowMatchFinderUsed(const ZSTD_strategy strategy, const ZSTD_ParamSwitch_e mode) { in ZSTD_rowMatchFinderUsed() argument
235 return ZSTD_rowMatchFinderSupported(strategy) && (mode == ZSTD_ps_enable); in ZSTD_rowMatchFinderUsed()
243 if (!ZSTD_rowMatchFinderSupported(cParams->strategy)) return mode; in ZSTD_resolveRowMatchFinderMode()
252 …return (cParams->strategy >= ZSTD_btopt && cParams->windowLog >= 17) ? ZSTD_ps_enable : ZSTD_ps_di… in ZSTD_resolveBlockSplitterMode()
256 static int ZSTD_allocateChainTable(const ZSTD_strategy strategy, in ZSTD_allocateChainTable() argument
263 …return forDDSDict || ((strategy != ZSTD_fast) && !ZSTD_rowMatchFinderUsed(strategy, useRowMatchFin… in ZSTD_allocateChainTable()
273 …return (cParams->strategy >= ZSTD_btopt && cParams->windowLog >= 27) ? ZSTD_ps_enable : ZSTD_ps_di… in ZSTD_resolveEnableLdm()
301 return cParams->strategy == ZSTD_fast || cParams->strategy == ZSTD_dfast; in ZSTD_CDictIndicesAreTagged()
[all …]
H A Dzstd_compress_literals.h36 ZSTD_strategy strategy, int disableLiteralCompression,
H A Dzstd_compress_sequences.h31 ZSTD_strategy const strategy);
/src/contrib/libarchive/libarchive/
H A Darchive_entry_link_resolver.c83 int strategy; member
130 res->strategy = ARCHIVE_ENTRY_LINKIFY_LIKE_OLD_CPIO; in archive_entry_linkresolver_set_strategy()
136 res->strategy = ARCHIVE_ENTRY_LINKIFY_LIKE_NEW_CPIO; in archive_entry_linkresolver_set_strategy()
139 res->strategy = ARCHIVE_ENTRY_LINKIFY_LIKE_OLD_CPIO; in archive_entry_linkresolver_set_strategy()
144 res->strategy = ARCHIVE_ENTRY_LINKIFY_LIKE_MTREE; in archive_entry_linkresolver_set_strategy()
150 res->strategy = ARCHIVE_ENTRY_LINKIFY_LIKE_TAR; in archive_entry_linkresolver_set_strategy()
153 res->strategy = ARCHIVE_ENTRY_LINKIFY_LIKE_OLD_CPIO; in archive_entry_linkresolver_set_strategy()
199 switch (res->strategy) { in archive_entry_linkify()
/src/contrib/llvm-project/llvm/lib/Support/
H A DParallel.cpp19 llvm::ThreadPoolStrategy llvm::parallel::strategy; member in llvm::parallel
94 static void *call() { return new ThreadPoolExecutor(strategy); } in call()
174 : Parallel((parallel::strategy.ThreadsRequested != 1) && in TaskGroup()
205 if (parallel::strategy.ThreadsRequested != 1) { in parallelFor()
/src/sys/ddb/
H A Ddb_sym.c369 db_search_symbol(db_addr_t val, db_strategy_t strategy, db_expr_t *offp) in db_search_symbol() argument
391 sym = X_db_search_symbol(&db_symtabs[i], val, strategy, &newdiff); in db_search_symbol()
442 db_printsym(db_expr_t off, db_strategy_t strategy) in db_printsym() argument
454 cursym = db_search_symbol(off, strategy, &d); in db_printsym()
467 if (strategy == DB_STGY_PROC) { in db_printsym()
H A Ddb_sym.h101 db_strategy_t strategy, db_expr_t *diffp);
/src/crypto/krb5/src/lib/krb5/os/
H A Dsendto_kdc.c454 k5_transport_strategy strategy; in k5_sendto_kdc() local
492 strategy = NO_UDP; in k5_sendto_kdc()
494 strategy = UDP_FIRST; in k5_sendto_kdc()
496 strategy = UDP_LAST; in k5_sendto_kdc()
520 retval = k5_sendto(context, message, realm, &servers, strategy, NULL, in k5_sendto_kdc()
807 k5_transport_strategy strategy, const krb5_data *message, in resolve_server() argument
819 if (strategy == NO_UDP && entry->transport == UDP) in resolve_server()
821 if (strategy == ONLY_UDP && entry->transport != UDP && in resolve_server()
825 transport = (strategy == UDP_FIRST || strategy == ONLY_UDP) ? UDP : TCP; in resolve_server()
831 defer = (entry->transport == TCP && strategy == UDP_FIRST) || in resolve_server()
[all …]
/src/sys/contrib/zlib/
H A Dzlib.h715 int strategy);
1448 ZEXTERN int ZEXPORT gzsetparams(gzFile file, int level, int strategy);
1914 int strategy, const char *version,
1927 # define z_deflateInit2(strm, level, method, windowBits, memLevel, strategy) \ argument
1929 (strategy), ZLIB_VERSION, (int)sizeof(z_stream))
1941 # define deflateInit2(strm, level, method, windowBits, memLevel, strategy) \ argument
1943 (strategy), ZLIB_VERSION, (int)sizeof(z_stream))
H A Dgzwrite.c38 MAX_WBITS + 16, DEF_MEM_LEVEL, state->strategy); in gz_init()
631 int ZEXPORT gzsetparams(gzFile file, int level, int strategy) { in gzsetparams() argument
648 if (level == state->level && strategy == state->strategy) in gzsetparams()
660 deflateParams(strm, level, strategy); in gzsetparams()
663 state->strategy = strategy; in gzsetparams()
H A Dgzlib.c113 state->strategy = Z_DEFAULT_STRATEGY; in gz_open()
147 state->strategy = Z_FILTERED; in gz_open()
150 state->strategy = Z_HUFFMAN_ONLY; in gz_open()
153 state->strategy = Z_RLE; in gz_open()
156 state->strategy = Z_FIXED; in gz_open()
H A Ddeflate.c388 int windowBits, int memLevel, int strategy, in deflateInit2_() argument
436 strategy < 0 || strategy > Z_FIXED || (windowBits == 8 && wrap != 1)) { in deflateInit2_()
529 s->strategy = strategy; in deflateInit2_()
774 int ZEXPORT deflateParams(z_streamp strm, int level, int strategy) { in deflateParams() argument
786 if (level < 0 || level > 9 || strategy < 0 || strategy > Z_FIXED) { in deflateParams()
791 if ((strategy != s->strategy || func != configuration_table[level].func) && in deflateParams()
814 s->strategy = strategy; in deflateParams()
1036 if (s->strategy >= Z_HUFFMAN_ONLY || s->level < 2) in deflate()
1079 (s->strategy >= Z_HUFFMAN_ONLY || s->level < 2 ? in deflate()
1103 (s->strategy >= Z_HUFFMAN_ONLY || s->level < 2 ? in deflate()
[all …]
/src/sys/contrib/zstd/lib/compress/
H A Dzstd_compress_literals.c72 ZSTD_strategy strategy, int disableLiteralCompression, in ZSTD_compressLiterals() argument
79 size_t const minGain = ZSTD_minGain(srcSize, strategy); in ZSTD_compressLiterals()
103 int const preferRepeat = strategy < ZSTD_lazy ? srcSize <= 1024 : 0; in ZSTD_compressLiterals()
H A Dzstd_compress.c221 static int ZSTD_rowMatchFinderSupported(const ZSTD_strategy strategy) { in ZSTD_rowMatchFinderSupported() argument
222 return (strategy >= ZSTD_greedy && strategy <= ZSTD_lazy2); in ZSTD_rowMatchFinderSupported()
228 static int ZSTD_rowMatchFinderUsed(const ZSTD_strategy strategy, const ZSTD_paramSwitch_e mode) { in ZSTD_rowMatchFinderUsed() argument
230 return ZSTD_rowMatchFinderSupported(strategy) && (mode == ZSTD_ps_enable); in ZSTD_rowMatchFinderUsed()
243 if (!ZSTD_rowMatchFinderSupported(cParams->strategy)) return mode; in ZSTD_resolveRowMatchFinderMode()
256 …return (cParams->strategy >= ZSTD_btopt && cParams->windowLog >= 17) ? ZSTD_ps_enable : ZSTD_ps_di… in ZSTD_resolveBlockSplitterMode()
260 static int ZSTD_allocateChainTable(const ZSTD_strategy strategy, in ZSTD_allocateChainTable() argument
267 …return forDDSDict || ((strategy != ZSTD_fast) && !ZSTD_rowMatchFinderUsed(strategy, useRowMatchFin… in ZSTD_allocateChainTable()
277 …return (cParams->strategy >= ZSTD_btopt && cParams->windowLog >= 27) ? ZSTD_ps_enable : ZSTD_ps_di… in ZSTD_resolveEnableLdm()
760 CCtxParams->cParams.strategy = (ZSTD_strategy)value; in ZSTD_CCtxParams_setParameter()
[all …]
H A Dzstd_compress_literals.h24 ZSTD_strategy strategy, int disableLiteralCompression,
H A Dzstd_compress_sequences.h29 ZSTD_strategy const strategy);
/src/sys/contrib/zstd/zlibWrapper/
H A Dgzwrite.c50 MAX_WBITS + 16, DEF_MEM_LEVEL, state.state->strategy);
591 int ZEXPORT gzsetparams(file, level, strategy) in gzsetparams() argument
594 int strategy;
610 if (level == state.state->level && strategy == state.state->strategy)
625 deflateParams(strm, level, strategy);
628 state.state->strategy = strategy;
H A Dgzlib.c124 state.state->strategy = Z_DEFAULT_STRATEGY;
158 state.state->strategy = Z_FILTERED;
161 state.state->strategy = Z_HUFFMAN_ONLY;
164 state.state->strategy = Z_RLE;
167 state.state->strategy = Z_FIXED;
/src/contrib/llvm-project/llvm/include/llvm/Support/
H A DParallel.h30 extern ThreadPoolStrategy strategy;
34 if (parallel::strategy.ThreadsRequested == 1) \
220 if (parallel::strategy.ThreadsRequested != 1) {
241 if (parallel::strategy.ThreadsRequested != 1) { in parallelTransformReduce()
/src/sys/contrib/zstd/programs/
H A Dzstdcli.c596 …ngPtr, "strategy=") || longCommandWArg(&stringPtr, "strat=")) { params->strategy = (ZSTD_strategy)… in parseCompressionParameters()
607 …ch=%d, targetLength=%d, strategy=%d \n", params->minMatch, params->targetLength, params->strategy); in parseCompressionParameters()
669 assert(cParams.strategy < ZSTD_NB_STRATEGIES + 1); in printDefaultCParams()
670 …- strategy : %s (%u)\n", ZSTD_strategyMap[(int)cParams.strategy], (unsigned)cParams.strategy); in printDefaultCParams()
684 actualCParams.strategy = cParams->strategy == 0 ? actualCParams.strategy : cParams->strategy; in printActualCParams()
687 actualCParams.minMatch, actualCParams.targetLength, actualCParams.strategy); in printActualCParams()
/src/usr.sbin/bhyve/amd64/
H A De820.h42 const enum e820_allocation_strategy strategy);
/src/contrib/jemalloc/doc_internal/
H A DPROFILING_INTERNALS.md19 Suppose we have a sampling strategy that meets the following criteria:
33 This is a fairly general strategy; note that while we require that sampling decisions be independen…
55 We can use this formula to compare various strategy choices. All else being equal, lower-variance s…
61 An obvious strategy is to pick some large $N$, and give each allocation a $1/N$ chance of being sam…
86 ## Picking a sampling strategy
120strategy adapts. Do our actual choices for $p_Z$ closely correspond to the optimal ones? How close…

12345