Home
last modified time | relevance | path

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

12345678910>>...22

/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 …]
Dasm-tst6.c40 size_t cnt; in main() local
58 for (cnt = 0; cnt < 22000; ++cnt) in main()
65 snprintf (buf, sizeof (buf), ".grp%zu", cnt); in main()
69 printf ("cannot section group %zu: %s\n", cnt, asm_errmsg (-1)); in main()
79 cnt, asm_errmsg (-1)); in main()
85 snprintf (buf, sizeof (buf), "%zu", cnt); in main()
96 if (asm_adduint32 (scn, cnt) != 0) in main()
108 cnt, asm_errmsg (-1)); in main()
118 cnt, asm_errmsg (-1)); in main()
124 if (asm_adduint32 (scn, cnt) != 0) in main()
Dasm-tst3.c64 size_t cnt; in main() local
170 for (cnt = 1; cnt < 5; ++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 != scntypes[cnt]) in main()
204 printf ("section %zd's type differs\n", cnt); in main()
[all …]
Dasm-tst7.c37 size_t cnt; in main() local
96 for (cnt = 1; 1; ++cnt) in main()
102 scn = elf_getscn (elf, cnt); in main()
105 printf ("cannot get section %zd: %s\n", cnt, elf_errmsg (-1)); in main()
114 cnt, elf_errmsg (-1)); in main()
122 for (cnt = 1; cnt< (shdr->sh_size in main()
124 ++cnt) in main()
129 if (cnt > 1) in main()
136 sym = gelf_getsym (elf_getdata (scn, NULL), cnt, &sym_mem); in main()
139 printf ("cannot get symbol %zu: %s\n", cnt, elf_errmsg (-1)); in main()
/external/elfutils/src/
Dstrip.c439 size_t cnt; in handle_elf() local
551 for (cnt = 0; cnt < phnum; ++cnt) in handle_elf()
554 GElf_Phdr *phdr = gelf_getphdr (elf, cnt, &phdr_mem); in handle_elf()
556 || unlikely (gelf_update_phdr (newelf, cnt, phdr) == 0)) in handle_elf()
575 for (cnt = 0; cnt < phnum; ++cnt) in handle_elf()
578 GElf_Phdr *phdr = gelf_getphdr (elf, cnt, &phdr_mem); in handle_elf()
580 || unlikely (gelf_update_phdr (debugelf, cnt, phdr) == 0)) in handle_elf()
615 cnt = 1; in handle_elf()
620 elf_assert (elf_ndxscn (scn) == cnt); in handle_elf()
622 shdr_info[cnt].scn = scn; in handle_elf()
[all …]
Delflint.c357 size_t cnt; in check_elf_header() local
397 for (cnt = EI_PAD; cnt < EI_NIDENT; ++cnt) in check_elf_header()
398 if (ehdr->e_ident[cnt] != 0) in check_elf_header()
399 ERROR (gettext ("e_ident[%zu] is not zero\n"), cnt); in check_elf_header()
407 for (cnt = 0; cnt < nvalid_e_machine; ++cnt) in check_elf_header()
408 if (valid_e_machine[cnt] == ehdr->e_machine) in check_elf_header()
410 if (cnt == nvalid_e_machine) in check_elf_header()
542 size_t cnt; in check_scn_group() local
544 for (cnt = idx + 1; cnt < shnum; ++cnt) in check_scn_group()
546 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 …]
Dgnuhash_xlate.h45 for (unsigned int cnt = 0; cnt < 4; ++cnt) in elf_cvt_gnuhash() local
49 dest32[cnt] = bswap_32 (src32[cnt]); in elf_cvt_gnuhash()
58 for (unsigned int cnt = 0; cnt < bitmask_words; ++cnt) in elf_cvt_gnuhash() local
62 dest64[cnt] = bswap_64 (src64[cnt]); in elf_cvt_gnuhash()
/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/opencv3/modules/python/test/
Dticket_6.py22 cnt=cv.CountNonZero(image)
23 self.assertEqual(cnt, 0, msg="Created image is not black. CountNonZero=%i" % cnt)
26 cnt=0
29 cnt+=cv.CountNonZero(image)
30 …self.assertEqual(cnt, 0, msg="Created images are not black. Mean CountNonZero=%.3f" % (1.*cnt/self…
33 cnt=0
38 cnt+=cv.CountNonZero(image)
40 …self.assertEqual(cnt, 0, msg="Memorized images are not black. Mean CountNonZero=%.3f" % (1.*cnt/se…
45 cnt=cv.CountNonZero(image)
46 self.assertEqual(cnt, 0, msg="After tostring(): CountNonZero=%i" % cnt)
[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/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/libvpx/libvpx/vp8/common/
Dfindnearmv.c31 int cnt[4], in vp8_find_near_mvs()
41 int *cntx = cnt; in vp8_find_near_mvs()
46 cnt[0] = cnt[1] = cnt[2] = cnt[3] = 0; in vp8_find_near_mvs()
80 cnt[CNT_INTRA] += 2; in vp8_find_near_mvs()
102 cnt[CNT_INTRA] += 1; in vp8_find_near_mvs()
106 if (cnt[CNT_SPLITMV]) in vp8_find_near_mvs()
110 cnt[CNT_NEAREST] += 1; in vp8_find_near_mvs()
113 cnt[CNT_SPLITMV] = ((above->mbmi.mode == SPLITMV) in vp8_find_near_mvs()
118 if (cnt[CNT_NEAR] > cnt[CNT_NEAREST]) in vp8_find_near_mvs()
121 tmp = cnt[CNT_NEAREST]; in vp8_find_near_mvs()
[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/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.c184 int cnt; in _nl_make_l10nflist() local
334 for (cnt = dirlist_count > 1 ? mask : mask - 1; cnt >= 0; --cnt) in _nl_make_l10nflist()
335 if ((cnt & ~mask) == 0 in _nl_make_l10nflist()
336 && ((cnt & CEN_SPECIFIC) == 0 || (cnt & XPG_SPECIFIC) == 0) in _nl_make_l10nflist()
337 && ((cnt & XPG_CODESET) == 0 || (cnt & XPG_NORM_CODESET) == 0)) in _nl_make_l10nflist()
348 cnt, language, territory, codeset, in _nl_make_l10nflist()
355 cnt, language, territory, codeset, in _nl_make_l10nflist()
375 size_t cnt; in _nl_normalize_codeset() local
377 for (cnt = 0; cnt < name_len; ++cnt) in _nl_normalize_codeset()
378 if (isalnum ((unsigned char) codeset[cnt])) in _nl_normalize_codeset()
[all …]
/external/opencv3/samples/python2/
Dsquares.py28 for cnt in contours:
29 cnt_len = cv2.arcLength(cnt, True)
30 cnt = cv2.approxPolyDP(cnt, 0.02*cnt_len, True)
31 if len(cnt) == 4 and cv2.contourArea(cnt) > 1000 and cv2.isContourConvex(cnt):
32 cnt = cnt.reshape(-1, 2)
33 … max_cos = np.max([angle_cos( cnt[i], cnt[(i+1) % 4], cnt[(i+2) % 4] ) for i in xrange(4)])
35 squares.append(cnt)
/external/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 …]
/external/libvpx/libvpx/vpx_dsp/mips/
Dvpx_convolve_copy_msa.c16 int32_t cnt; in copy_width8_msa() local
21 for (cnt = (height / 12); cnt--;) { in copy_width8_msa()
50 for (cnt = height >> 3; cnt--;) { in copy_width8_msa()
69 for (cnt = (height / 4); cnt--;) { in copy_width8_msa()
81 for (cnt = (height / 2); cnt--;) { in copy_width8_msa()
98 int32_t cnt, loop_cnt; in copy_16multx8mult_msa() local
103 for (cnt = (width >> 4); cnt--;) { in copy_16multx8mult_msa()
124 int32_t cnt; in copy_width16_msa() local
128 for (cnt = (height / 12); cnt--;) { in copy_width16_msa()
142 for (cnt = (height >> 2); cnt--;) { in copy_width16_msa()
[all …]

12345678910>>...22