Home
last modified time | relevance | path

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

/toolchain/binutils/binutils-2.27/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.27/gas/config/
Dtc-visium.c765 int mid = (l + r) / 2; in get_opcode() local
766 int ans = strcmp (mnem, opcode_table[mid].mnem); in get_opcode()
769 r = mid - 1; in get_opcode()
771 l = mid + 1; in get_opcode()
774 *code = opcode_table[mid].code; in get_opcode()
775 *mode = opcode_table[mid].mode; in get_opcode()
776 *flags = opcode_table[mid].flags; in get_opcode()
919 int mid = (l + r) / 2; in parse_gen_reg() local
920 int ans = strcmp (buf, gen_reg_table[mid].name); in parse_gen_reg()
923 r = mid - 1; in parse_gen_reg()
[all …]
/toolchain/binutils/binutils-2.27/bfd/
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()
1579 if (offset < sec_info->entry[mid].offset) 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()
1591 if (sec_info->entry[mid].removed) in _bfd_elf_eh_frame_section_offset()
1596 if (sec_info->entry[mid].cie in _bfd_elf_eh_frame_section_offset()
1597 && sec_info->entry[mid].u.cie.make_per_encoding_relative in _bfd_elf_eh_frame_section_offset()
[all …]
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()
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.c3177 long mid; in sym_exists_at() local
3183 mid = (lo + hi) >> 1; in sym_exists_at()
3184 if (syms[mid]->value + syms[mid]->section->vma < value) in sym_exists_at()
3185 lo = mid + 1; in sym_exists_at()
3186 else if (syms[mid]->value + syms[mid]->section->vma > value) in sym_exists_at()
3187 hi = mid; in sym_exists_at()
3189 return syms[mid]; in sym_exists_at()
3196 mid = (lo + hi) >> 1; in sym_exists_at()
3197 if (syms[mid]->section->id < id) in sym_exists_at()
3198 lo = mid + 1; in sym_exists_at()
[all …]
Ddwarf2.c2093 int low, high, mid; in lookup_address_in_line_info_table() local
2100 mid = (low + high) / 2; in lookup_address_in_line_info_table()
2101 seq = &table->sequences[mid]; in lookup_address_in_line_info_table()
2103 high = mid; in lookup_address_in_line_info_table()
2105 low = mid + 1; in lookup_address_in_line_info_table()
Delf32-spu.c2593 int lo, hi, mid; in find_function() local
2599 mid = (lo + hi) / 2; in find_function()
2600 if (offset < sinfo->fun[mid].lo) in find_function()
2601 hi = mid; in find_function()
2602 else if (offset >= sinfo->fun[mid].hi) in find_function()
2603 lo = mid + 1; in find_function()
2605 return &sinfo->fun[mid]; in find_function()
Delflink.c7497 size_t lo, hi, mid; in bfd_elf_match_symbols_in_sections() local
7507 mid = (lo + hi) / 2; in bfd_elf_match_symbols_in_sections()
7508 if (shndx1 < ssymbuf1[mid].st_shndx) in bfd_elf_match_symbols_in_sections()
7509 hi = mid; in bfd_elf_match_symbols_in_sections()
7510 else if (shndx1 > ssymbuf1[mid].st_shndx) in bfd_elf_match_symbols_in_sections()
7511 lo = mid + 1; in bfd_elf_match_symbols_in_sections()
7514 count1 = ssymbuf1[mid].count; in bfd_elf_match_symbols_in_sections()
7515 ssymbuf1 += mid; in bfd_elf_match_symbols_in_sections()
7526 mid = (lo + hi) / 2; in bfd_elf_match_symbols_in_sections()
7527 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.27/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.27/cpu/
Dsh.cpu315 (set (newval) (error "cannot alter target byte order mid-program"))