Home
last modified time | relevance | path

Searched refs:cnt (Results 1 – 25 of 161) sorted by relevance

1234567

/external/elfutils/tests/
Dtest-nlist.c42 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 …]
Dasm-tst9.c84 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 …]
Dasm-tst2.c64 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 …]
Dasm-tst1.c65 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 …]
Dsectiondump.c37 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 …]
Dasm-tst6.c32 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()
Dasm-tst3.c56 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 …]
Dasm-tst7.c29 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()
Dasm-tst8.c29 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()
Dmsg_tst.c79 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/
Dstrip.c393 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 …]
Delflint.c357 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 …]
Di386_ld.c70 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/
Delf32_getshdr.c63 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 …]
Delf32_getphdr.c95 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/
Ddwarf_getpubnames.c31 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/
Dmips_symbol.c97 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/
Dhost-utils.h58 int cnt = 0; in clz32() local
61 cnt += 16; in clz32()
65 cnt += 8; in clz32()
69 cnt += 4; in clz32()
73 cnt += 2; in clz32()
77 cnt++; in clz32()
81 cnt++; in clz32()
83 return cnt; in clz32()
93 int cnt = 0; in clz64() local
96 cnt += 32; in clz64()
[all …]
/external/dropbear/libtommath/demo/
Dtiming.c86 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/
Dfinddomain.c94 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 …]
Dl10nflist.c183 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/
Dfixdwarf.c83 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 …]
Delfcopy.c128 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/
Dkatja_test.c10 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/
Dsbr_extract_extended_data.cpp153 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()

1234567