Home
last modified time | relevance | path

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

12345678910>>...38

/external/elfutils/tests/
Dtest-nlist.c46 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 …]
Dasm-tst9.c92 size_t cnt; in main() local
127 for (cnt = 0; cnt < ninput; ++cnt) in main()
129 if (asm_adduleb128 (scn, input[cnt]) != 0) in main()
132 (uint32_t) input[cnt], asm_errmsg (-1)); in main()
136 if (asm_addsleb128 (scn, input[cnt]) != 0) in main()
139 input[cnt], asm_errmsg (-1)); in main()
143 if (asm_adduleb128 (scn, -input[cnt]) != 0) in main()
146 (uint32_t) -input[cnt], asm_errmsg (-1)); in main()
150 if (asm_addsleb128 (scn, -input[cnt]) != 0) in main()
153 -input[cnt], asm_errmsg (-1)); in main()
[all …]
Dasm-tst2.c72 size_t cnt; in main() local
170 for (cnt = 1; cnt < 3; ++cnt) in main()
176 scn = elf_getscn (elf, cnt); in main()
179 printf ("cannot get section %zd: %s\n", cnt, elf_errmsg (-1)); in main()
188 cnt, elf_errmsg (-1)); in main()
194 scnnames[cnt]) != 0) in main()
196 printf ("section %zd's name differs: %s vs %s\n", cnt, in main()
198 scnnames[cnt]); in main()
202 if (shdr->sh_type != (cnt == 2 ? SHT_STRTAB : SHT_PROGBITS)) in main()
204 printf ("section %zd's type differs\n", cnt); in main()
[all …]
Dasm-tst1.c73 size_t cnt; in main() local
154 for (cnt = 1; cnt < 4; ++cnt) in main()
160 scn = elf_getscn (elf, cnt); in main()
163 printf ("cannot get section %zd: %s\n", cnt, elf_errmsg (-1)); in main()
172 cnt, elf_errmsg (-1)); in main()
178 scnnames[cnt]) != 0) in main()
180 printf ("section %zd's name differs: %s vs %s\n", cnt, in main()
182 scnnames[cnt]); in main()
186 if (shdr->sh_type != (cnt == 3 ? SHT_STRTAB : SHT_PROGBITS)) in main()
188 printf ("section %zd's type differs\n", cnt); in main()
[all …]
Dsectiondump.c41 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/
Dstrip.c957 size_t cnt; in handle_elf() local
1075 for (cnt = 0; cnt < phnum; ++cnt) in handle_elf()
1078 GElf_Phdr *phdr = gelf_getphdr (elf, cnt, &phdr_mem); in handle_elf()
1080 || unlikely (gelf_update_phdr (newelf, cnt, phdr) == 0)) in handle_elf()
1118 for (cnt = 0; cnt < phnum; ++cnt) in handle_elf()
1121 GElf_Phdr *phdr = gelf_getphdr (elf, cnt, &phdr_mem); in handle_elf()
1123 || unlikely (gelf_update_phdr (debugelf, cnt, phdr) == 0)) in handle_elf()
1164 cnt = 1; in handle_elf()
1169 elf_assert (elf_ndxscn (scn) == cnt); in handle_elf()
1171 shdr_info[cnt].scn = scn; in handle_elf()
[all …]
Delflint.c343 size_t cnt; in check_elf_header() local
383 for (cnt = EI_PAD; cnt < EI_NIDENT; ++cnt) in check_elf_header()
384 if (ehdr->e_ident[cnt] != 0) in check_elf_header()
385 ERROR (gettext ("e_ident[%zu] is not zero\n"), cnt); in check_elf_header()
393 for (cnt = 0; cnt < nvalid_e_machine; ++cnt) in check_elf_header()
394 if (valid_e_machine[cnt] == ehdr->e_machine) in check_elf_header()
396 if (cnt == nvalid_e_machine) in check_elf_header()
559 size_t cnt; in check_scn_group() local
561 for (cnt = idx + 1; cnt < shnum; ++cnt) in check_scn_group()
563 Elf_Scn *scn = elf_getscn (ebl->elf, cnt); in check_scn_group()
[all …]
/external/elfutils/libelf/
Delf32_getshdr.c138 for (size_t cnt = 0; cnt < shnum; ++cnt) in ElfW2() local
140 CONVERT_TO (shdr[cnt].sh_name, notcvt[cnt].sh_name); in ElfW2()
141 CONVERT_TO (shdr[cnt].sh_type, notcvt[cnt].sh_type); in ElfW2()
142 CONVERT_TO (shdr[cnt].sh_flags, notcvt[cnt].sh_flags); in ElfW2()
143 CONVERT_TO (shdr[cnt].sh_addr, notcvt[cnt].sh_addr); in ElfW2()
144 CONVERT_TO (shdr[cnt].sh_offset, notcvt[cnt].sh_offset); in ElfW2()
145 CONVERT_TO (shdr[cnt].sh_size, notcvt[cnt].sh_size); in ElfW2()
146 CONVERT_TO (shdr[cnt].sh_link, notcvt[cnt].sh_link); in ElfW2()
147 CONVERT_TO (shdr[cnt].sh_info, notcvt[cnt].sh_info); in ElfW2()
148 CONVERT_TO (shdr[cnt].sh_addralign, in ElfW2()
[all …]
Delf32_getphdr.c160 for (size_t cnt = 0; cnt < phnum; ++cnt) in ElfW2() local
162 CONVERT_TO (phdr[cnt].p_type, notcvt[cnt].p_type); in ElfW2()
163 CONVERT_TO (phdr[cnt].p_offset, notcvt[cnt].p_offset); in ElfW2()
164 CONVERT_TO (phdr[cnt].p_vaddr, notcvt[cnt].p_vaddr); in ElfW2()
165 CONVERT_TO (phdr[cnt].p_paddr, notcvt[cnt].p_paddr); in ElfW2()
166 CONVERT_TO (phdr[cnt].p_filesz, notcvt[cnt].p_filesz); in ElfW2()
167 CONVERT_TO (phdr[cnt].p_memsz, notcvt[cnt].p_memsz); in ElfW2()
168 CONVERT_TO (phdr[cnt].p_flags, notcvt[cnt].p_flags); in ElfW2()
169 CONVERT_TO (phdr[cnt].p_align, notcvt[cnt].p_align); in ElfW2()
210 for (size_t cnt = 0; cnt < phnum; ++cnt) in ElfW2() local
[all …]
/external/u-boot/common/
Dmemsize.c31 long cnt; in get_ram_size() local
36 for (cnt = (maxsize / sizeof(long)) >> 1; cnt > 0; cnt >>= 1) { in get_ram_size()
37 addr = base + cnt; /* pointer arith! */ in get_ram_size()
41 *addr = ~cnt; in get_ram_size()
55 for (cnt = 1; cnt < maxsize / sizeof(long); cnt <<= 1) { in get_ram_size()
56 addr = base + cnt; in get_ram_size()
63 for (cnt = 1; cnt < maxsize / sizeof(long); cnt <<= 1) { in get_ram_size()
64 addr = base + cnt; /* pointer arith! */ in get_ram_size()
67 if (val != ~cnt) { in get_ram_size()
68 size = cnt * sizeof(long); in get_ram_size()
[all …]
/external/elfutils/libdw/
Ddwarf_getpubnames.c47 size_t cnt = 0; in get_offsets() local
57 if (cnt >= allocated) in get_offsets()
89 mem[cnt].set_start = readp + 2 + 2 * len_bytes - startp; in get_offsets()
90 mem[cnt].address_len = len_bytes; in get_offsets()
92 if (mem[cnt].set_start >= max_size in get_offsets()
93 || len - (2 + 2 * len_bytes) > max_size - mem[cnt].set_start) in get_offsets()
109 &mem[cnt].cu_offset, IDX_debug_info, 3)) in get_offsets()
116 + mem[cnt].cu_offset); in get_offsets()
118 mem[cnt].cu_header_size = 23; in get_offsets()
120 mem[cnt].cu_header_size = 11; in get_offsets()
[all …]
/external/u-boot/drivers/bios_emulator/x86emu/
Dprim_ops.c726 unsigned int res, cnt, mask, cf; in rcl_byte() local
755 if ((cnt = s % 9) != 0) { in rcl_byte()
758 cf = (d >> (8 - cnt)) & 0x1; in rcl_byte()
764 res = (d << cnt) & 0xff; in rcl_byte()
772 mask = (1 << (cnt - 1)) - 1; in rcl_byte()
773 res |= (d >> (9 - cnt)) & mask; in rcl_byte()
778 res |= 1 << (cnt - 1); in rcl_byte()
786 CONDITIONAL_SET_FLAG(cnt == 1 && XOR2(cf + ((res >> 6) & 0x2)), in rcl_byte()
799 unsigned int res, cnt, mask, cf; in rcl_word() local
802 if ((cnt = s % 17) != 0) { in rcl_word()
[all …]
/external/clang/test/CoverageMapping/
Dbreak.c4 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/
D2-1.c31 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/linux-kselftest/tools/testing/selftests/ftrace/test.d/ftrace/
Dfunc_traceonoff_triggers.tc36 cnt=`cnt_trace`
37 if [ $cnt -ne 0 ]; then
49 cnt=`cnt_trace`
50 if [ $cnt -eq 0 ]; then
78 cnt=`grep schedule set_ftrace_filter | wc -l`
79 if [ $cnt -ne 1 ]; then
83 cnt=`cnt_trace`
87 if [ $cnt -ne $cnt2 ]; then
106 cnt=`cnt_trace`
107 if [ $cnt -ne 0 ]; then
[all …]
/external/llvm/test/CodeGen/X86/
Dlzcnt-tzcnt.ll10 %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/llvm/test/CodeGen/AArch64/
Darm64-vpopcnt.ll7 ; 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/swiftshader/third_party/llvm-7.0/llvm/test/CodeGen/AArch64/
Darm64-vpopcnt.ll6 ; CHECK: cnt.8b
8 %cnt = tail call <8 x i8> @llvm.ctpop.v8i8(<8 x i8> %x)
9 ret <8 x i8> %cnt
15 ; CHECK: cnt.8b
17 %cnt = tail call <4 x i16> @llvm.ctpop.v4i16(<4 x i16> %x)
18 ret <4 x i16> %cnt
24 ; CHECK: cnt.8b
26 %cnt = tail call <2 x i32> @llvm.ctpop.v2i32(<2 x i32> %x)
27 ret <2 x i32> %cnt
34 ; CHECK: cnt.16b
[all …]
/external/ltp/testcases/kernel/syscalls/readdir/
Dreaddir01.c151 int cnt; in main() local
190 for (cnt = 0; cnt < nfiles; cnt++) { in main()
192 sprintf(fname, "%s%d", Basename, cnt); in main()
213 cnt = 0; in main()
218 cnt++; in main()
224 cnt + 1, errno, strerror(errno)); in main()
226 if (cnt == nfiles) { in main()
230 } else if (cnt > nfiles) { in main()
234 nfiles, cnt); in main()
239 nfiles, cnt); in main()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/test/CodeGen/X86/
Dlzcnt-tzcnt.ll15 %cnt = tail call i16 @llvm.ctlz.i16(i16 %v, i1 true)
17 %cond = select i1 %tobool, i16 16, i16 %cnt
27 %cnt = tail call i32 @llvm.ctlz.i32(i32 %v, i1 true)
29 %cond = select i1 %tobool, i32 32, i32 %cnt
39 %cnt = tail call i64 @llvm.ctlz.i64(i64 %v, i1 true)
41 %cond = select i1 %tobool, i64 64, i64 %cnt
51 %cnt = tail call i16 @llvm.ctlz.i16(i16 %v, i1 true)
53 %cond = select i1 %tobool, i16 16, i16 %cnt
63 %cnt = tail call i32 @llvm.ctlz.i32(i32 %v, i1 true)
65 %cond = select i1 %tobool, i32 32, i32 %cnt
[all …]
/external/fec/
Dpeakval.c8 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/
Ddatapid.c88 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/ltp/testcases/kernel/syscalls/link/
Dlink05.c73 int cnt; in main() local
93 for (cnt = 1; cnt < nlinks; cnt++) { in main()
94 sprintf(lname, "%s%d", fname, cnt); in main()
107 for (cnt = 1; cnt < nlinks; cnt++) { in main()
108 sprintf(lname, "%s%d", fname, cnt); in main()
123 if (cnt >= nlinks) { in main()
131 for (cnt = 1; cnt < nlinks; cnt++) { in main()
132 sprintf(lname, "%s%d", fname, cnt); in main()
/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 …]
/external/swiftshader/third_party/llvm-7.0/llvm/test/CodeGen/BPF/
Dshifts.ll3 define zeroext i8 @lshr8(i8 zeroext %a, i8 zeroext %cnt) nounwind readnone {
7 %shr = lshr i8 %a, %cnt
11 define signext i8 @ashr8(i8 signext %a, i8 zeroext %cnt) nounwind readnone {
15 %shr = ashr i8 %a, %cnt
19 define zeroext i8 @shl8(i8 zeroext %a, i8 zeroext %cnt) nounwind readnone {
23 %shl = shl i8 %a, %cnt
27 define zeroext i16 @lshr16(i16 zeroext %a, i16 zeroext %cnt) nounwind readnone {
31 %shr = lshr i16 %a, %cnt
35 define signext i16 @ashr16(i16 signext %a, i16 zeroext %cnt) nounwind readnone {
39 %shr = ashr i16 %a, %cnt
[all …]

12345678910>>...38