/external/elfutils/tests/ |
D | test-nlist.c | 46 int cnt; in main() local 56 for (cnt = 0; nl[cnt].n_name != NULL; ++cnt) in main() 66 cnt, nl[cnt].n_name, in main() 67 cnt, nl[cnt].n_value, in main() 68 cnt, nl[cnt].n_scnum, in main() 69 cnt, nl[cnt].n_type, in main() 70 cnt, nl[cnt].n_sclass, in main() 71 cnt, nl[cnt].n_numaux); in main() 73 if ((cnt != 4 && nl[cnt].n_value == 0 && nl[cnt].n_scnum == 0 in main() 74 && nl[cnt].n_type == 0 && nl[cnt].n_sclass == 0 in main() [all …]
|
D | asm-tst9.c | 93 size_t cnt; in main() local 128 for (cnt = 0; cnt < ninput; ++cnt) in main() 130 if (asm_adduleb128 (scn, input[cnt]) != 0) in main() 133 (uint32_t) input[cnt], asm_errmsg (-1)); in main() 137 if (asm_addsleb128 (scn, input[cnt]) != 0) in main() 140 input[cnt], asm_errmsg (-1)); in main() 144 if (asm_adduleb128 (scn, -input[cnt]) != 0) in main() 147 (uint32_t) -input[cnt], asm_errmsg (-1)); in main() 151 if (asm_addsleb128 (scn, -input[cnt]) != 0) in main() 154 -input[cnt], asm_errmsg (-1)); in main() [all …]
|
D | asm-tst2.c | 73 size_t cnt; in main() local 171 for (cnt = 1; cnt < 3; ++cnt) in main() 177 scn = elf_getscn (elf, cnt); in main() 180 printf ("cannot get section %zd: %s\n", cnt, elf_errmsg (-1)); in main() 189 cnt, elf_errmsg (-1)); in main() 195 scnnames[cnt]) != 0) in main() 197 printf ("section %zd's name differs: %s vs %s\n", cnt, in main() 199 scnnames[cnt]); in main() 203 if (shdr->sh_type != (cnt == 2 ? SHT_STRTAB : SHT_PROGBITS)) in main() 205 printf ("section %zd's type differs\n", cnt); in main() [all …]
|
D | asm-tst1.c | 74 size_t cnt; in main() local 155 for (cnt = 1; cnt < 4; ++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 == 3 ? SHT_STRTAB : SHT_PROGBITS)) in main() 189 printf ("section %zd's type differs\n", cnt); in main() [all …]
|
D | sectiondump.c | 41 int cnt; in main() local 62 for (cnt = 2; cnt < argc; ++cnt) in main() 63 if (handle_section (elf, elf_getscn (elf, atoi (argv[cnt]))) != 0) in main() 65 error (EXIT_FAILURE, 0, "while processing section %d: %s", cnt, in main() 146 size_t cnt; in print_bytes() local 148 for (cnt = 0; cnt < size; cnt += 16) in print_bytes() 152 printf ("%*zx: ", sizeof (size_t) == 4 ? 8 : 16, (size_t) offset + cnt); in print_bytes() 154 for (inner = 0; inner < 16 && cnt + inner < size; ++inner) in print_bytes() 155 printf (" %02hhx", buf[cnt + inner]); in print_bytes() 168 size_t cnt; in print_symtab() local [all …]
|
/external/elfutils/src/ |
D | strip.c | 958 size_t cnt, in update_section_size() argument 970 cnt), NULL); in update_section_size() 1013 size_t cnt; in handle_elf() local 1130 for (cnt = 0; cnt < phnum; ++cnt) in handle_elf() 1133 GElf_Phdr *phdr = gelf_getphdr (elf, cnt, &phdr_mem); in handle_elf() 1135 || unlikely (gelf_update_phdr (newelf, cnt, phdr) == 0)) in handle_elf() 1173 for (cnt = 0; cnt < phnum; ++cnt) in handle_elf() 1176 GElf_Phdr *phdr = gelf_getphdr (elf, cnt, &phdr_mem); in handle_elf() 1178 || unlikely (gelf_update_phdr (debugelf, cnt, phdr) == 0)) in handle_elf() 1218 cnt = 1; in handle_elf() [all …]
|
D | elflint.c | 342 size_t cnt; in check_elf_header() local 382 for (cnt = EI_PAD; cnt < EI_NIDENT; ++cnt) in check_elf_header() 383 if (ehdr->e_ident[cnt] != 0) in check_elf_header() 384 ERROR (_("e_ident[%zu] is not zero\n"), cnt); in check_elf_header() 392 for (cnt = 0; cnt < nvalid_e_machine; ++cnt) in check_elf_header() 393 if (valid_e_machine[cnt] == ehdr->e_machine) in check_elf_header() 395 if (cnt == nvalid_e_machine) in check_elf_header() 558 size_t cnt; in check_scn_group() local 560 for (cnt = idx + 1; cnt < shnum; ++cnt) in check_scn_group() 562 Elf_Scn *scn = elf_getscn (ebl->elf, cnt); in check_scn_group() [all …]
|
/external/elfutils/libelf/ |
D | elf32_getshdr.c | 136 for (size_t cnt = 0; cnt < shnum; ++cnt) in ElfW2() local 138 CONVERT_TO (shdr[cnt].sh_name, notcvt[cnt].sh_name); in ElfW2() 139 CONVERT_TO (shdr[cnt].sh_type, notcvt[cnt].sh_type); in ElfW2() 140 CONVERT_TO (shdr[cnt].sh_flags, notcvt[cnt].sh_flags); in ElfW2() 141 CONVERT_TO (shdr[cnt].sh_addr, notcvt[cnt].sh_addr); in ElfW2() 142 CONVERT_TO (shdr[cnt].sh_offset, notcvt[cnt].sh_offset); in ElfW2() 143 CONVERT_TO (shdr[cnt].sh_size, notcvt[cnt].sh_size); in ElfW2() 144 CONVERT_TO (shdr[cnt].sh_link, notcvt[cnt].sh_link); in ElfW2() 145 CONVERT_TO (shdr[cnt].sh_info, notcvt[cnt].sh_info); in ElfW2() 146 CONVERT_TO (shdr[cnt].sh_addralign, in ElfW2() [all …]
|
D | elf32_getphdr.c | 158 for (size_t cnt = 0; cnt < phnum; ++cnt) in ElfW2() local 160 CONVERT_TO (phdr[cnt].p_type, notcvt[cnt].p_type); in ElfW2() 161 CONVERT_TO (phdr[cnt].p_offset, notcvt[cnt].p_offset); in ElfW2() 162 CONVERT_TO (phdr[cnt].p_vaddr, notcvt[cnt].p_vaddr); in ElfW2() 163 CONVERT_TO (phdr[cnt].p_paddr, notcvt[cnt].p_paddr); in ElfW2() 164 CONVERT_TO (phdr[cnt].p_filesz, notcvt[cnt].p_filesz); in ElfW2() 165 CONVERT_TO (phdr[cnt].p_memsz, notcvt[cnt].p_memsz); in ElfW2() 166 CONVERT_TO (phdr[cnt].p_flags, notcvt[cnt].p_flags); in ElfW2() 167 CONVERT_TO (phdr[cnt].p_align, notcvt[cnt].p_align); in ElfW2() 208 for (size_t cnt = 0; cnt < phnum; ++cnt) in ElfW2() local [all …]
|
/external/elfutils/libdw/ |
D | dwarf_getpubnames.c | 47 size_t cnt = 0; in get_offsets() local 57 if (cnt >= allocated) in get_offsets() 88 mem[cnt].set_start = readp + 2 + 2 * len_bytes - startp; in get_offsets() 89 mem[cnt].address_len = len_bytes; in get_offsets() 91 if (mem[cnt].set_start >= max_size in get_offsets() 92 || len - (2 + 2 * len_bytes) > max_size - mem[cnt].set_start) in get_offsets() 108 &mem[cnt].cu_offset, IDX_debug_info, 3)) in get_offsets() 115 + mem[cnt].cu_offset); in get_offsets() 117 mem[cnt].cu_header_size = 23; in get_offsets() 119 mem[cnt].cu_header_size = 11; in get_offsets() [all …]
|
/external/clang/test/CoverageMapping/ |
D | break.c | 4 int cnt = 0; // CHECK-NEXT: File 0, [[@LINE+1]]:9 -> [[@LINE+1]]:18 = #0 in main() local 5 while(cnt < 100) { // CHECK-NEXT: File 0, [[@LINE]]:20 -> [[@LINE+3]]:4 = #1 in main() 7 ++cnt; // CHECK-NEXT: File 0, [[@LINE]]:5 -> [[@LINE+1]]:4 = 0 in main() 9 while(cnt < 100) { // CHECK-NEXT: File 0, [[@LINE]]:20 -> [[@LINE+6]]:4 = #2 in main() 12 ++cnt; // CHECK-NEXT: File 0, [[@LINE]]:7 -> [[@LINE+3]]:4 = 0 in main() 14 ++cnt; in main() 16 while(cnt < 100) { // CHECK-NEXT: File 0, [[@LINE]]:20 -> [[@LINE+7]]:4 = #3 in main() 18 if(cnt == 0) { // CHECK-NEXT: File 0, [[@LINE]]:18 -> [[@LINE+3]]:6 = #4 in main() 20 ++cnt; // CHECK-NEXT: File 0, [[@LINE]]:7 -> [[@LINE+1]]:6 = 0 in main() 22 ++cnt; // CHECK-NEXT: File 0, [[@LINE]]:5 -> [[@LINE+1]]:4 = (#3 - #4) in main() [all …]
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_barrierattr_init/ |
D | 2-1.c | 31 int cnt; in main() local 42 for (cnt = 0; cnt < BARRIER_NUM; cnt++) { in main() 43 if (pthread_barrier_init(&barriers[cnt], &ba, 1) != 0) { in main() 44 printf("Error at %dth initialization\n", cnt); in main() 59 for (cnt = 0; cnt < BARRIER_NUM; cnt++) { in main() 60 rc = pthread_barrier_wait(&barriers[cnt]); in main() 62 printf("Test Fail: Error at %dth wait, %s\n", cnt, in main() 69 for (cnt = 0; cnt < BARRIER_NUM; cnt++) { in main() 70 rc = pthread_barrier_destroy(&barriers[cnt]); in main() 72 printf("Error at %dth destruction, %s\n", cnt, in main()
|
/external/musl/src/network/ |
D | lookup_name.c | 28 int cnt = 0; in name_from_null() local 32 buf[cnt++] = (struct address){ .family = AF_INET }; in name_from_null() 34 buf[cnt++] = (struct address){ .family = AF_INET6 }; in name_from_null() 37 buf[cnt++] = (struct address){ .family = AF_INET, .addr = { 127,0,0,1 } }; in name_from_null() 39 buf[cnt++] = (struct address){ .family = AF_INET6, .addr = { [15] = 1 } }; in name_from_null() 41 return cnt; in name_from_null() 53 int cnt = 0, badfam = 0, have_canon = 0; in name_from_hosts() local 64 while (fgets(line, sizeof line, f) && cnt < MAXADDRS) { in name_from_hosts() 75 switch (name_from_numeric(buf+cnt, line, family)) { in name_from_hosts() 77 cnt++; in name_from_hosts() [all …]
|
D | lookup_serv.c | 15 int cnt = 0; in __lookup_serv() local 56 buf[cnt].port = port; in __lookup_serv() 57 buf[cnt].socktype = SOCK_STREAM; in __lookup_serv() 58 buf[cnt++].proto = IPPROTO_TCP; in __lookup_serv() 61 buf[cnt].port = port; in __lookup_serv() 62 buf[cnt].socktype = SOCK_DGRAM; in __lookup_serv() 63 buf[cnt++].proto = IPPROTO_UDP; in __lookup_serv() 65 return cnt; in __lookup_serv() 83 while (fgets(line, sizeof line, f) && cnt < MAXSERVS) { in __lookup_serv() 101 buf[cnt].port = port; in __lookup_serv() [all …]
|
/external/rust/crates/futures-executor/tests/ |
D | local_pool.rs | 29 let mut cnt = 0; in run_until_single_future() localVariable 34 cnt += 1; in run_until_single_future() 39 assert_eq!(cnt, 1); in run_until_single_future() 75 let cnt = Rc::new(Cell::new(0)); in run_executes_spawned() localVariable 76 let cnt2 = cnt.clone(); in run_executes_spawned() 100 assert_eq!(cnt.get(), 1); in run_executes_spawned() 107 let cnt = Rc::new(Cell::new(0)); in run_spawn_many() localVariable 113 let cnt = cnt.clone(); in run_spawn_many() localVariable 117 cnt.set(cnt.get() + 1); in run_spawn_many() 126 assert_eq!(cnt.get(), ITER); in run_spawn_many() [all …]
|
/external/linux-kselftest/tools/testing/selftests/ftrace/test.d/ftrace/ |
D | func_traceonoff_triggers.tc | 33 cnt=`cnt_trace` 34 if [ $cnt -ne 0 ]; then 46 cnt=`cnt_trace` 47 if [ $cnt -eq 0 ]; then 75 cnt=`grep schedule set_ftrace_filter | wc -l` 76 if [ $cnt -ne 1 ]; then 80 cnt=`cnt_trace` 84 if [ $cnt -ne $cnt2 ]; then 103 cnt=`cnt_trace` 104 if [ $cnt -ne 0 ]; then [all …]
|
/external/musl/src/malloc/mallocng/ |
D | malloc.c | 150 int cnt = m->mem->active_idx + 2; in try_avail() local 152 int span = UNIT + size*cnt; in try_avail() 155 cnt++; in try_avail() 158 if (cnt > m->last_idx+1) in try_avail() 159 cnt = m->last_idx+1; in try_avail() 160 m->mem->active_idx = cnt-1; in try_avail() 177 int i = 0, cnt; in alloc_group() local 187 cnt = small_cnt_tab[sc][i]; in alloc_group() 192 cnt = med_cnt_tab[sc&3]; in alloc_group() 195 while (!(cnt&1) && 4*cnt > usage) in alloc_group() [all …]
|
/external/perfetto/test/trace_processor/diff_tests/android/ |
D | android_blocking_calls_cuj_metric.out | 14 cnt: 4 32 cnt: 4 50 cnt: 1 57 cnt: 1 64 cnt: 1 71 cnt: 1 78 cnt: 1 85 cnt: 1 92 cnt: 1 99 cnt: 1 [all …]
|
/external/ltp/testcases/kernel/syscalls/link/ |
D | link05.c | 25 int cnt; in verify_link() local 29 for (cnt = 1; cnt < nlinks; cnt++) { in verify_link() 30 sprintf(lname, "%s_%d", fname, cnt); in verify_link() 36 for (cnt = 1; cnt < nlinks; cnt++) { in verify_link() 37 sprintf(lname, "%s_%d", fname, cnt); in verify_link() 53 if (cnt >= nlinks) { in verify_link() 61 for (cnt = 1; cnt < nlinks; cnt++) { in verify_link() 62 sprintf(lname, "%s_%d", fname, cnt); in verify_link()
|
/external/llvm/test/CodeGen/AArch64/ |
D | arm64-vpopcnt.ll | 7 ; CHECK: cnt.8b 9 %cnt = tail call <8 x i8> @llvm.ctpop.v8i8(<8 x i8> %x) 10 ret <8 x i8> %cnt 16 ; CHECK: cnt.8b 18 %cnt = tail call <4 x i16> @llvm.ctpop.v4i16(<4 x i16> %x) 19 ret <4 x i16> %cnt 25 ; CHECK: cnt.8b 27 %cnt = tail call <2 x i32> @llvm.ctpop.v2i32(<2 x i32> %x) 28 ret <2 x i32> %cnt 35 ; CHECK: cnt.16b [all …]
|
/external/llvm/test/CodeGen/X86/ |
D | lzcnt-tzcnt.ll | 10 %cnt = tail call i16 @llvm.ctlz.i16(i16 %v, i1 true) 12 %cond = select i1 %tobool, i16 16, i16 %cnt 21 %cnt = tail call i32 @llvm.ctlz.i32(i32 %v, i1 true) 23 %cond = select i1 %tobool, i32 32, i32 %cnt 32 %cnt = tail call i64 @llvm.ctlz.i64(i64 %v, i1 true) 34 %cond = select i1 %tobool, i64 64, i64 %cnt 43 %cnt = tail call i16 @llvm.ctlz.i16(i16 %v, i1 true) 45 %cond = select i1 %tobool, i16 16, i16 %cnt 54 %cnt = tail call i32 @llvm.ctlz.i32(i32 %v, i1 true) 56 %cond = select i1 %tobool, i32 32, i32 %cnt [all …]
|
/external/fec/ |
D | peakval.c | 8 int peakval_port(signed short *b,int cnt); 10 int peakval_mmx(signed short *b,int cnt); 11 int peakval_sse(signed short *b,int cnt); 12 int peakval_sse2(signed short *b,int cnt); 16 int peakval_av(signed short *b,int cnt); 19 int peakval(signed short *b,int cnt){ in peakval() argument 25 return peakval_port(b,cnt); in peakval() 28 return peakval_mmx(b,cnt); in peakval() 30 return peakval_sse(b,cnt); in peakval() 32 return peakval_sse2(b,cnt); in peakval() [all …]
|
/external/ltp/testcases/kernel/fs/doio/ |
D | datapid.c | 88 int cnt; in datapidgen() local 100 if (cnt = (offset % NBPW)) { /* partial word */ in datapidgen() 102 woff = offset - cnt; in datapidgen() 104 printf("partial at beginning, cnt = %d, woff = %d\n", cnt, in datapidgen() 114 for (tmp = 0; tmp < cnt; tmp++) { /* skip unused bytes */ in datapidgen() 118 for (; boff < (NBPW - cnt) && boff < bsize; boff++, chr++) { in datapidgen() 131 for (cnt = 0; cnt < num_full_words; woff += NBPW, cnt++) { in datapidgen() 153 if (cnt = ((bsize - boff) % NBPW)) { in datapidgen() 163 for (tmp = 0; tmp < cnt && boff < bsize; tmp++, chr++) { in datapidgen() 185 int cnt; in datapidchk() local [all …]
|
/external/capstone/suite/cstest/src/ |
D | helper.c | 11 int cnt; in split() local 13 cnt = 0; in split() 18 result = (char **)realloc(result, sizeof(char *) * (cnt + 1)); in split() 19 result[cnt] = (char *)calloc(1, sizeof(char) * (int)(token - src + 10)); in split() 20 memcpy(result[cnt], src, token - src); in split() 21 result[cnt][token - src] = '\0'; in split() 23 cnt ++; in split() 27 result = (char **)realloc(result, sizeof(char *) * (cnt + 1)); in split() 28 result[cnt] = strdup(src); in split() 29 cnt ++; in split() [all …]
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_barrier_wait/ |
D | 2-1.c | 71 int cnt; in main() local 86 for (cnt = 0; cnt < THREAD_NUM; cnt++) { in main() 88 (&child_threads[cnt], NULL, fn_chld, &cnt) != 0) { in main() 90 cnt); in main() 96 for (cnt = 0; cnt < THREAD_NUM; cnt++) { in main() 97 if (pthread_join(child_threads[cnt], NULL) != 0) { in main() 99 cnt); in main()
|