| /netbsd-src/external/bsd/libbind/dist/inet/ |
| H A D | inet_ntop.c | 129 struct { int base, len; } best, cur; local 141 best.base = -1; 142 best.len = 0; 153 if (best.base == -1 || cur.len > best.len) 154 best = cur; 160 if (best.base == -1 || cur.len > best.len) 161 best = cur; 163 if (best.base != -1 && best.len < 2) 164 best.base = -1; 172 if (best.base != -1 && i >= best.base && [all …]
|
| H A D | inet_cidr_ntop.c | 165 struct { int base, len; } best, cur; in inet_cidr_ntop_ipv6() local 182 best.base = -1; in inet_cidr_ntop_ipv6() 183 best.len = 0; in inet_cidr_ntop_ipv6() 194 if (best.base == -1 || cur.len > best.len) in inet_cidr_ntop_ipv6() 195 best = cur; in inet_cidr_ntop_ipv6() 201 if (best.base == -1 || cur.len > best.len) in inet_cidr_ntop_ipv6() 202 best = cur; in inet_cidr_ntop_ipv6() 204 if (best.base != -1 && best.len < 2) in inet_cidr_ntop_ipv6() 205 best.base = -1; in inet_cidr_ntop_ipv6() 213 if (best.base != -1 && i >= best.base && in inet_cidr_ntop_ipv6() [all …]
|
| /netbsd-src/external/gpl3/gdb/dist/gnulib/import/ |
| H A D | inet_ntop.c | 165 } best, cur; in inet_ntop6() local 177 best.base = -1; in inet_ntop6() 179 IF_LINT(best.len = 0); in inet_ntop6() 194 if (best.base == -1 || cur.len > best.len) in inet_ntop6() 195 best = cur; in inet_ntop6() 202 if (best.base == -1 || cur.len > best.len) in inet_ntop6() 203 best = cur; in inet_ntop6() 205 if (best.base != -1 && best.len < 2) in inet_ntop6() 206 best.base = -1; in inet_ntop6() 215 if (best.base != -1 && i >= best.base && i < (best.base + best.len)) in inet_ntop6() [all …]
|
| /netbsd-src/lib/libc/inet/ |
| H A D | inet_ntop.c | 135 struct { int base, len; } best, cur; in inet_ntop6() local 151 best.base = -1; in inet_ntop6() 152 best.len = 0; in inet_ntop6() 163 if (best.base == -1 || cur.len > best.len) in inet_ntop6() 164 best = cur; in inet_ntop6() 170 if (best.base == -1 || cur.len > best.len) in inet_ntop6() 171 best = cur; in inet_ntop6() 173 if (best.base != -1 && best.len < 2) in inet_ntop6() 174 best.base = -1; in inet_ntop6() 183 if (best.base != -1 && i >= best.base && in inet_ntop6() [all …]
|
| H A D | inet_cidr_ntop.c | 177 struct { int base, len; } best, cur; in inet_cidr_ntop_ipv6() local 194 best.base = -1; in inet_cidr_ntop_ipv6() 195 best.len = 0; in inet_cidr_ntop_ipv6() 206 if (best.base == -1 || cur.len > best.len) in inet_cidr_ntop_ipv6() 207 best = cur; in inet_cidr_ntop_ipv6() 213 if (best.base == -1 || cur.len > best.len) in inet_cidr_ntop_ipv6() 214 best = cur; in inet_cidr_ntop_ipv6() 216 if (best.base != -1 && best.len < 2) in inet_cidr_ntop_ipv6() 217 best.base = -1; in inet_cidr_ntop_ipv6() 225 if (best.base != -1 && i >= best.base && in inet_cidr_ntop_ipv6() [all …]
|
| /netbsd-src/external/bsd/unbound/dist/compat/ |
| H A D | inet_ntop.c | 124 struct { int base, len; } best, cur; in inet_ntop6() local 137 best.base = -1; in inet_ntop6() 138 best.len = 0; in inet_ntop6() 149 if (best.base == -1 || cur.len > best.len) in inet_ntop6() 150 best = cur; in inet_ntop6() 156 if (best.base == -1 || cur.len > best.len) in inet_ntop6() 157 best = cur; in inet_ntop6() 159 if (best.base != -1 && best.len < 2) in inet_ntop6() 160 best.base = -1; in inet_ntop6() 169 if (best.base != -1 && i >= best.base && in inet_ntop6() [all …]
|
| /netbsd-src/external/bsd/nsd/dist/compat/ |
| H A D | inet_ntop.c | 116 struct { int base, len; } best, cur; in inet_ntop6() local 129 best.base = -1; in inet_ntop6() 139 if (best.base == -1 || cur.len > best.len) in inet_ntop6() 140 best = cur; in inet_ntop6() 146 if (best.base == -1 || cur.len > best.len) in inet_ntop6() 147 best = cur; in inet_ntop6() 149 if (best.base != -1 && best.len < 2) in inet_ntop6() 150 best.base = -1; in inet_ntop6() 159 if (best.base != -1 && i >= best.base && in inet_ntop6() 160 i < (best.base + best.len)) { in inet_ntop6() [all …]
|
| /netbsd-src/external/mit/libuv/dist/src/ |
| H A D | inet.c | 76 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 …]
|
| /netbsd-src/sys/dev/videomode/ |
| H A D | pickmode.c | 47 const struct videomode *this, *best = NULL; in pick_mode_by_dotclock() local 57 if (best != NULL) { in pick_mode_by_dotclock() 58 if (this->dot_clock > best->dot_clock) in pick_mode_by_dotclock() 59 best = this; in pick_mode_by_dotclock() 61 best = this; in pick_mode_by_dotclock() 63 if (best != NULL) in pick_mode_by_dotclock() 64 DPRINTF("found %s\n", best->name); in pick_mode_by_dotclock() 66 return best; in pick_mode_by_dotclock() 72 const struct videomode *this, *best = NULL; in pick_mode_by_ref() local 85 if (best != NULL) { in pick_mode_by_ref() [all …]
|
| /netbsd-src/sys/external/bsd/drm2/dist/drm/nouveau/nvkm/subdev/bios/ |
| H A D | nouveau_nvkm_subdev_bios_shadow.c | 185 }, *mthd, *best = NULL; in nvbios_shadow() local 198 best = mthd; in nvbios_shadow() 205 if (!best && (best = mthd)) { in nvbios_shadow() 211 if (!best->score) { in nvbios_shadow() 219 if (!best || !best->score) { in nvbios_shadow() 220 for (mthd = mthds, best = mthd; mthd->func; mthd++) { in nvbios_shadow() 221 if (!mthd->skip || best->score < mthd->skip) { in nvbios_shadow() 223 if (mthd->score > best->score) in nvbios_shadow() 224 best = mthd; in nvbios_shadow() 232 if (mthd != best) in nvbios_shadow() [all …]
|
| /netbsd-src/external/gpl2/gmake/dist/ |
| H A D | strcache.c | 60 struct strcache *best = NULL; in add_string() local 74 if (sp->bytesfree > len && (!best || best->bytesfree > sp->bytesfree)) in add_string() 75 best = sp; in add_string() 78 if (!best) in add_string() 79 best = new_cache(); in add_string() 81 assert (best->bytesfree > len); in add_string() 84 res = best->end; in add_string() 85 memcpy (best->end, str, len); in add_string() 86 best->end += len; in add_string() 87 *(best->end++) = '\0'; in add_string() [all …]
|
| /netbsd-src/external/mit/isl/dist/ |
| H A D | isl_blk.c | 81 int best = 0; in isl_blk_alloc() local 82 for (i = 1; ctx->cache[best].size != n && i < ctx->n_cached; ++i) { in isl_blk_alloc() 83 if (ctx->cache[best].size < n) { in isl_blk_alloc() 84 if (ctx->cache[i].size > ctx->cache[best].size) in isl_blk_alloc() 85 best = i; in isl_blk_alloc() 87 ctx->cache[i].size < ctx->cache[best].size) in isl_blk_alloc() 88 best = i; in isl_blk_alloc() 90 if (ctx->cache[best].size < 2 * n + 100) { in isl_blk_alloc() 91 block = ctx->cache[best]; in isl_blk_alloc() 92 if (--ctx->n_cached != best) in isl_blk_alloc() [all …]
|
| /netbsd-src/external/gpl3/gcc/dist/gcc/ |
| H A D | tracer.cc | 164 edge best = NULL; in find_best_successor() local 171 if (!best || better_p (e, best)) in find_best_successor() 172 best = e; in find_best_successor() 174 if (!best || ignore_bb_p (best->dest)) in find_best_successor() 176 if (!best->probability.initialized_p () in find_best_successor() 177 || best->probability.to_reg_br_prob_base () <= probability_cutoff) in find_best_successor() 179 return best; in find_best_successor() 188 edge best = NULL; in find_best_predecessor() local 195 if (!best || better_p (e, best)) in find_best_predecessor() 196 best = e; in find_best_predecessor() [all …]
|
| H A D | bb-reorder.cc | 1101 edge e, best; in connect_traces() local 1129 best = NULL; in connect_traces() 1141 && connect_better_edge_p (e, true, best_len, best, traces)) in connect_traces() 1143 best = e; in connect_traces() 1147 if (best) in connect_traces() 1149 best->src->aux = best->dest; in connect_traces() 1150 t2 = bbd[best->src->index].end_of_trace; in connect_traces() 1156 best->src->index, best->dest->index); in connect_traces() 1172 best = NULL; in connect_traces() 1184 && connect_better_edge_p (e, false, best_len, best, traces)) in connect_traces() [all …]
|
| /netbsd-src/external/gpl3/gcc.old/dist/gcc/ |
| H A D | tracer.c | 150 edge best = NULL; in find_best_successor() local 157 if (!best || better_p (e, best)) in find_best_successor() 158 best = e; in find_best_successor() 160 if (!best || ignore_bb_p (best->dest)) in find_best_successor() 162 if (!best->probability.initialized_p () in find_best_successor() 163 || best->probability.to_reg_br_prob_base () <= probability_cutoff) in find_best_successor() 165 return best; in find_best_successor() 174 edge best = NULL; in find_best_predecessor() local 181 if (!best || better_p (e, best)) in find_best_predecessor() 182 best = e; in find_best_predecessor() [all …]
|
| H A D | bb-reorder.c | 1101 edge e, best; in connect_traces() local 1129 best = NULL; in connect_traces() 1141 && connect_better_edge_p (e, true, best_len, best, traces)) in connect_traces() 1143 best = e; in connect_traces() 1147 if (best) in connect_traces() 1149 best->src->aux = best->dest; in connect_traces() 1150 t2 = bbd[best->src->index].end_of_trace; in connect_traces() 1156 best->src->index, best->dest->index); in connect_traces() 1172 best = NULL; in connect_traces() 1184 && connect_better_edge_p (e, false, best_len, best, traces)) in connect_traces() [all …]
|
| /netbsd-src/external/gpl2/groff/dist/src/devices/xditview/ |
| H A D | font.c | 60 DviFontSizeList *fs, *best = 0, *smallest = 0; in LookupFontSizeBySize() local 69 for (best = f->sizes; best; best = best->next) in LookupFontSizeBySize() 70 if (best->size == decipointsize) in LookupFontSizeBySize() 71 return best; in LookupFontSizeBySize() 72 best = (DviFontSizeList *) XtMalloc(sizeof *best); in LookupFontSizeBySize() 73 best->next = f->sizes; in LookupFontSizeBySize() 74 best->size = decipointsize; in LookupFontSizeBySize() 75 f->sizes = best; in LookupFontSizeBySize() 85 best->x_name = savestr (fontNameString); in LookupFontSizeBySize() 86 best->doesnt_exist = 0; in LookupFontSizeBySize() [all …]
|
| /netbsd-src/sys/external/bsd/drm2/dist/drm/ |
| H A D | drm_vma_manager.c | 149 struct drm_mm_node *node, *best; in drm_vma_offset_lookup_locked() local 154 best = NULL; in drm_vma_offset_lookup_locked() 161 best = node; in drm_vma_offset_lookup_locked() 170 if (best) { in drm_vma_offset_lookup_locked() 171 offset = best->start + best->size; in drm_vma_offset_lookup_locked() 173 best = NULL; in drm_vma_offset_lookup_locked() 176 if (!best) in drm_vma_offset_lookup_locked() 179 return container_of(best, struct drm_vma_offset_node, vm_node); in drm_vma_offset_lookup_locked()
|
| /netbsd-src/external/lgpl3/mpc/dist/ |
| H A D | TODO | 48 10000 loops, best of 3: 42.2 us per loop 50 100 loops, best of 3: 5.29 ms per loop 54 10000 loops, best of 3: 83.7 us per loop 56 100 loops, best of 3: 17 ms per loop 61 10000 loops, best of 3: 90.8 us per loop 63 1 loops, best of 3: 2.29 s per loop 67 10000 loops, best of 3: 84 us per loop 69 100 loops, best of 3: 2.1 ms per loop 72 10000 loops, best of 3: 92 us per loop 74 1 loops, best of 3: 2.28 s per loop
|
| /netbsd-src/external/apache2/llvm/dist/clang/utils/ |
| H A D | FindSpecRefs | 604 best = None 625 if best is None or dist < best[0]: 626 best = (dist, (section, name, page)) 627 return best[1] 637 best = None 641 if best is None or dist < best[0]: 642 best = (dist,'l'+m.group(1)) 644 if best is not None: 645 return best[1]
|
| /netbsd-src/external/zlib/pigz/dist/zopfli/ |
| H A D | blocksplitter.c | 46 double best = ZOPFLI_LARGE_FLOAT; in FindMinimum() local 51 if (v < best) { in FindMinimum() 52 best = v; in FindMinimum() 64 double best; in FindMinimum() local 76 best = vp[0]; in FindMinimum() 78 if (vp[i] < best) { in FindMinimum() 79 best = vp[i]; in FindMinimum() 83 if (best > lastbest) break; in FindMinimum() 89 lastbest = best; in FindMinimum()
|
| /netbsd-src/sys/dev/isapnp/ |
| H A D | isapnp.c | 393 * Return the best configuration for each logical device, remove and 399 struct isapnp_attach_args *c, *best, *f = *ipa; in isapnp_bestconfig() local 408 /* Find the best config */ in isapnp_bestconfig() 409 for (best = c = f; c != NULL; c = c->ipa_sibling) { in isapnp_bestconfig() 412 if (c->ipa_pref < best->ipa_pref) in isapnp_bestconfig() 413 best = c; in isapnp_bestconfig() 418 * it to test the best config! in isapnp_bestconfig() 420 best->ipa_ic = sc->sc_ic; in isapnp_bestconfig() 422 /* Test the best config */ in isapnp_bestconfig() 423 error = isapnp_testconfig(sc->sc_iot, sc->sc_memt, best, in isapnp_bestconfig() [all...] |
| /netbsd-src/crypto/external/bsd/openssh/dist/ |
| H A D | dh.c | 164 int best, bestcount, which, linenum; in choose_dh() local 174 best = bestcount = 0; in choose_dh() 185 if ((dhg.size > wantbits && dhg.size < best) || in choose_dh() 186 (dhg.size > best && best < wantbits)) { in choose_dh() 187 best = dhg.size; in choose_dh() 190 if (dhg.size == best) in choose_dh() 213 dhg.size != best || in choose_dh()
|
| /netbsd-src/external/gpl3/binutils.old/dist/bfd/ |
| H A D | cpu-sh.c | 158 unsigned int best = ~arch_set; in sh_get_bfd_mach_from_arch_set() local 182 if (((try & ~arch_set) < (best & ~arch_set) in sh_get_bfd_mach_from_arch_set() 183 || ((try & ~arch_set) == (best & ~arch_set) in sh_get_bfd_mach_from_arch_set() 184 && (~try & arch_set) < (~best & arch_set))) in sh_get_bfd_mach_from_arch_set() 188 best = try; in sh_get_bfd_mach_from_arch_set()
|
| /netbsd-src/external/gpl3/binutils/dist/bfd/ |
| H A D | cpu-sh.c | 152 unsigned int best = ~arch_set; in sh_get_bfd_mach_from_arch_set() local 176 if (((try & ~arch_set) < (best & ~arch_set) in sh_get_bfd_mach_from_arch_set() 177 || ((try & ~arch_set) == (best & ~arch_set) in sh_get_bfd_mach_from_arch_set() 178 && (~try & arch_set) < (~best & arch_set))) in sh_get_bfd_mach_from_arch_set() 182 best = try; in sh_get_bfd_mach_from_arch_set()
|