Home
last modified time | relevance | path

Searched refs:best (Results 1 - 25 of 107) sorted by relevance

12345

/third_party/node/deps/cares/src/lib/
H A Dinet_ntop.c118 } best, cur; in inet_ntop6() local
132 best.base = -1; in inet_ntop6()
133 best.len = 0; in inet_ntop6()
145 if (best.base == -1 || cur.len > best.len) { in inet_ntop6()
146 best = cur; in inet_ntop6()
153 if (best.base == -1 || cur.len > best.len) { in inet_ntop6()
154 best = cur; in inet_ntop6()
157 if (best in inet_ntop6()
[all...]
/third_party/curl/lib/
H A Dinet_ntop.c101 } best, cur; in inet_ntop6() local
113 best.base = -1; in inet_ntop6()
115 best.len = 0; in inet_ntop6()
127 if(best.base == -1 || cur.len > best.len) in inet_ntop6()
128 best = cur; in inet_ntop6()
132 if((cur.base != -1) && (best.base == -1 || cur.len > best.len)) in inet_ntop6()
133 best = cur; in inet_ntop6()
134 if(best in inet_ntop6()
[all...]
/third_party/icu/icu4c/source/test/intltest/
H A Dlocalematchertest.cpp100 const Locale *best = matcher.getBestMatch(Locale::getFrench(), errorCode); in testEmpty() local
101 assertEquals("getBestMatch(fr)", "(null)", locString(best)); in testEmpty()
130 const Locale *best = matcher.getBestMatch("en_GB", errorCode); in testBasics() local
131 assertEquals("fromRange.getBestMatch(en_GB)", "en_GB", locString(best)); in testBasics()
132 best = matcher.getBestMatch("en_US", errorCode); in testBasics()
133 assertEquals("fromRange.getBestMatch(en_US)", "en", locString(best)); in testBasics()
134 best = matcher.getBestMatch("fr_FR", errorCode); in testBasics()
135 assertEquals("fromRange.getBestMatch(fr_FR)", "fr", locString(best)); in testBasics()
136 best = matcher.getBestMatch("ja_JP", errorCode); in testBasics()
137 assertEquals("fromRange.getBestMatch(ja_JP)", "fr", locString(best)); in testBasics()
144 const Locale *best = matcher.getBestMatch("en_GB", errorCode); testBasics() local
157 const Locale *best = matcher.getBestMatch("en_GB", errorCode); testBasics() local
174 const Locale *best = matcher.getBestMatch("en_GB", errorCode); testBasics() local
189 const Locale *best = matcher.getBestMatch("en_GB", errorCode); testBasics() local
203 const Locale *best = matcher.getBestMatchForListString("el, fr, fr;q=0, en-GB", errorCode); testBasics() local
221 const Locale *best = matcher.getBestMatch("en_GB", errorCode); testBasics() local
270 const Locale *best = matcher.getBestMatch("en_GB", errorCode); testSupportedDefault() local
294 const Locale *best = matcher.getBestMatch("en_GB", errorCode); testUnsupportedDefault() local
317 const Locale *best = matcher.getBestMatch("en_GB", errorCode); testNoDefault() local
[all...]
/third_party/libuv/src/
H A Dinet.c71 struct { int base, len; } best, cur; in inet_ntop6() local
83 best.base = -1; in inet_ntop6()
84 best.len = 0; in inet_ntop6()
95 if (best.base == -1 || cur.len > best.len) in inet_ntop6()
96 best = cur; in inet_ntop6()
102 if (best.base == -1 || cur.len > best.len) in inet_ntop6()
103 best = cur; in inet_ntop6()
105 if (best in inet_ntop6()
[all...]
/third_party/node/deps/uv/src/
H A Dinet.c76 struct { int base, len; } best, cur; in inet_ntop6() local
88 best.base = -1; in inet_ntop6()
89 best.len = 0; in inet_ntop6()
100 if (best.base == -1 || cur.len > best.len) in inet_ntop6()
101 best = cur; in inet_ntop6()
107 if (best.base == -1 || cur.len > best.len) in inet_ntop6()
108 best = cur; in inet_ntop6()
110 if (best in inet_ntop6()
[all...]
/third_party/libwebsockets/lib/core-net/
H A Dlws-dsh.c30 lws_dsh_obj_t *best; member
115 (!s->best || obj->asize < s->best->asize)) { in search_best_free()
116 s->best = obj; in search_best_free()
166 s.best = NULL; in _lws_dsh_alloc_tail()
173 if (!s.best) { in _lws_dsh_alloc_tail()
180 assert(!(((unsigned long)s.best) & (sizeof(int *) - 1))); in _lws_dsh_alloc_tail()
182 if (s.best->asize < asize + (2 * sizeof(*s.best))) { in _lws_dsh_alloc_tail()
190 lws_dll2_remove(&s.best in _lws_dsh_alloc_tail()
[all...]
/third_party/skia/third_party/externals/imgui/misc/fonts/
H A Dbinary_to_compressed_c.cpp220 static int stb_not_crap(int best, int dist) in stb_not_crap() argument
222 return ((best > 2 && dist <= 0x00100) in stb_not_crap()
223 || (best > 5 && dist <= 0x04000) in stb_not_crap()
224 || (best > 7 && dist <= 0x80000)); in stb_not_crap()
260 int best = 2, dist=0; in stb_compress_chunk() local
271 if ((m = stb_matchlen(t, q, match_max)) > best) \ in stb_compress_chunk()
273 best = m, dist = q - (t) in stb_compress_chunk()
292 if (best > 2) in stb_compress_chunk()
295 // see if our best match qualifies in stb_compress_chunk()
296 if (best < in stb_compress_chunk()
[all...]
/third_party/mesa3d/src/gallium/drivers/radeonsi/
H A Dsi_test_dma_perf.c284 /* Analyze results and find the best methods. */ in si_test_dma_perf()
316 /* The list of best chosen methods. */ in si_test_dma_perf()
322 /* Find the best method. */ in si_test_dma_perf()
323 struct si_result *best = NULL; in si_test_dma_perf() local
367 if (!best) { in si_test_dma_perf()
368 best = r; in si_test_dma_perf()
378 if (best->score * min_improvement < r->score) in si_test_dma_perf()
379 best = r; in si_test_dma_perf()
388 /* If the best one is also the best fo in si_test_dma_perf()
417 struct si_result *best = methods[i]; si_test_dma_perf() local
[all...]
/third_party/skia/third_party/externals/tint/tools/src/lut/
H A Dlut.go145 best := match{}
151 if best.len >= seq.count {
152 // The best match is already at least as long as this
153 // sequence and sequences are sorted by size, so best cannot
166 if best.len < count {
168 best = match{shift, seq, count, i}
174 if best.src.offset == nil {
180 if best.dst < 0 {
183 n := -best.dst
187 best
[all...]
/third_party/ffmpeg/libavcodec/
H A Dmotion_est_template.c255 int best[8]; in qpel_motion_search() local
258 memset(best, 64, sizeof(int)*8); in qpel_motion_search()
282 if(score < best[i]){ in qpel_motion_search()
283 memmove(&best[i+1], &best[i], sizeof(int)*(7-i)); in qpel_motion_search()
285 best[i]= score; in qpel_motion_search()
330 if(score < best[i]){ in qpel_motion_search()
331 memmove(&best[i+1], &best[i], sizeof(int)*(7-i)); in qpel_motion_search()
333 best[ in qpel_motion_search()
416 small_diamond_search(MpegEncContext * s, int *best, int dmin, int src_index, int ref_index, const int penalty_factor, int size, int h, int flags) small_diamond_search() argument
457 funny_diamond_search(MpegEncContext * s, int *best, int dmin, int src_index, int ref_index, const int penalty_factor, int size, int h, int flags) funny_diamond_search() argument
499 hex_search(MpegEncContext * s, int *best, int dmin, int src_index, int ref_index, const int penalty_factor, int size, int h, int flags, int dia_size) hex_search() argument
533 l2s_dia_search(MpegEncContext * s, int *best, int dmin, int src_index, int ref_index, const int penalty_factor, int size, int h, int flags) l2s_dia_search() argument
571 umh_search(MpegEncContext * s, int *best, int dmin, int src_index, int ref_index, const int penalty_factor, int size, int h, int flags) umh_search() argument
618 full_search(MpegEncContext * s, int *best, int dmin, int src_index, int ref_index, const int penalty_factor, int size, int h, int flags) full_search() argument
681 sab_diamond_search(MpegEncContext * s, int *best, int dmin, int src_index, int ref_index, const int penalty_factor, int size, int h, int flags) sab_diamond_search() argument
771 var_diamond_search(MpegEncContext * s, int *best, int dmin, int src_index, int ref_index, const int penalty_factor, int size, int h, int flags) var_diamond_search() argument
832 diamond_search(MpegEncContext * s, int *best, int dmin, int src_index, int ref_index, const int penalty_factor, int size, int h, int flags) diamond_search() argument
865 int best[2]={0, 0}; /**< x and y coordinates of the best motion vector. epzs_motion_search_internal() local
999 int best[2]={0, 0}; epzs_motion_search2() local
[all...]
H A Dimgconvert.c36 enum AVPixelFormat best = AV_PIX_FMT_NONE; in avcodec_find_best_pix_fmt_of_list() local
41 best = av_find_best_pix_fmt_of_2(best, pix_fmt_list[i], src_pix_fmt, has_alpha, &loss); in avcodec_find_best_pix_fmt_of_list()
46 return best; in avcodec_find_best_pix_fmt_of_list()
H A Dlibvo-amrwbenc.c61 int i, best = -1, min_diff = 0; in get_wb_bitrate_mode() local
67 if (best < 0 || abs(rates[i] - bitrate) < min_diff) { in get_wb_bitrate_mode()
68 best = i; in get_wb_bitrate_mode()
76 av_strlcatf(log_buf, sizeof(log_buf), "using %.2fk", rates[best] / 1000.f); in get_wb_bitrate_mode()
79 return best; in get_wb_bitrate_mode()
/third_party/musl/src/network/
H A Dinet_ntop.c10 int i, j, max, best; in inet_ntop() local
34 for (i=best=0, max=2; buf[i]; i++) { in inet_ntop()
37 if (j>max) best=i, max=j; in inet_ntop()
40 buf[best] = buf[best+1] = ':'; in inet_ntop()
41 memmove(buf+best+2, buf+best+max, i-best-max+1); in inet_ntop()
/third_party/skia/tests/
H A DStrokerTest.cpp153 int best = 0; in DEF_TEST() local
164 if (best < gMaxRecursion[2]) { in DEF_TEST()
172 best = gMaxRecursion[2]; in DEF_TEST()
181 SkDebugf("\n%s max quad=%d\n", __FUNCTION__, best); in DEF_TEST()
232 int best = 0; in DEF_TEST() local
256 if (best < gMaxRecursion[2]) { in DEF_TEST()
264 best = gMaxRecursion[2]; in DEF_TEST()
273 SkDebugf("\n%s max quad=%d\n", __FUNCTION__, best); in DEF_TEST()
342 int best = 0; in DEF_TEST() local
360 if (best < gMaxRecursio in DEF_TEST()
387 int best[2] = { 0 }; DEF_TEST() local
[all...]
/third_party/skia/third_party/externals/libwebp/src/enc/
H A Dalpha_enc.c33 // prediction modes 0 to 3 and pick the best one.
206 // Quick estimate of the best candidate. in GetFilterMap()
216 // For large number of colors, try FILTER_NONE in addition to the best in GetFilterMap()
241 FilterTrial best; in ApplyFiltersAndEncode() local
244 InitFilterTrial(&best); in ApplyFiltersAndEncode()
256 if (ok && trial.score < best.score) { in ApplyFiltersAndEncode()
257 VP8BitWriterWipeOut(&best.bw); in ApplyFiltersAndEncode()
258 best = trial; in ApplyFiltersAndEncode()
267 reduce_levels, effort_level, NULL, &best); in ApplyFiltersAndEncode()
272 stats->lossless_features = best in ApplyFiltersAndEncode()
[all...]
/third_party/pulseaudio/src/pulsecore/
H A Dcore.c351 * them is already the default sink? If so, it's best to keep it as the in compare_sinks()
362 pa_sink *best = NULL; in pa_core_update_default_sink() local
373 if (!best) { in pa_core_update_default_sink()
374 best = sink; in pa_core_update_default_sink()
378 if (compare_sinks(sink, best) > 0) in pa_core_update_default_sink()
379 best = sink; in pa_core_update_default_sink()
384 if (best == old_default_sink) in pa_core_update_default_sink()
387 core->default_sink = best; in pa_core_update_default_sink()
389 old_default_sink ? old_default_sink->name : "(unset)", best ? best in pa_core_update_default_sink()
453 pa_source *best = NULL; pa_core_update_default_source() local
[all...]
H A Ddevice-port.c255 pa_device_port *p, *best = NULL; in pa_device_port_find_best() local
265 if (!best || p->priority > best->priority) in pa_device_port_find_best()
266 best = p; in pa_device_port_find_best()
270 if (!best) { in pa_device_port_find_best()
272 if (!best || p->priority > best->priority) in pa_device_port_find_best()
273 best = p; in pa_device_port_find_best()
276 return best; in pa_device_port_find_best()
H A Dcard.c212 pa_card_profile *best = NULL; in pa_card_choose_initial_profile() local
226 if (!best || profile->priority > best->priority) in pa_card_choose_initial_profile()
227 best = profile; in pa_card_choose_initial_profile()
230 if (!best) { in pa_card_choose_initial_profile()
232 if (!best || profile->priority > best->priority) in pa_card_choose_initial_profile()
233 best = profile; in pa_card_choose_initial_profile()
236 pa_assert(best); in pa_card_choose_initial_profile()
238 card->active_profile = best; in pa_card_choose_initial_profile()
[all...]
/third_party/mesa3d/src/gallium/frontends/clover/util/
H A Dfactor.hpp117 auto best = std::make_pair(T(1), std::vector<T>(grid.size(), T(1))); in find_grid_optimal_factor() local
119 for (auto block = best; in find_grid_optimal_factor()
120 block.first != 0 && best.first != product_limit; in find_grid_optimal_factor()
122 if (block.first > best.first) in find_grid_optimal_factor()
123 best = block; in find_grid_optimal_factor()
126 return best.second; in find_grid_optimal_factor()
/third_party/lame/libmp3lame/
H A Dquantize.c587 const calc_noise_result * const best, in quant_compare()
603 if (best->over_count > 0) { in quant_compare()
605 better = calc->over_SSD <= best->over_SSD; in quant_compare()
606 if (calc->over_SSD == best->over_SSD) in quant_compare()
607 better = calc->bits < best->bits; in quant_compare()
613 (best->max_noise * 10 + best->bits))); in quant_compare()
619 better = calc->over_count < best->over_count in quant_compare()
620 || (calc->over_count == best->over_count && calc->over_noise < best in quant_compare()
586 quant_compare(const int quant_comp, const calc_noise_result * const best, calc_noise_result * const calc, const gr_info * const gi, const FLOAT * distort) quant_compare() argument
[all...]
/third_party/ltp/testcases/lib/
H A Dtst_net_vars.c324 unsigned int i, j, max, best, border = 0; in get_ipv6_network() local
367 for (i = best = 0, max = 2; buf[i]; i++) { in get_ipv6_network()
373 best = i, max = j; in get_ipv6_network()
377 size_t best_end = best + max - 1; in get_ipv6_network()
379 if (max > 2 && best < border) { in get_ipv6_network()
382 if (best == 0 && best_end >= border) { in get_ipv6_network()
386 } else if (best == 0 && best_end < border) { in get_ipv6_network()
391 } else if (best > 0 && best_end >= border) { in get_ipv6_network()
396 ret[best] = ':'; in get_ipv6_network()
397 ret[best in get_ipv6_network()
[all...]
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/
H A DLocaleMatcherTest.java185 ULocale best = matcher.getBestMatch("en_GB"); in testSupportedDefault()
186 assertEquals("getBestMatch(en_GB)", "en_GB", locString(best)); in testSupportedDefault()
187 best = matcher.getBestMatch("en_US"); in testSupportedDefault()
188 assertEquals("getBestMatch(en_US)", "en", locString(best)); in testSupportedDefault()
189 best = matcher.getBestMatch("fr_FR"); in testSupportedDefault()
190 assertEquals("getBestMatch(fr_FR)", "fr", locString(best)); in testSupportedDefault()
191 best = matcher.getBestMatch("ja_JP"); in testSupportedDefault()
192 assertEquals("getBestMatch(ja_JP)", "en_GB", locString(best)); in testSupportedDefault()
209 ULocale best = matcher.getBestMatch("en_GB"); in testUnsupportedDefault()
210 assertEquals("getBestMatch(en_GB)", "en_GB", locString(best)); in testUnsupportedDefault()
[all...]
/third_party/ninja/misc/
H A Dmeasure.py44 best = min(samples)
47 err = sum(s - best for s in samples) / float(len(samples))
48 print('estimate: %dms (mean err %.1fms)' % (best, err))
/third_party/ffmpeg/libavutil/tests/
H A Dpixfmt_best.c44 enum AVPixelFormat best = AV_PIX_FMT_NONE; in find_best() local
47 best = av_find_best_pix_fmt_of_2(best, pixfmt_list[i], in find_best()
49 return best; in find_best()
/third_party/glfw/src/
H A Dwin32_monitor.c252 const GLFWvidmode* best; in _glfwSetVideoModeWin32() local
256 best = _glfwChooseVideoMode(monitor, desired); in _glfwSetVideoModeWin32()
258 if (_glfwCompareVideoModes(&current, best) == 0) in _glfwSetVideoModeWin32()
265 dm.dmPelsWidth = best->width; in _glfwSetVideoModeWin32()
266 dm.dmPelsHeight = best->height; in _glfwSetVideoModeWin32()
267 dm.dmBitsPerPel = best->redBits + best->greenBits + best->blueBits; in _glfwSetVideoModeWin32()
268 dm.dmDisplayFrequency = best->refreshRate; in _glfwSetVideoModeWin32()

Completed in 16 milliseconds

12345