Home
last modified time | relevance | path

Searched refs:best (Results 1 – 25 of 1238) sorted by relevance

12345678910>>...50

/third_party/node/deps/cares/src/lib/
Dinet_ntop.c113 struct { int base, len; } best, cur; in inet_ntop6() local
125 best.base = -1; in inet_ntop6()
126 best.len = 0; in inet_ntop6()
137 if (best.base == -1 || cur.len > best.len) in inet_ntop6()
138 best = cur; in inet_ntop6()
144 if (best.base == -1 || cur.len > best.len) in inet_ntop6()
145 best = cur; in inet_ntop6()
147 if (best.base != -1 && best.len < 2) in inet_ntop6()
148 best.base = -1; in inet_ntop6()
156 if (best.base != -1 && i >= best.base && in inet_ntop6()
[all …]
/third_party/icu/icu4c/source/test/intltest/
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()
[all …]
/third_party/libwebsockets/lib/core-net/
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->list); in _lws_dsh_alloc_tail()
191 s.best->dsh = s.dsh; in _lws_dsh_alloc_tail()
192 s.best->kind = kind; in _lws_dsh_alloc_tail()
[all …]
/third_party/libuv/src/
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.base != -1 && best.len < 2) in inet_ntop6()
111 best.base = -1; in inet_ntop6()
119 if (best.base != -1 && i >= best.base && in inet_ntop6()
[all …]
/third_party/flutter/skia/third_party/externals/imgui/misc/fonts/
Dbinary_to_compressed_c.cpp215 static int stb_not_crap(int best, int dist) in stb_not_crap() argument
217 return ((best > 2 && dist <= 0x00100) in stb_not_crap()
218 || (best > 5 && dist <= 0x04000) in stb_not_crap()
219 || (best > 7 && dist <= 0x80000)); in stb_not_crap()
255 int best = 2, dist=0; in stb_compress_chunk() local
266 if ((m = stb_matchlen(t, q, match_max)) > best) \ in stb_compress_chunk()
268 best = m, dist = q - (t) in stb_compress_chunk()
287 if (best > 2) in stb_compress_chunk()
291 if (best < 3) { // fast path literals in stb_compress_chunk()
293 } else if (best > 2 && best <= 0x80 && dist <= 0x100) { in stb_compress_chunk()
[all …]
/third_party/skia/third_party/externals/imgui/misc/fonts/
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()
296 if (best < 3) { // fast path literals in stb_compress_chunk()
298 } else if (best > 2 && best <= 0x80 && dist <= 0x100) { in stb_compress_chunk()
[all …]
/third_party/ffmpeg/libavcodec/
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[i]= score; in qpel_motion_search()
374 COPY3_IF_LT(dmin, d, best[0], x, best[1], y)\
397 best[0]=x;\
[all …]
Dlibvo-amrwbenc.c60 int i, best = -1, min_diff = 0; in get_wb_bitrate_mode() local
66 if (best < 0 || abs(rates[i] - bitrate) < min_diff) { in get_wb_bitrate_mode()
67 best = i; in get_wb_bitrate_mode()
75 av_strlcatf(log_buf, sizeof(log_buf), "using %.2fk", rates[best] / 1000.f); in get_wb_bitrate_mode()
78 return best; in get_wb_bitrate_mode()
/third_party/skia/third_party/externals/tint/tools/src/lut/
Dlut.go145 best := match{}
151 if best.len >= seq.count {
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.dst = 0
194 cp(best.dst, *best.src.offset, best.src.count)
195 newSize = max(newSize, best.dst+best.src.count)
[all …]
/third_party/mesa3d/src/gallium/drivers/radeonsi/
Dsi_test_dma_perf.c323 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()
395 if (!best || in si_test_dma_perf()
397 (prev->is_cp == best->is_cp && in si_test_dma_perf()
398 prev->is_cs == best->is_cs && prev->cache_policy == best->cache_policy && in si_test_dma_perf()
399 prev->dwords_per_thread == best->dwords_per_thread && in si_test_dma_perf()
400 prev->waves_per_sh == best->waves_per_sh) || in si_test_dma_perf()
[all …]
/third_party/musl/src/network/
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/gstreamer/gstplugins_good/gst/multipart/
Dmultipartmux.c432 GstMultipartPadData *best; in gst_multipart_mux_collected() local
456 best = gst_multipart_mux_queue_pads (mux); in gst_multipart_mux_collected()
457 if (!best) in gst_multipart_mux_collected()
460 else if (!best->buffer) in gst_multipart_mux_collected()
484 if (best->dts_timestamp != GST_CLOCK_TIME_NONE) { in gst_multipart_mux_collected()
485 time = best->dts_timestamp; in gst_multipart_mux_collected()
486 } else if (best->pts_timestamp != GST_CLOCK_TIME_NONE) { in gst_multipart_mux_collected()
487 time = best->pts_timestamp; in gst_multipart_mux_collected()
502 caps = gst_pad_get_current_caps (best->pad); in gst_multipart_mux_collected()
518 mux->boundary, mime, gst_buffer_get_size (best->buffer)); in gst_multipart_mux_collected()
[all …]
/third_party/gstreamer/gstplugins_good/gst/deinterlace/tvtime/tomsmocomp/
DWierdBob.inc21 // pavgb %%mm6, %%mm1 // avg(a,f), also best so far
22 V_PAVGB ("%%mm6", "%%mm1", "%%mm7", _ShiftMask) // avg(a,f), also best so far
26 "por %%mm1, %%mm7\n\t" // abs diff, also best so far
51 "por %%mm2, %%mm6\n\t" // and merge new & old vals keeping best
79 "por %%mm3, %%mm6\n\t" // and merge new & old vals keeping best
108 "por %%mm3, %%mm6\n\t" // and merge new & old vals keeping best
195 best[0] = (pBob[-2] + pBob[src_pitch2 + 2]) / 2;
197 best[1] = (pBob[-1] + pBob[src_pitch2 + 3]) / 2;
202 best[0] = (pBob[2] + pBob[src_pitch2 - 2]) / 2;
207 best[1] = (pBob[3] + pBob[src_pitch2 - 1]) / 2;
[all …]
DStrangeBob.inc329 best[0] = 0;
330 best[1] = 0;
334 best[0] = (pBob[-2] + pBob[src_pitch2 - 4]) / 2;
339 best[1] = (pBob[-1] + pBob[src_pitch2 - 3]) / 2;
346 best[0] = (pBob[4] + pBob[src_pitch2 - 4]) / 2;
352 best[1] = (pBob[5] + pBob[src_pitch2 - 3]) / 2;
359 best[0] = (pBob[2] + pBob[src_pitch2 - 2]) / 2;
365 best[1] = (pBob[3] + pBob[src_pitch2 - 1]) / 2;
372 best[0] = (pBob[-2] + pBob[src_pitch2 + 2]) / 2;
378 best[1] = (pBob[-1] + pBob[src_pitch2 + 3]) / 2;
[all …]
/third_party/skia/third_party/externals/libwebp/src/enc/
Dalpha_enc.c241 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.stats.lossless_features; in ApplyFiltersAndEncode()
273 stats->histogram_bits = best.stats.histogram_bits; in ApplyFiltersAndEncode()
274 stats->transform_bits = best.stats.transform_bits; in ApplyFiltersAndEncode()
275 stats->cache_bits = best.stats.cache_bits; in ApplyFiltersAndEncode()
[all …]
/third_party/flutter/skia/third_party/externals/libwebp/src/enc/
Dalpha_enc.c241 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.stats.lossless_features; in ApplyFiltersAndEncode()
273 stats->histogram_bits = best.stats.histogram_bits; in ApplyFiltersAndEncode()
274 stats->transform_bits = best.stats.transform_bits; in ApplyFiltersAndEncode()
275 stats->cache_bits = best.stats.cache_bits; in ApplyFiltersAndEncode()
[all …]
/third_party/gstreamer/gstplugins_bad/gst/mpegpsmux/
Dmpegpsmux.c447 MpegPsPadData *best = NULL; in mpegpsmux_choose_best_stream() local
469 if (best != NULL) { in mpegpsmux_choose_best_stream()
471 (best->last_ts != GST_CLOCK_TIME_NONE && in mpegpsmux_choose_best_stream()
472 ps_data->last_ts < best->last_ts)) { in mpegpsmux_choose_best_stream()
473 best = ps_data; in mpegpsmux_choose_best_stream()
477 best = ps_data; in mpegpsmux_choose_best_stream()
486 return best; in mpegpsmux_choose_best_stream()
509 MpegPsPadData *best = NULL; in mpegpsmux_collected() local
522 best = mpegpsmux_choose_best_stream (mux); in mpegpsmux_collected()
532 best = mpegpsmux_choose_best_stream (mux); in mpegpsmux_collected()
[all …]
/third_party/skia/tests/
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 < gMaxRecursion[2]) { in DEF_TEST()
[all …]
/third_party/flutter/skia/tests/
DStrokerTest.cpp151 int best = 0; in DEF_TEST() local
162 if (best < gMaxRecursion[2]) { in DEF_TEST()
170 best = gMaxRecursion[2]; in DEF_TEST()
179 SkDebugf("\n%s max quad=%d\n", __FUNCTION__, best); in DEF_TEST()
230 int best = 0; in DEF_TEST() local
254 if (best < gMaxRecursion[2]) { in DEF_TEST()
262 best = gMaxRecursion[2]; in DEF_TEST()
271 SkDebugf("\n%s max quad=%d\n", __FUNCTION__, best); in DEF_TEST()
340 int best = 0; in DEF_TEST() local
358 if (best < gMaxRecursion[2]) { in DEF_TEST()
[all …]
/third_party/pulseaudio/src/pulsecore/
Dcore.c316 pa_sink *best = NULL; in pa_core_update_default_sink() local
327 if (!best) { in pa_core_update_default_sink()
328 best = sink; in pa_core_update_default_sink()
332 if (compare_sinks(sink, best) > 0) in pa_core_update_default_sink()
333 best = sink; in pa_core_update_default_sink()
338 if (best == old_default_sink) in pa_core_update_default_sink()
341 core->default_sink = best; in pa_core_update_default_sink()
343 … old_default_sink ? old_default_sink->name : "(unset)", best ? best->name : "(unset)"); in pa_core_update_default_sink()
407 pa_source *best = NULL; in pa_core_update_default_source() local
418 if (!best) { in pa_core_update_default_source()
[all …]
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()
/third_party/mesa3d/src/gallium/frontends/clover/util/
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/ltp/testcases/lib/
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 + 1] = '\0'; in get_ipv6_network()
[all …]
/third_party/flutter/glfw/src/
Dwin32_monitor.c98 const GLFWvidmode* best; in _glfwSetVideoModeWin32() local
101 best = _glfwChooseVideoMode(monitor, desired); in _glfwSetVideoModeWin32()
103 if (_glfwCompareVideoModes(&current, best) == 0) in _glfwSetVideoModeWin32()
110 dm.dmPelsWidth = best->width; in _glfwSetVideoModeWin32()
111 dm.dmPelsHeight = best->height; in _glfwSetVideoModeWin32()
112 dm.dmBitsPerPel = best->redBits + best->greenBits + best->blueBits; in _glfwSetVideoModeWin32()
113 dm.dmDisplayFrequency = best->refreshRate; in _glfwSetVideoModeWin32()
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/
DLocaleMatcherTest.java185 ULocale best = matcher.getBestMatch("en_GB"); in testSupportedDefault() local
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() local
210 assertEquals("getBestMatch(en_GB)", "en_GB", locString(best)); in testUnsupportedDefault()
[all …]

12345678910>>...50