Home
last modified time | relevance | path

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

/toolchain/binutils/binutils-2.25/gprof/
Dsymtab.c180 unsigned long low, mid, high; in dbg_sym_lookup() local
189 mid = (high + low) >> 1; in dbg_sym_lookup()
192 low, mid, high); in dbg_sym_lookup()
194 (unsigned long) sym[mid].addr, in dbg_sym_lookup()
195 (unsigned long) sym[mid + 1].addr); 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()
200 if (sym[mid].addr > address) in dbg_sym_lookup()
201 high = mid; in dbg_sym_lookup()
203 low = mid + 1; in dbg_sym_lookup()
[all …]
/toolchain/binutils/binutils-2.25/bfd/
Delf-eh-frame.c1312 unsigned int lo, hi, mid; in _bfd_elf_eh_frame_section_offset() local
1323 mid = 0; in _bfd_elf_eh_frame_section_offset()
1326 mid = (lo + hi) / 2; in _bfd_elf_eh_frame_section_offset()
1327 if (offset < sec_info->entry[mid].offset) in _bfd_elf_eh_frame_section_offset()
1328 hi = mid; in _bfd_elf_eh_frame_section_offset()
1330 >= sec_info->entry[mid].offset + sec_info->entry[mid].size) in _bfd_elf_eh_frame_section_offset()
1331 lo = mid + 1; in _bfd_elf_eh_frame_section_offset()
1339 if (sec_info->entry[mid].removed) in _bfd_elf_eh_frame_section_offset()
1344 if (sec_info->entry[mid].cie in _bfd_elf_eh_frame_section_offset()
1345 && sec_info->entry[mid].u.cie.make_per_encoding_relative in _bfd_elf_eh_frame_section_offset()
[all …]
Dsyms.c1273 long mid = -1; in _bfd_stab_section_find_nearest_line() local
1283 mid = (high + low) / 2; in _bfd_stab_section_find_nearest_line()
1284 if (offset >= info->indextable[mid].val in _bfd_stab_section_find_nearest_line()
1285 && offset < info->indextable[mid + 1].val) in _bfd_stab_section_find_nearest_line()
1287 indexentry = &info->indextable[mid]; in _bfd_stab_section_find_nearest_line()
1291 if (info->indextable[mid].val > offset) in _bfd_stab_section_find_nearest_line()
1292 high = mid; in _bfd_stab_section_find_nearest_line()
1294 low = mid + 1; in _bfd_stab_section_find_nearest_line()
Dhash.c350 const unsigned long *mid = low + (high - low) / 2; in higher_prime_number() local
351 if (n >= *mid) in higher_prime_number()
352 low = mid + 1; in higher_prime_number()
354 high = mid; in higher_prime_number()
Decofflink.c1818 long mid = -1; in fdrtab_lookup() local
1828 mid = (high + low) / 2; in fdrtab_lookup()
1829 if (offset >= tab[mid].base_addr && offset < tab[mid + 1].base_addr) in fdrtab_lookup()
1832 if (tab[mid].base_addr > offset) in fdrtab_lookup()
1833 high = mid; in fdrtab_lookup()
1835 low = mid + 1; in fdrtab_lookup()
1843 ++mid; in fdrtab_lookup()
1846 if (offset < tab[mid].base_addr) in fdrtab_lookup()
1853 while (mid > 0 && tab[mid - 1].base_addr == tab[mid].base_addr) in fdrtab_lookup()
1854 --mid; in fdrtab_lookup()
[all …]
Dvms-lib.c729 int mid = lo + (hi - lo) / 2; in _bfd_vms_lib_find_symbol() local
732 diff = (char)(name[0] - syms[mid].name[0]); in _bfd_vms_lib_find_symbol()
734 diff = strcmp (name, syms[mid].name); in _bfd_vms_lib_find_symbol()
736 return mid; in _bfd_vms_lib_find_symbol()
738 hi = mid - 1; in _bfd_vms_lib_find_symbol()
740 lo = mid + 1; in _bfd_vms_lib_find_symbol()
Delf64-ppc.c3102 long mid; in sym_exists_at() local
3108 mid = (lo + hi) >> 1; in sym_exists_at()
3109 if (syms[mid]->value + syms[mid]->section->vma < value) in sym_exists_at()
3110 lo = mid + 1; in sym_exists_at()
3111 else if (syms[mid]->value + syms[mid]->section->vma > value) in sym_exists_at()
3112 hi = mid; in sym_exists_at()
3114 return syms[mid]; in sym_exists_at()
3121 mid = (lo + hi) >> 1; in sym_exists_at()
3122 if (syms[mid]->section->id < id) in sym_exists_at()
3123 lo = mid + 1; in sym_exists_at()
[all …]
Ddwarf2.c1938 int low, high, mid; in lookup_address_in_line_info_table() local
1945 mid = (low + high) / 2; in lookup_address_in_line_info_table()
1946 seq = &table->sequences[mid]; in lookup_address_in_line_info_table()
1948 high = mid; in lookup_address_in_line_info_table()
1950 low = mid + 1; in lookup_address_in_line_info_table()
Delf32-spu.c2584 int lo, hi, mid; in find_function() local
2590 mid = (lo + hi) / 2; in find_function()
2591 if (offset < sinfo->fun[mid].lo) in find_function()
2592 hi = mid; in find_function()
2593 else if (offset >= sinfo->fun[mid].hi) in find_function()
2594 lo = mid + 1; in find_function()
2596 return &sinfo->fun[mid]; in find_function()
Delflink.c7217 bfd_size_type lo, hi, mid; in bfd_elf_match_symbols_in_sections() local
7227 mid = (lo + hi) / 2; in bfd_elf_match_symbols_in_sections()
7228 if (shndx1 < ssymbuf1[mid].st_shndx) in bfd_elf_match_symbols_in_sections()
7229 hi = mid; in bfd_elf_match_symbols_in_sections()
7230 else if (shndx1 > ssymbuf1[mid].st_shndx) in bfd_elf_match_symbols_in_sections()
7231 lo = mid + 1; in bfd_elf_match_symbols_in_sections()
7234 count1 = ssymbuf1[mid].count; in bfd_elf_match_symbols_in_sections()
7235 ssymbuf1 += mid; in bfd_elf_match_symbols_in_sections()
7246 mid = (lo + hi) / 2; in bfd_elf_match_symbols_in_sections()
7247 if (shndx2 < ssymbuf2[mid].st_shndx) in bfd_elf_match_symbols_in_sections()
[all …]
DChangeLog-20041553 error exit. Fix "mid" warning.
/toolchain/binutils/binutils-2.25/libiberty/
Dhashtab.c180 unsigned int mid = low + (high - low) / 2; in higher_prime_index() local
181 if (n > prime_tab[mid].prime) in higher_prime_index()
182 low = mid + 1; in higher_prime_index()
184 high = mid; in higher_prime_index()
/toolchain/binutils/binutils-2.25/cpu/
Dsh.cpu315 (set (newval) (error "cannot alter target byte order mid-program"))