/freebsd-current/sys/libkern/ |
H A D | inet_ntop.c | 97 struct { int base, len; } best, cur; local 111 best.base = -1; 112 best.len = 0; 123 if (best.base == -1 || cur.len > best.len) 124 best = cur; 130 if (best.base == -1 || cur.len > best.len) 131 best = cur; 133 if (best [all...] |
/freebsd-current/contrib/ntp/libntp/lib/isc/ |
H A D | inet_ntop.c | 124 struct { int base, len; } best, cur; local 136 best.base = -1; 138 best.len = cur.len = 0; 147 if (best.base == -1 || cur.len > best.len) 148 best = cur; 154 if (best.base == -1 || cur.len > best.len) 155 best = cur; 157 if (best [all...] |
/freebsd-current/lib/libc/inet/ |
H A D | inet_ntop.c | 111 struct { int base, len; } best, cur; local 123 best.base = -1; 124 best.len = 0; 135 if (best.base == -1 || cur.len > best.len) 136 best = cur; 142 if (best.base == -1 || cur.len > best.len) 143 best = cur; 145 if (best [all...] |
H A D | inet_cidr_ntop.c | 161 struct { int base, len; } best, cur; local 178 best.base = -1; 179 best.len = 0; 190 if (best.base == -1 || cur.len > best.len) 191 best = cur; 197 if (best.base == -1 || cur.len > best.len) 198 best = cur; 200 if (best [all...] |
/freebsd-current/contrib/ldns/compat/ |
H A D | inet_ntop.c | 124 struct { int base, len; } best, cur; local 137 best.base = -1; 138 best.len = 0; 149 if (best.base == -1 || cur.len > best.len) 150 best = cur; 156 if (best.base == -1 || cur.len > best.len) 157 best = cur; 159 if (best [all...] |
/freebsd-current/contrib/unbound/compat/ |
H A D | inet_ntop.c | 124 struct { int base, len; } best, cur; local 137 best.base = -1; 138 best.len = 0; 149 if (best.base == -1 || cur.len > best.len) 150 best = cur; 156 if (best.base == -1 || cur.len > best.len) 157 best = cur; 159 if (best [all...] |
/freebsd-current/contrib/tcpdump/ |
H A D | addrtostr.c | 115 } best, cur; local 126 best.len = 0; 127 best.base = -1; 140 if (best.base == -1 || cur.len > best.len) 141 best = cur; 145 if ((cur.base != -1) && (best.base == -1 || cur.len > best.len)) 146 best = cur; 147 if (best [all...] |
/freebsd-current/crypto/openssh/openbsd-compat/ |
H A D | inet_ntop.c | 118 struct { int base, len; } best, cur; local 131 best.base = -1; 141 if (best.base == -1 || cur.len > best.len) 142 best = cur; 148 if (best.base == -1 || cur.len > best.len) 149 best = cur; 151 if (best.base != -1 && best [all...] |
/freebsd-current/sys/dev/videomode/ |
H A D | pickmode.c | 45 const struct videomode *this, *best = NULL; local 55 if (best != NULL) { 56 if (this->dot_clock > best->dot_clock) 57 best = this; 59 best = this; 61 if (best != NULL) 62 DPRINTF("found %s\n", best->name); 64 return best; 70 const struct videomode *this, *best = NULL; local 82 if (best ! [all...] |
/freebsd-current/sys/contrib/zstd/lib/dictBuilder/ |
H A D | cover.h | 28 * 2. Saving the best parameters and dictionary. 107 void COVER_best_init(COVER_best_t *best); 112 void COVER_best_wait(COVER_best_t *best); 117 void COVER_best_destroy(COVER_best_t *best); 123 void COVER_best_start(COVER_best_t *best); 128 * If this dictionary is the best so far save it and its parameters. 130 void COVER_best_finish(COVER_best_t *best, ZDICT_cover_params_t parameters,
|
H A D | cover.c | 403 * Selects the best segment in an epoch. 421 /* Try each segment (activeSegment) and save the best (bestSegment) */ 431 * Save the best segment in bestSegment. 462 /* If this segment is the best so far save it */ 722 /* We fill the dictionary from the back to allow the best segments to be 851 void COVER_best_init(COVER_best_t *best) { argument 852 if (best==NULL) return; /* compatible with init on NULL */ 853 (void)ZSTD_pthread_mutex_init(&best->mutex, NULL); 854 (void)ZSTD_pthread_cond_init(&best->cond, NULL); 855 best 865 COVER_best_wait(COVER_best_t *best) argument 879 COVER_best_destroy(COVER_best_t *best) argument 895 COVER_best_start(COVER_best_t *best) argument 909 COVER_best_finish(COVER_best_t *best, ZDICT_cover_params_t parameters, COVER_dictSelection_t selection) argument 1063 COVER_best_t *best; member in struct:COVER_tryParameters_data_s 1141 COVER_best_t best; local [all...] |
H A D | fastcover.c | 146 * Selects the best segment in an epoch. 166 /* Try each segment (activeSegment) and save the best (bestSegment) */ 177 * Save the best segment in bestSegment. 203 /* If this segment is the best so far save it */ 444 /* We fill the dictionary from the back to allow the best segments to be 462 COVER_best_t* best; member in struct:FASTCOVER_tryParameters_data_s 509 COVER_best_finish(data->best, parameters, selection); 646 COVER_best_t best; local 678 COVER_best_init(&best); 695 COVER_best_destroy(&best); [all...] |
/freebsd-current/sys/dev/clk/allwinner/ |
H A D | aw_clk_m.c | 137 uint64_t cur, best = 0; local 147 if (abs(*fout - cur) < abs(*fout - best)) { 148 best = cur; 157 return (best); 166 uint64_t cur, best; local 171 best = cur = 0; 173 best = aw_clk_m_find_best(sc, fparent, fout, 175 if ((best != *fout) && ((sc->flags & AW_CLK_SET_PARENT) != 0)) { 185 best = aw_clk_m_find_best(sc, fparent, fout, 190 *fout = best; [all...] |
H A D | aw_clk_np.c | 103 uint64_t cur, best; local 116 if (abs(*fout - cur) < abs(*fout - best)) { 117 best = cur; 127 return (best); 135 uint64_t cur, best; local 141 best = cur = 0; 143 best = aw_clk_np_find_best(sc, fparent, fout, 147 *fout = best; 152 if ((best < *fout) && 157 if ((best > *fou [all...] |
H A D | aw_clk_mipi.c | 116 uint64_t cur, best; local 119 best = 0; 128 if ((*fout - cur) < (*fout - best)) { 129 best = cur; 134 if (best == *fout) 135 return (best); 140 return best; 148 uint64_t best = 0; local 156 best = aw_clk_mipi_find_best(sc, fparent, fout, &best_k, &best_m, &best_n); 158 if (best < s [all...] |
H A D | aw_clk_frac.c | 148 uint64_t cur, best; local 152 best = cur = 0; 173 if (abs((fout - cur)) < abs((fout - best))) { 174 best = cur; 181 return (best); 189 uint64_t cur, best, best_frac; local 195 best = best_frac = cur = 0; 206 best = best_frac = sc->frac.freq0; 212 best = best_frac = sc->frac.freq1; 222 best [all...] |
H A D | aw_clk_nm.c | 138 uint64_t cur, best = 0; local 152 clk_freq_diff(*fout, best)) { 153 best = cur; 169 return (best); 179 uint64_t cur, best; local 185 best = cur = 0; 196 clk_freq_diff(*fout, best)) { 197 best = cur; 208 best = aw_clk_nm_find_best(sc, fparent, fout, 213 *fout = best; [all...] |
H A D | aw_clk_nmm.c | 104 uint64_t cur, best; local 122 if (abs(*fout - cur) < abs(*fout - best)) { 123 best = cur; 135 return (best); 143 uint64_t cur, best; local 149 best = cur = 0; 151 best = aw_clk_nmm_find_best(sc, fparent, fout, 155 *fout = best; 160 if ((best < *fout) && 165 if ((best > *fou [all...] |
H A D | aw_clk_nkmp.c | 142 uint64_t cur, best; local 145 best = 0; 156 if ((*fout - cur) < (*fout - best)) { 157 best = cur; 163 if (best == *fout) 164 return (best); 186 return best; 254 uint64_t best; local 260 best = aw_clk_nkmp_find_best(sc, fparent, fout, 263 *fout = best; [all...] |
/freebsd-current/sys/dev/clk/rockchip/ |
H A D | rk_clk_composite.c | 196 uint64_t best, cur; local 200 best = 0; 211 if ((freq - cur) < (freq - best)) { 212 best = cur; 229 uint64_t best, cur; local 234 dprintf("Finding best parent/div for target freq of %ju\n", *fout); 236 for (best_div = 0, best = 0, p_idx = 0; 244 if ((*fout - cur) < (*fout - best)) { 245 best = cur; 249 dprintf("Best parent so far %s (%d) with best fre [all...] |
H A D | rk_clk_armclk.c | 147 uint64_t best = 0, best_p = 0; local 153 dprintf("Finding best parent/div for target freq of %ju\n", *fout); 159 best = sc->rates[i].freq; 161 best_p = best * div; 163 dprintf("Best parent %s (%d) with best freq at %ju\n", 166 best); 175 *fout = best; 199 *fout = best;
|
/freebsd-current/sys/arm/ti/clk/ |
H A D | ti_clk_dpll.c | 114 uint64_t cur, best; local 127 if (abs(*fout - cur) < abs(*fout - best)) { 128 best = cur; 138 return (best); 180 uint64_t cur, best; local 185 best = cur = 0; 187 best = ti_dpll_clk_find_best(sc, fparent, fout, 191 *fout = best; 196 if ((best < *fout) && 201 if ((best > *fou [all...] |
/freebsd-current/contrib/llvm-project/compiler-rt/lib/sanitizer_common/ |
H A D | sanitizer_stacktrace.cpp | 162 uptr best = 0; local 164 if (Distance(trace[i], pc) < Distance(trace[best], pc)) best = i; 166 return best;
|
/freebsd-current/crypto/openssh/ |
H A D | dh.c | 164 int best, bestcount, which, linenum; local 174 best = bestcount = 0; 185 if ((dhg.size > wantbits && dhg.size < best) || 186 (dhg.size > best && best < wantbits)) { 187 best = dhg.size; 190 if (dhg.size == best) 213 dhg.size != best ||
|
/freebsd-current/usr.sbin/fstyp/ |
H A D | hammer2.c | 206 hammer2_blockref_t broot, best, *bref; local 215 memset(&best, 0, sizeof(best)); 224 if (best_i < 0 || best.mirror_tid < broot.mirror_tid) { 226 best = broot;
|