/external/elfutils/tests/ |
D | test-nlist.c | 42 int cnt; in main() local 52 for (cnt = 0; nl[cnt].n_name != NULL; ++cnt) in main() 62 cnt, nl[cnt].n_name, in main() 63 cnt, nl[cnt].n_value, in main() 64 cnt, nl[cnt].n_scnum, in main() 65 cnt, nl[cnt].n_type, in main() 66 cnt, nl[cnt].n_sclass, in main() 67 cnt, nl[cnt].n_numaux); in main() 69 if ((cnt != 4 && nl[cnt].n_value == 0 && nl[cnt].n_scnum == 0 in main() 70 && nl[cnt].n_type == 0 && nl[cnt].n_sclass == 0 in main() [all …]
|
D | asm-tst9.c | 84 size_t cnt; in main() local 112 for (cnt = 0; cnt < ninput; ++cnt) in main() 114 if (asm_adduleb128 (scn, input[cnt]) != 0) in main() 117 (uint32_t) input[cnt], asm_errmsg (-1)); in main() 121 if (asm_addsleb128 (scn, input[cnt]) != 0) in main() 124 input[cnt], asm_errmsg (-1)); in main() 128 if (asm_adduleb128 (scn, -input[cnt]) != 0) in main() 131 (uint32_t) -input[cnt], asm_errmsg (-1)); in main() 135 if (asm_addsleb128 (scn, -input[cnt]) != 0) in main() 138 -input[cnt], asm_errmsg (-1)); in main() [all …]
|
D | asm-tst2.c | 64 size_t cnt; in main() local 155 for (cnt = 1; cnt < 3; ++cnt) in main() 161 scn = elf_getscn (elf, cnt); in main() 164 printf ("cannot get section %Zd: %s\n", cnt, elf_errmsg (-1)); in main() 173 cnt, elf_errmsg (-1)); in main() 179 scnnames[cnt]) != 0) in main() 181 printf ("section %Zd's name differs: %s vs %s\n", cnt, in main() 183 scnnames[cnt]); in main() 187 if (shdr->sh_type != (cnt == 2 ? SHT_STRTAB : SHT_PROGBITS)) in main() 189 printf ("section %Zd's type differs\n", cnt); in main() [all …]
|
D | asm-tst1.c | 65 size_t cnt; in main() local 139 for (cnt = 1; cnt < 4; ++cnt) in main() 145 scn = elf_getscn (elf, cnt); in main() 148 printf ("cannot get section %Zd: %s\n", cnt, elf_errmsg (-1)); in main() 157 cnt, elf_errmsg (-1)); in main() 163 scnnames[cnt]) != 0) in main() 165 printf ("section %Zd's name differs: %s vs %s\n", cnt, in main() 167 scnnames[cnt]); in main() 171 if (shdr->sh_type != (cnt == 3 ? SHT_STRTAB : SHT_PROGBITS)) in main() 173 printf ("section %Zd's type differs\n", cnt); in main() [all …]
|
D | sectiondump.c | 37 int cnt; in main() local 58 for (cnt = 2; cnt < argc; ++cnt) in main() 59 if (handle_section (elf, elf_getscn (elf, atoi (argv[cnt]))) != 0) in main() 61 error (EXIT_FAILURE, 0, "while processing section %d: %s", cnt, in main() 142 size_t cnt; in print_bytes() local 144 for (cnt = 0; cnt < size; cnt += 16) in print_bytes() 148 printf ("%*Zx: ", sizeof (size_t) == 4 ? 8 : 16, (size_t) offset + cnt); in print_bytes() 150 for (inner = 0; inner < 16 && cnt + inner < size; ++inner) in print_bytes() 151 printf (" %02hhx", buf[cnt + inner]); in print_bytes() 164 size_t cnt; in print_symtab() local [all …]
|
D | asm-tst6.c | 32 size_t cnt; in main() local 43 for (cnt = 0; cnt < 22000; ++cnt) in main() 50 snprintf (buf, sizeof (buf), ".grp%Zu", cnt); in main() 54 printf ("cannot section group %Zu: %s\n", cnt, asm_errmsg (-1)); in main() 64 cnt, asm_errmsg (-1)); in main() 70 snprintf (buf, sizeof (buf), "%Zu", cnt); in main() 81 if (asm_adduint32 (scn, cnt) != 0) in main() 93 cnt, asm_errmsg (-1)); in main() 103 cnt, asm_errmsg (-1)); in main() 109 if (asm_adduint32 (scn, cnt) != 0) in main()
|
D | asm-tst3.c | 56 size_t cnt; in main() local 155 for (cnt = 1; cnt < 5; ++cnt) in main() 161 scn = elf_getscn (elf, cnt); in main() 164 printf ("cannot get section %Zd: %s\n", cnt, elf_errmsg (-1)); in main() 173 cnt, elf_errmsg (-1)); in main() 179 scnnames[cnt]) != 0) in main() 181 printf ("section %Zd's name differs: %s vs %s\n", cnt, in main() 183 scnnames[cnt]); in main() 187 if (shdr->sh_type != scntypes[cnt]) in main() 189 printf ("section %Zd's type differs\n", cnt); in main() [all …]
|
D | asm-tst7.c | 29 size_t cnt; in main() local 81 for (cnt = 1; 1; ++cnt) in main() 87 scn = elf_getscn (elf, cnt); in main() 90 printf ("cannot get section %Zd: %s\n", cnt, elf_errmsg (-1)); in main() 99 cnt, elf_errmsg (-1)); in main() 107 for (cnt = 1; cnt< (shdr->sh_size in main() 109 ++cnt) in main() 114 if (cnt > 1) in main() 121 sym = gelf_getsym (elf_getdata (scn, NULL), cnt, &sym_mem); in main() 124 printf ("cannot get symbol %zu: %s\n", cnt, elf_errmsg (-1)); in main()
|
D | asm-tst8.c | 29 size_t cnt; in main() local 82 for (cnt = 1; 1; ++cnt) in main() 88 scn = elf_getscn (elf, cnt); in main() 91 printf ("cannot get section %Zd: %s\n", cnt, elf_errmsg (-1)); in main() 100 cnt, elf_errmsg (-1)); in main() 108 for (cnt = 1; cnt< (shdr->sh_size in main() 110 ++cnt) in main() 115 if (cnt > 1) in main() 122 sym = gelf_getsym (elf_getdata (scn, NULL), cnt, &sym_mem); in main() 125 printf ("cannot get symbol %zu: %s\n", cnt, elf_errmsg (-1)); in main()
|
D | msg_tst.c | 79 size_t cnt; in main() local 86 for (cnt = 1; cnt < ELF_E_NUM; ++cnt) in main() 88 const char *str = elf_errmsg (libelf_msgs[cnt].id); in main() 90 if (strcmp (str, libelf_msgs[cnt].expected) != 0) in main() 93 cnt, libelf_msgs[cnt].expected, str); in main()
|
/external/elfutils/src/ |
D | strip.c | 393 size_t cnt; in handle_elf() local 489 for (cnt = 0; cnt < ehdr->e_phnum; ++cnt) in handle_elf() 494 phdr = gelf_getphdr (elf, cnt, &phdr_mem); in handle_elf() 496 || unlikely (gelf_update_phdr (newelf, cnt, phdr) == 0)) in handle_elf() 515 for (cnt = 0; cnt < ehdr->e_phnum; ++cnt) in handle_elf() 520 phdr = gelf_getphdr (elf, cnt, &phdr_mem); in handle_elf() 522 || unlikely (gelf_update_phdr (debugelf, cnt, phdr) == 0)) in handle_elf() 551 cnt = 1; in handle_elf() 556 assert (elf_ndxscn (scn) == cnt); in handle_elf() 558 shdr_info[cnt].scn = scn; in handle_elf() [all …]
|
D | elflint.c | 357 size_t cnt; in check_elf_header() local 394 for (cnt = EI_PAD; cnt < EI_NIDENT; ++cnt) in check_elf_header() 395 if (ehdr->e_ident[cnt] != 0) in check_elf_header() 396 ERROR (gettext ("e_ident[%zu] is not zero\n"), cnt); in check_elf_header() 404 for (cnt = 0; cnt < nvalid_e_machine; ++cnt) in check_elf_header() 405 if (valid_e_machine[cnt] == ehdr->e_machine) in check_elf_header() 407 if (cnt == nvalid_e_machine) in check_elf_header() 531 size_t cnt; in check_scn_group() local 533 for (cnt = idx + 1; cnt < shnum; ++cnt) in check_scn_group() 542 scn = elf_getscn (ebl->elf, cnt); in check_scn_group() [all …]
|
D | i386_ld.c | 70 size_t cnt; in elf_i386_relocate_section() local 104 for (cnt = 0; cnt < maxcnt; ++cnt) in elf_i386_relocate_section() 114 xelf_getrel (data, cnt, rel); in elf_i386_relocate_section() 171 (void) xelf_update_rel (data, cnt, rel); in elf_i386_relocate_section() 334 size_t cnt; in elf_i386_finalize_plt() local 374 for (cnt = 0; cnt < statep->nplt; ++cnt) in elf_i386_finalize_plt() 376 assert ((4 + cnt) * sizeof (Elf32_Word) <= data->d_size); in elf_i386_finalize_plt() 379 Elf32_Addr pltentryaddr = shdr->sh_addr + (1 + cnt) * PLT_ENTRY_SIZE; in elf_i386_finalize_plt() 382 ((Elf32_Word *) data->d_buf)[3 + cnt] = pltentryaddr + 6; in elf_i386_finalize_plt() 387 ((Elf32_Sym *) dynsymdata->d_buf)[1 + cnt].st_value = pltentryaddr; in elf_i386_finalize_plt() [all …]
|
/external/elfutils/libelf/ |
D | elf32_getshdr.c | 63 size_t cnt; 114 for (cnt = 0; cnt < shnum; ++cnt) 116 CONVERT_TO (shdr[cnt].sh_name, notcvt[cnt].sh_name); 117 CONVERT_TO (shdr[cnt].sh_type, notcvt[cnt].sh_type); 118 CONVERT_TO (shdr[cnt].sh_flags, notcvt[cnt].sh_flags); 119 CONVERT_TO (shdr[cnt].sh_addr, notcvt[cnt].sh_addr); 120 CONVERT_TO (shdr[cnt].sh_offset, notcvt[cnt].sh_offset); 121 CONVERT_TO (shdr[cnt].sh_size, notcvt[cnt].sh_size); 122 CONVERT_TO (shdr[cnt].sh_link, notcvt[cnt].sh_link); 123 CONVERT_TO (shdr[cnt].sh_info, notcvt[cnt].sh_info); [all …]
|
D | elf32_getphdr.c | 95 size_t cnt; variable 127 for (cnt = 0; cnt < phnum; ++cnt) 129 CONVERT_TO (phdr[cnt].p_type, notcvt[cnt].p_type); 130 CONVERT_TO (phdr[cnt].p_offset, notcvt[cnt].p_offset); 131 CONVERT_TO (phdr[cnt].p_vaddr, notcvt[cnt].p_vaddr); 132 CONVERT_TO (phdr[cnt].p_paddr, notcvt[cnt].p_paddr); 133 CONVERT_TO (phdr[cnt].p_filesz, notcvt[cnt].p_filesz); 134 CONVERT_TO (phdr[cnt].p_memsz, notcvt[cnt].p_memsz); 135 CONVERT_TO (phdr[cnt].p_flags, notcvt[cnt].p_flags); 136 CONVERT_TO (phdr[cnt].p_align, notcvt[cnt].p_align); [all …]
|
/external/elfutils/libdw/ |
D | dwarf_getpubnames.c | 31 size_t cnt = 0; in get_offsets() local 41 if (cnt >= allocated) in get_offsets() 67 mem[cnt].set_start = readp + 2 + 2 * len_bytes - startp; in get_offsets() 68 mem[cnt].address_len = len_bytes; in get_offsets() 69 if (mem[cnt].set_start >= dbg->sectiondata[IDX_debug_pubnames]->d_size) in get_offsets() 84 mem[cnt].cu_offset = read_4ubyte_unaligned (dbg, readp + 2); in get_offsets() 86 mem[cnt].cu_offset = read_8ubyte_unaligned (dbg, readp + 2); in get_offsets() 91 assert (mem[cnt].cu_offset + 3 in get_offsets() 95 + mem[cnt].cu_offset); in get_offsets() 97 mem[cnt].cu_header_size = 23; in get_offsets() [all …]
|
/external/elfutils/libebl/ |
D | mips_symbol.c | 97 size_t cnt; in mips_segment_type_name() local 99 for (cnt = 0; cnt < nsegments; ++cnt) in mips_segment_type_name() 100 if (type == mips_segments[cnt].type) in mips_segment_type_name() 101 return mips_segments[cnt].str; in mips_segment_type_name() 158 size_t cnt; in mips_section_type_name() local 160 for (cnt = 0; cnt < nsections; ++cnt) in mips_section_type_name() 161 if (type == mips_sections[cnt].type) in mips_section_type_name() 162 return mips_sections[cnt].str; in mips_section_type_name() 190 size_t cnt; in mips_machine_flag_name() local 192 for (cnt = 0; cnt < nflags; ++cnt) in mips_machine_flag_name() [all …]
|
/external/qemu/ |
D | host-utils.h | 60 int cnt = 0; in clz32() 63 cnt += 16; in clz32() 67 cnt += 8; in clz32() 71 cnt += 4; in clz32() 75 cnt += 2; in clz32() 79 cnt++; in clz32() 83 cnt++; in clz32() 85 return cnt; in clz32() 102 int cnt = 0; in clz64() 105 cnt += 32; in clz64() [all …]
|
/external/dropbear/libtommath/demo/ |
D | timing.c | 86 int n, cnt, ix, old_kara_m, old_kara_s; in main() local 109 for (cnt = 8; cnt <= 128; cnt += 8) { in main() 111 mp_rand(&a, cnt); in main() 112 mp_rand(&b, cnt); in main() 124 fprintf(log, "%d %9llu\n", cnt * DIGIT_BIT, tt); in main() 130 for (cnt = 8; cnt <= 128; cnt += 8) { in main() 132 mp_rand(&a, cnt); in main() 133 mp_rand(&b, cnt); in main() 146 fprintf(log, "%d %9llu\n", cnt * DIGIT_BIT, tt); in main() 162 for (cnt = 4; cnt <= 10240 / DIGIT_BIT; cnt += 2) { in main() [all …]
|
/external/e2fsprogs/intl/ |
D | finddomain.c | 94 int cnt; in _nl_find_domain() local 102 for (cnt = 0; retval->successor[cnt] != NULL; ++cnt) in _nl_find_domain() 104 if (retval->successor[cnt]->decided == 0) in _nl_find_domain() 105 _nl_load_domain (retval->successor[cnt], domainbinding); in _nl_find_domain() 107 if (retval->successor[cnt]->data != NULL) in _nl_find_domain() 110 return cnt >= 0 ? retval : NULL; in _nl_find_domain() 155 int cnt; in _nl_find_domain() local 156 for (cnt = 0; retval->successor[cnt] != NULL; ++cnt) in _nl_find_domain() 158 if (retval->successor[cnt]->decided == 0) in _nl_find_domain() 159 _nl_load_domain (retval->successor[cnt], domainbinding); in _nl_find_domain() [all …]
|
D | l10nflist.c | 183 int cnt; in _nl_make_l10nflist() local 333 for (cnt = dirlist_count > 1 ? mask : mask - 1; cnt >= 0; --cnt) in _nl_make_l10nflist() 334 if ((cnt & ~mask) == 0 in _nl_make_l10nflist() 335 && ((cnt & CEN_SPECIFIC) == 0 || (cnt & XPG_SPECIFIC) == 0) in _nl_make_l10nflist() 336 && ((cnt & XPG_CODESET) == 0 || (cnt & XPG_NORM_CODESET) == 0)) in _nl_make_l10nflist() 347 cnt, language, territory, codeset, in _nl_make_l10nflist() 354 cnt, language, territory, codeset, in _nl_make_l10nflist() 374 size_t cnt; in _nl_normalize_codeset() local 376 for (cnt = 0; cnt < name_len; ++cnt) in _nl_normalize_codeset() 377 if (isalnum ((unsigned char) codeset[cnt])) in _nl_normalize_codeset() [all …]
|
/external/elfcopy/ |
D | fixdwarf.c | 83 int cnt; in update_dwarf_if_necessary() local 94 for(cnt = 0; cnt < max; cnt++) in update_dwarf_if_necessary() 95 free_debug_section(cnt); in update_dwarf_if_necessary() 102 cnt = 0; in update_dwarf_if_necessary() 112 ASSERT(shdr_info[cnt].name != NULL); \ in update_dwarf_if_necessary() 113 if (!strcmp(shdr_info[cnt].name, \ in update_dwarf_if_necessary() 118 INFO("Index of \".debug_" _str(name) " is %d", cnt); \ in update_dwarf_if_necessary() 119 if (shdr_info[cnt].idx > 0) \ in update_dwarf_if_necessary() 120 dwarf_to_shdr[sname] = cnt; \ in update_dwarf_if_necessary() 125 for(cnt = 1; cnt < num_shdr_info; cnt++) { in update_dwarf_if_necessary() [all …]
|
D | elfcopy.c | 128 int cnt; /* general-purpose counter */ in adjust_elf() local 242 for (cnt = 1; cnt < shdr_info_len; ++cnt) { in adjust_elf() 243 if (shdr_info[cnt].idx > 0) { in adjust_elf() 247 cnt, in adjust_elf() 248 (shdr_info[cnt].name ?: "(no name)"), in adjust_elf() 249 shdr_info[cnt].idx, in adjust_elf() 250 shdr_info[cnt].shdr.sh_addr, in adjust_elf() 251 shdr_info[cnt].shdr.sh_offset, in adjust_elf() 252 shdr_info[cnt].shdr.sh_size, in adjust_elf() 253 shdr_info[cnt].shdr.sh_addralign); in adjust_elf() [all …]
|
/external/dropbear/libtomcrypt/testprof/ |
D | katja_test.c | 10 unsigned long kat_msgsize, len, len2, cnt; in katja_test() local 23 for (cnt = 0; cnt < 10; cnt++) { in katja_test() 31 for (cnt = 0; cnt < len; ) { in katja_test() 32 fprintf(stderr, "%02x ", tmp[cnt]); in katja_test() 33 if (!(++cnt & 15)) fprintf(stderr, "\n"); in katja_test() 39 for (cnt = 0; cnt < len; ) { in katja_test() 40 fprintf(stderr, "%02x ", tmp[cnt]); in katja_test() 41 if (!(++cnt & 15)) fprintf(stderr, "\n"); in katja_test() 47 for (cnt = 0; cnt < len; ) { in katja_test() 48 fprintf(stderr, "%02x ", tmp[cnt]); in katja_test() [all …]
|
/external/opencore/codecs_v2/audio/aac/dec/src/ |
D | sbr_extract_extended_data.cpp | 153 Int32 cnt; in sbr_extract_extended_data() local 155 cnt = buf_getbits(hBitBuf, SI_SBR_EXTENSION_SIZE_BITS); in sbr_extract_extended_data() 156 if (cnt == (1 << SI_SBR_EXTENSION_SIZE_BITS) - 1) in sbr_extract_extended_data() 158 cnt += buf_getbits(hBitBuf, SI_SBR_EXTENSION_ESC_COUNT_BITS); in sbr_extract_extended_data() 161 nBitsLeft = (cnt << 3); in sbr_extract_extended_data() 204 cnt = nBitsLeft >> 3; /* number of remaining bytes */ in sbr_extract_extended_data() 206 for (i = 0; i < cnt; i++) in sbr_extract_extended_data() 211 nBitsLeft -= (cnt << 3); in sbr_extract_extended_data()
|