Home
last modified time | relevance | path

Searched refs:mid (Results 1 – 25 of 92) sorted by relevance

1234

/dragonfly/contrib/gcc-8.0/libbacktrace/
H A Dsort.c66 size_t mid; in backtrace_qsort() local
78 mid = 0; in backtrace_qsort()
83 ++mid; in backtrace_qsort()
84 if (i != mid) in backtrace_qsort()
89 if (mid > 0) in backtrace_qsort()
90 swap (base, base + mid * size, size); in backtrace_qsort()
94 if (2 * mid < count) in backtrace_qsort()
97 base += (mid + 1) * size; in backtrace_qsort()
98 count -= mid + 1; in backtrace_qsort()
103 backtrace_qsort (base + (mid + 1) * size, count - (mid + 1), in backtrace_qsort()
[all …]
/dragonfly/contrib/binutils-2.34/gprof/
H A Dsymtab.c192 low, mid, high); in dbg_sym_lookup()
197 if (sym[mid].addr <= address && sym[mid + 1].addr > address) in dbg_sym_lookup()
198 return &sym[mid]; in dbg_sym_lookup()
201 high = mid; in dbg_sym_lookup()
203 low = mid + 1; in dbg_sym_lookup()
220 long mid = -1; in sym_lookup() local
235 if (sym[mid].addr <= address && sym[mid + 1].addr > address) in sym_lookup()
248 return &sym[mid]; in sym_lookup()
253 high = mid; in sym_lookup()
255 low = mid + 1; in sym_lookup()
[all …]
/dragonfly/contrib/binutils-2.27/gprof/
H A Dsymtab.c192 low, mid, high); in dbg_sym_lookup()
197 if (sym[mid].addr <= address && sym[mid + 1].addr > address) in dbg_sym_lookup()
198 return &sym[mid]; in dbg_sym_lookup()
201 high = mid; in dbg_sym_lookup()
203 low = mid + 1; in dbg_sym_lookup()
220 long mid = -1; in sym_lookup() local
235 if (sym[mid].addr <= address && sym[mid + 1].addr > address) in sym_lookup()
248 return &sym[mid]; in sym_lookup()
253 high = mid; in sym_lookup()
255 low = mid + 1; in sym_lookup()
[all …]
/dragonfly/lib/libexecinfo/
H A Dsymtab.c174 size_t mid = ns / 2; in symtab_find() local
178 if (s[mid].st_value < me) in symtab_find()
179 lo = mid; in symtab_find()
180 else if (s[mid].st_value > me) in symtab_find()
181 hi = mid; in symtab_find()
185 mid = lo; in symtab_find()
188 mid = (hi + lo) / 2; in symtab_find()
191 sd = me - s[mid].st_value; in symtab_find()
193 dli->dli_saddr = (void *)s[mid].st_value; in symtab_find()
194 dli->dli_sname = s[mid].st_name; in symtab_find()
/dragonfly/contrib/diffutils/lib/
H A Dlocalcharset.c878 size_t mid = (hi + lo) >> 1; /* >= lo, < hi */ in locale_charset() local
879 int cmp = strcmp (table[mid].alias, codeset); in locale_charset()
881 lo = mid + 1; in locale_charset()
883 hi = mid; in locale_charset()
888 codeset = table[mid].canonical; in locale_charset()
952 size_t mid = (hi + lo) >> 1; /* >= lo, < hi */ in locale_charset() local
953 int cmp = strcmp (table[mid].locale, locale); in locale_charset()
955 lo = mid + 1; in locale_charset()
957 hi = mid; in locale_charset()
962 codeset = table[mid].canonical; in locale_charset()
H A Dmktime.c294 long_int mid = long_int_avg (ok, bad); in ranged_convert() local
295 if (mid == ok || mid == bad) in ranged_convert()
297 if (convert_time (convert, mid, tp)) in ranged_convert()
298 ok = mid, oktm = *tp; in ranged_convert()
302 bad = mid; in ranged_convert()
H A Dregex_internal.c616 mid = (high + low) / 2; in re_string_reconstruct()
618 high = mid; in re_string_reconstruct()
620 low = mid + 1; in re_string_reconstruct()
626 ++mid; in re_string_reconstruct()
634 && mid == offset && pstr->offsets[mid] == offset) in re_string_reconstruct()
651 while (mid > 0 && pstr->offsets[mid - 1] == offset) in re_string_reconstruct()
652 --mid; in re_string_reconstruct()
657 ++mid; in re_string_reconstruct()
1376 __re_size_t idx, right, mid; in re_node_set_contains() local
1387 idx = mid + 1; in re_node_set_contains()
[all …]
/dragonfly/contrib/grep/lib/
H A Dlocalcharset.c1041 size_t mid = (hi + lo) >> 1; /* >= lo, < hi */ in locale_charset() local
1042 int cmp = strcmp (table[mid].alias, codeset); in locale_charset()
1044 lo = mid + 1; in locale_charset()
1046 hi = mid; in locale_charset()
1051 codeset = table[mid].canonical; in locale_charset()
1115 size_t mid = (hi + lo) >> 1; /* >= lo, < hi */ in locale_charset() local
1116 int cmp = strcmp (table[mid].locale, locale); in locale_charset()
1118 lo = mid + 1; in locale_charset()
1120 hi = mid; in locale_charset()
1125 codeset = table[mid].canonical; in locale_charset()
H A Dregex_internal.c616 mid = (high + low) / 2; in re_string_reconstruct()
618 high = mid; in re_string_reconstruct()
620 low = mid + 1; in re_string_reconstruct()
626 ++mid; in re_string_reconstruct()
634 && mid == offset && pstr->offsets[mid] == offset) in re_string_reconstruct()
651 while (mid > 0 && pstr->offsets[mid - 1] == offset) in re_string_reconstruct()
652 --mid; in re_string_reconstruct()
657 ++mid; in re_string_reconstruct()
1370 __re_size_t idx, right, mid; in re_node_set_contains() local
1381 idx = mid + 1; in re_node_set_contains()
[all …]
/dragonfly/contrib/ncurses/ncurses/
H A Dwcwidth.h72 int mid; in bisearch() local
77 mid = (min + max) / 2; in bisearch()
78 if (ucs > table[mid].last) in bisearch()
79 min = mid + 1; in bisearch()
80 else if (ucs < table[mid].first) in bisearch()
81 max = mid - 1; in bisearch()
/dragonfly/contrib/gcc-8.0/libgcc/
H A Dunwind-dw2-fde-dip.c391 size_t lo, hi, mid; in _Unwind_IteratePhdrCallback() local
397 mid = fde_count - 1; in _Unwind_IteratePhdrCallback()
400 else if (data->pc < table[mid].initial_loc + data_base) in _Unwind_IteratePhdrCallback()
403 hi = mid; in _Unwind_IteratePhdrCallback()
407 mid = (lo + hi) / 2; in _Unwind_IteratePhdrCallback()
408 if (data->pc < table[mid].initial_loc + data_base) in _Unwind_IteratePhdrCallback()
409 hi = mid; in _Unwind_IteratePhdrCallback()
411 lo = mid + 1; in _Unwind_IteratePhdrCallback()
419 f = (fde *) (table[mid].fde + data_base); in _Unwind_IteratePhdrCallback()
424 if (data->pc < table[mid].initial_loc + data_base + range) in _Unwind_IteratePhdrCallback()
[all …]
/dragonfly/contrib/gcc-4.7/libgcc/
H A Dunwind-dw2-fde-dip.c387 size_t lo, hi, mid; in _Unwind_IteratePhdrCallback() local
393 mid = fde_count - 1; in _Unwind_IteratePhdrCallback()
396 else if (data->pc < table[mid].initial_loc + data_base) in _Unwind_IteratePhdrCallback()
399 hi = mid; in _Unwind_IteratePhdrCallback()
403 mid = (lo + hi) / 2; in _Unwind_IteratePhdrCallback()
404 if (data->pc < table[mid].initial_loc + data_base) in _Unwind_IteratePhdrCallback()
405 hi = mid; in _Unwind_IteratePhdrCallback()
407 lo = mid + 1; in _Unwind_IteratePhdrCallback()
415 f = (fde *) (table[mid].fde + data_base); in _Unwind_IteratePhdrCallback()
420 if (data->pc < table[mid].initial_loc + data_base + range) in _Unwind_IteratePhdrCallback()
[all …]
/dragonfly/contrib/gcc-8.0/gcc/
H A Dhash-table.c88 unsigned int mid = low + (high - low) / 2; in hash_table_higher_prime_index() local
89 if (n > prime_tab[mid].prime) in hash_table_higher_prime_index()
90 low = mid + 1; in hash_table_higher_prime_index()
92 high = mid; in hash_table_higher_prime_index()
/dragonfly/contrib/gdb-7/bfd/
H A Delf-eh-frame.c1311 unsigned int lo, hi, mid; in _bfd_elf_eh_frame_section_offset() local
1322 mid = 0; in _bfd_elf_eh_frame_section_offset()
1325 mid = (lo + hi) / 2; in _bfd_elf_eh_frame_section_offset()
1327 hi = mid; in _bfd_elf_eh_frame_section_offset()
1329 >= sec_info->entry[mid].offset + sec_info->entry[mid].size) in _bfd_elf_eh_frame_section_offset()
1330 lo = mid + 1; in _bfd_elf_eh_frame_section_offset()
1343 if (sec_info->entry[mid].cie in _bfd_elf_eh_frame_section_offset()
1351 if (!sec_info->entry[mid].cie in _bfd_elf_eh_frame_section_offset()
1358 if (!sec_info->entry[mid].cie in _bfd_elf_eh_frame_section_offset()
1366 if (sec_info->entry[mid].set_loc in _bfd_elf_eh_frame_section_offset()
[all …]
H A Dsyms.c1284 long mid = -1; in _bfd_stab_section_find_nearest_line() local
1294 mid = (high + low) / 2; in _bfd_stab_section_find_nearest_line()
1295 if (offset >= info->indextable[mid].val in _bfd_stab_section_find_nearest_line()
1296 && offset < info->indextable[mid + 1].val) in _bfd_stab_section_find_nearest_line()
1298 indexentry = &info->indextable[mid]; in _bfd_stab_section_find_nearest_line()
1302 if (info->indextable[mid].val > offset) in _bfd_stab_section_find_nearest_line()
1303 high = mid; in _bfd_stab_section_find_nearest_line()
1305 low = mid + 1; in _bfd_stab_section_find_nearest_line()
/dragonfly/sys/dev/sound/midi/
H A Dmpu401.c70 struct snd_midi *mid; member
142 midi_in(m->mid, b, i); in mpu401_intr()
145 if (midi_out(m->mid, b, 1)) { in mpu401_intr()
185 m->mid = midi_init(&mpu401_class, 0, 0, m); in mpu401_init()
186 if (!m->mid) in mpu401_init()
202 retval = midi_uninit(m->mid); in mpu401_uninit()
/dragonfly/contrib/binutils-2.34/bfd/
H A Delf-eh-frame.c1339 unsigned int lo, hi, mid; in offset_adjust() local
1350 mid = (lo + hi) / 2; in offset_adjust()
1353 hi = mid; in offset_adjust()
1354 else if (mid + 1 >= hi) in offset_adjust()
1357 lo = mid + 1; in offset_adjust()
1759 unsigned int lo, hi, mid; in _bfd_elf_eh_frame_section_offset() local
1770 mid = 0; in _bfd_elf_eh_frame_section_offset()
1773 mid = (lo + hi) / 2; in _bfd_elf_eh_frame_section_offset()
1775 hi = mid; in _bfd_elf_eh_frame_section_offset()
1777 >= sec_info->entry[mid].offset + sec_info->entry[mid].size) in _bfd_elf_eh_frame_section_offset()
[all …]
/dragonfly/sys/sys/
H A Dimgact_aout.h48 #define N_SETMAGIC(ex,mag,mid,flag) \ argument
49 ( (ex).a_midmag = (((flag) & 0x3f) <<26) | (((mid) & 0x03ff) << 16) | \
58 #define N_SETMAGIC_NET(ex,mag,mid,flag) \ argument
59 ( (ex).a_midmag = htonl( (((flag)&0x3f)<<26) | (((mid)&0x03ff)<<16) | \
/dragonfly/contrib/binutils-2.27/bfd/
H A Delf-eh-frame.c1564 unsigned int lo, hi, mid; in _bfd_elf_eh_frame_section_offset() local
1575 mid = 0; in _bfd_elf_eh_frame_section_offset()
1578 mid = (lo + hi) / 2; in _bfd_elf_eh_frame_section_offset()
1580 hi = mid; in _bfd_elf_eh_frame_section_offset()
1582 >= sec_info->entry[mid].offset + sec_info->entry[mid].size) in _bfd_elf_eh_frame_section_offset()
1583 lo = mid + 1; in _bfd_elf_eh_frame_section_offset()
1596 if (sec_info->entry[mid].cie in _bfd_elf_eh_frame_section_offset()
1604 if (!sec_info->entry[mid].cie in _bfd_elf_eh_frame_section_offset()
1611 if (!sec_info->entry[mid].cie in _bfd_elf_eh_frame_section_offset()
1619 if (sec_info->entry[mid].set_loc in _bfd_elf_eh_frame_section_offset()
[all …]
H A Dsyms.c1287 long mid = -1; in _bfd_stab_section_find_nearest_line() local
1297 mid = (high + low) / 2; in _bfd_stab_section_find_nearest_line()
1298 if (offset >= info->indextable[mid].val in _bfd_stab_section_find_nearest_line()
1299 && offset < info->indextable[mid + 1].val) in _bfd_stab_section_find_nearest_line()
1301 indexentry = &info->indextable[mid]; in _bfd_stab_section_find_nearest_line()
1305 if (info->indextable[mid].val > offset) in _bfd_stab_section_find_nearest_line()
1306 high = mid; in _bfd_stab_section_find_nearest_line()
1308 low = mid + 1; in _bfd_stab_section_find_nearest_line()
/dragonfly/contrib/gdb-7/gdb/
H A Daddrmap.c144 struct addrmap_transition *mid = top - (top - bottom) / 2; in addrmap_fixed_find() local
146 if (mid->addr == addr) in addrmap_fixed_find()
148 bottom = mid; in addrmap_fixed_find()
151 else if (mid->addr < addr) in addrmap_fixed_find()
155 bottom = mid; in addrmap_fixed_find()
157 top = mid - 1; in addrmap_fixed_find()
/dragonfly/contrib/wpa_supplicant/src/eap_common/
H A Deap_pax_common.c130 u8 *mk, u8 *ck, u8 *ick, u8 *mid) in eap_pax_initial_key_derivation() argument
140 e, 2 * EAP_PAX_RAND_LEN, EAP_PAX_MID_LEN, mid)) in eap_pax_initial_key_derivation()
147 wpa_hexdump_key(MSG_MSGDUMP, "EAP-PAX: MID", mid, EAP_PAX_MID_LEN); in eap_pax_initial_key_derivation()
/dragonfly/games/hack/
H A Dhack.save.c159 unsigned mid; /* idem */ in dorecover() local
184 mread(fd, &mid, sizeof mid); in dorecover()
223 if (mtmp->m_id == mid) in dorecover()
/dragonfly/lib/i18n_module/VIQR/
H A Dcitrus_viqr.c105 const mnemonic_def_t *mid; in mnemonic_ext_find() local
108 mid = head + (n >> 1); in mnemonic_ext_find()
109 if (mid->value == wc) in mnemonic_ext_find()
110 return (mid->name); in mnemonic_ext_find()
111 else if (mid->value < wc) { in mnemonic_ext_find()
112 head = mid + 1; in mnemonic_ext_find()
/dragonfly/contrib/awk/
H A Dlex.c492 int cond, low, mid, high; in binsearch() local
497 mid = (low + high) / 2; in binsearch()
498 if ((cond = strcmp(w, kp[mid].word)) < 0) in binsearch()
499 high = mid - 1; in binsearch()
501 low = mid + 1; in binsearch()
503 return mid; in binsearch()

1234