Home
last modified time | relevance | path

Searched refs:blk (Results 1 – 25 of 139) sorted by relevance

123456

/external/pdfium/third_party/bigint/
DBigUnsigned.cc33 blk[i] = 0; in setBlock()
43 blk[j] = 0; in setBlock()
46 blk[i] = newBlock; in setBlock()
86 if (blk[i] == x.blk[i]) in compareTo()
88 else if (blk[i] > x.blk[i]) in compareTo()
160 temp = a2->blk[i] + b2->blk[i]; in add()
163 carryOut = (temp < a2->blk[i]); in add()
169 blk[i] = temp; // Save the addition result in add()
175 temp = a2->blk[i] + 1; in add()
177 blk[i] = temp; in add()
[all …]
DNumberlikeArray.hh41 Blk *blk; member in NumberlikeArray
45 blk = (cap > 0) ? (new Blk[cap]) : NULL; in NumberlikeArray()
53 blk = NULL; in NumberlikeArray()
58 delete [] blk; in ~NumberlikeArray()
81 Blk getBlock(Index i) const { return blk[i]; } in getBlock()
105 delete [] blk; in allocate()
108 blk = new Blk[cap]; in allocate()
116 Blk *oldBlk = blk; in allocateAndCopy()
119 blk = new Blk[cap]; in allocateAndCopy()
123 blk[i] = oldBlk[i]; in allocateAndCopy()
[all …]
DBigUnsignedInABase.cc17 if (blk[i] >= base) in BigUnsignedInABase()
59 blk[digitNum] = lastDigit.toUnsignedShort(); in BigUnsignedInABase()
74 ans.add(temp, BigUnsigned(blk[digitNum])); in operator BigUnsigned()
97 blk[digitNum] = theSymbol - '0'; in BigUnsignedInABase()
99 blk[digitNum] = theSymbol - 'A' + 10; in BigUnsignedInABase()
101 blk[digitNum] = theSymbol - 'a' + 10; in BigUnsignedInABase()
105 if (blk[digitNum] >= base) in BigUnsignedInABase()
122 Digit theDigit = blk[digitNum]; in operator std::string()
/external/e2fsprogs/lib/quota/
Dquotaio_tree.c61 static void read_blk(struct quota_handle *h, uint blk, dqbuf_t buf) in read_blk() argument
65 err = h->e2fs_read(&h->qh_qf, blk << QT_BLKSIZE_BITS, buf, in read_blk()
68 log_err("Cannot read block %u: %s", blk, strerror(errno)); in read_blk()
74 static int write_blk(struct quota_handle *h, uint blk, dqbuf_t buf) in write_blk() argument
78 err = h->e2fs_write(&h->qh_qf, blk << QT_BLKSIZE_BITS, buf, in write_blk()
81 log_err("Cannot write block (%u): %s", blk, strerror(errno)); in write_blk()
93 int blk; in get_free_dqblk() local
99 blk = info->dqi_free_blk; in get_free_dqblk()
100 read_blk(h, blk, buf); in get_free_dqblk()
111 blk = info->dqi_blocks++; in get_free_dqblk()
[all …]
/external/libpcap/
Dgrammar.c623 } blk; member
2070 finish_parse((yyvsp[0].blk).b); in yyparse()
2077 { (yyval.blk).q = qerr; } in yyparse()
2083 { gen_and((yyvsp[-2].blk).b, (yyvsp[0].blk).b); (yyval.blk) = (yyvsp[0].blk); } in yyparse()
2089 { gen_and((yyvsp[-2].blk).b, (yyvsp[0].blk).b); (yyval.blk) = (yyvsp[0].blk); } in yyparse()
2095 { gen_or((yyvsp[-2].blk).b, (yyvsp[0].blk).b); (yyval.blk) = (yyvsp[0].blk); } in yyparse()
2101 { gen_or((yyvsp[-2].blk).b, (yyvsp[0].blk).b); (yyval.blk) = (yyvsp[0].blk); } in yyparse()
2107 { (yyval.blk) = (yyvsp[-1].blk); } in yyparse()
2113 { (yyval.blk) = (yyvsp[-1].blk); } in yyparse()
2119 { (yyval.blk).b = gen_ncode(NULL, (bpf_u_int32)(yyvsp[0].i), in yyparse()
[all …]
Dgrammar.y268 } blk; member
272 %type <blk> expr id nid pid term rterm qid
273 %type <blk> head
277 %type <blk> and or paren not null prog
280 %type <blk> atmfield
281 %type <blk> atmfieldvalue atmvalue atmlistvalue
283 %type <blk> mtp3field
284 %type <blk> mtp3fieldvalue mtp3value mtp3listvalue
344 and: AND { $$ = $<blk>0; }
346 or: OR { $$ = $<blk>0; }
[all …]
/external/e2fsprogs/e2fsck/
Dea_refcount.c113 blk64_t blk, int pos) in insert_refcount_el() argument
144 el->ea_blk = blk; in insert_refcount_el()
155 blk64_t blk, int create) in get_refcount_el() argument
165 (blk > refcount->list[high].ea_blk))) { in get_refcount_el()
169 return insert_refcount_el(refcount, blk, in get_refcount_el()
177 if (blk == refcount->list[refcount->cursor].ea_blk) in get_refcount_el()
180 printf("Non-cursor get_refcount_el: %u\n", blk); in get_refcount_el()
184 if (blk == refcount->list[mid].ea_blk) { in get_refcount_el()
188 if (blk < refcount->list[mid].ea_blk) in get_refcount_el()
203 return insert_refcount_el(refcount, blk, low); in get_refcount_el()
[all …]
Dpass1.c412 blk64_t blk; in check_is_really_dir() local
449 &blk)) in check_is_really_dir()
455 blk = inode->i_block[i]; in check_is_really_dir()
456 if (!blk) in check_is_really_dir()
461 if (blk < ctx->fs->super->s_first_data_block || in check_is_really_dir()
462 blk >= ext2fs_blocks_count(ctx->fs->super) || in check_is_really_dir()
464 blk)) in check_is_really_dir()
467 blk = inode->i_block[0]; in check_is_really_dir()
481 retval = ext2fs_read_dir_block3(ctx->fs, blk, buf, 0); in check_is_really_dir()
1481 blk64_t blk; in adjust_extattr_refcount() local
[all …]
/external/e2fsprogs/lib/ext2fs/
Dcheck_desc.c39 blk64_t blk, b; in ext2fs_check_desc() local
64 blk = ext2fs_block_bitmap_loc(fs, i); in ext2fs_check_desc()
65 if (blk < first_block || blk > last_block || in ext2fs_check_desc()
66 ext2fs_test_block_bitmap2(bmap, blk)) { in ext2fs_check_desc()
70 ext2fs_mark_block_bitmap2(bmap, blk); in ext2fs_check_desc()
75 blk = ext2fs_inode_bitmap_loc(fs, i); in ext2fs_check_desc()
76 if (blk < first_block || blk > last_block || in ext2fs_check_desc()
77 ext2fs_test_block_bitmap2(bmap, blk)) { in ext2fs_check_desc()
81 ext2fs_mark_block_bitmap2(bmap, blk); in ext2fs_check_desc()
86 blk = ext2fs_inode_table_loc(fs, i); in ext2fs_check_desc()
[all …]
Dbadblocks.c107 errcode_t ext2fs_u32_list_add(ext2_u32_list bb, __u32 blk) in ext2fs_u32_list_add() argument
130 if ((bb->num != 0) && (bb->list[i] == blk)) in ext2fs_u32_list_add()
132 if ((bb->num == 0) || (bb->list[i] < blk)) { in ext2fs_u32_list_add()
133 bb->list[bb->num++] = blk; in ext2fs_u32_list_add()
139 if (bb->list[i] == blk) in ext2fs_u32_list_add()
141 if (bb->list[i] > blk) { in ext2fs_u32_list_add()
148 bb->list[j] = blk; in ext2fs_u32_list_add()
153 errcode_t ext2fs_badblocks_list_add(ext2_badblocks_list bb, blk_t blk) in ext2fs_badblocks_list_add() argument
155 return ext2fs_u32_list_add((ext2_u32_list) bb, (__u32) blk); in ext2fs_badblocks_list_add()
162 int ext2fs_u32_list_find(ext2_u32_list bb, __u32 blk) in ext2fs_u32_list_find() argument
[all …]
Dblknum.c19 dgrp_t ext2fs_group_of_blk2(ext2_filsys fs, blk64_t blk) in ext2fs_group_of_blk2() argument
21 return (blk - fs->super->s_first_data_block) / in ext2fs_group_of_blk2()
102 void ext2fs_blocks_count_set(struct ext2_super_block *super, blk64_t blk) in ext2fs_blocks_count_set() argument
104 super->s_blocks_count = blk; in ext2fs_blocks_count_set()
106 super->s_blocks_count_hi = (__u64) blk >> 32; in ext2fs_blocks_count_set()
112 void ext2fs_blocks_count_add(struct ext2_super_block *super, blk64_t blk) in ext2fs_blocks_count_add() argument
115 tmp = ext2fs_blocks_count(super) + blk; in ext2fs_blocks_count_add()
132 void ext2fs_r_blocks_count_set(struct ext2_super_block *super, blk64_t blk) in ext2fs_r_blocks_count_set() argument
134 super->s_r_blocks_count = blk; in ext2fs_r_blocks_count_set()
136 super->s_r_blocks_count_hi = (__u64) blk >> 32; in ext2fs_r_blocks_count_set()
[all …]
Ddblist.c160 blk64_t blk, e2_blkcnt_t blockcnt) in ext2fs_add_dir_block2() argument
180 new_entry->blk = blk; in ext2fs_add_dir_block2()
193 blk64_t blk, e2_blkcnt_t blockcnt) in ext2fs_set_dir_block2() argument
203 dblist->list[i].blk = blk; in ext2fs_set_dir_block2()
252 if (db_a->blk != db_b->blk) in dir_block_cmp2()
253 return (int) (db_a->blk - db_b->blk); in dir_block_cmp2()
297 errcode_t ext2fs_add_dir_block(ext2_dblist dblist, ext2_ino_t ino, blk_t blk, in ext2fs_add_dir_block() argument
300 return ext2fs_add_dir_block2(dblist, ino, blk, blockcnt); in ext2fs_add_dir_block()
306 errcode_t ext2fs_set_dir_block(ext2_dblist dblist, ext2_ino_t ino, blk_t blk, in ext2fs_set_dir_block() argument
309 return ext2fs_set_dir_block2(dblist, ino, blk, blockcnt); in ext2fs_set_dir_block()
[all …]
Dalloc_stats.c61 void ext2fs_block_alloc_stats2(ext2_filsys fs, blk64_t blk, int inuse) in ext2fs_block_alloc_stats2() argument
63 int group = ext2fs_group_of_blk2(fs, blk); in ext2fs_block_alloc_stats2()
66 if (blk >= ext2fs_blocks_count(fs->super)) { in ext2fs_block_alloc_stats2()
68 "Illegal block number: %lu", (unsigned long) blk); in ext2fs_block_alloc_stats2()
73 ext2fs_mark_block_bitmap2(fs->block_map, blk); in ext2fs_block_alloc_stats2()
75 ext2fs_unmark_block_bitmap2(fs->block_map, blk); in ext2fs_block_alloc_stats2()
85 (fs->block_alloc_stats)(fs, (blk64_t) blk, inuse); in ext2fs_block_alloc_stats2()
88 void ext2fs_block_alloc_stats(ext2_filsys fs, blk_t blk, int inuse) in ext2fs_block_alloc_stats() argument
90 ext2fs_block_alloc_stats2(fs, blk, inuse); in ext2fs_block_alloc_stats()
95 blk64_t blk, in ext2fs_set_block_alloc_stats_callback() argument
[all …]
Drw_bitmaps.c39 blk64_t blk; in write_bitmaps() local
92 blk = ext2fs_block_bitmap_loc(fs, i); in write_bitmaps()
93 if (blk) { in write_bitmaps()
94 retval = io_channel_write_blk64(fs->io, blk, 1, in write_bitmaps()
117 blk = ext2fs_inode_bitmap_loc(fs, i); in write_bitmaps()
118 if (blk) { in write_bitmaps()
119 retval = io_channel_write_blk64(fs->io, blk, 1, in write_bitmaps()
157 blk64_t blk; in read_bitmaps() local
207 blk = (fs->image_header->offset_inodemap / fs->blocksize); in read_bitmaps()
210 retval = io_channel_read_blk64(fs->image_io, blk++, in read_bitmaps()
[all …]
Dbb_compat.c39 errcode_t badblocks_list_add(badblocks_list bb, blk_t blk) in badblocks_list_add() argument
41 return ext2fs_badblocks_list_add(bb, blk); in badblocks_list_add()
44 int badblocks_list_test(badblocks_list bb, blk_t blk) in badblocks_list_test() argument
46 return ext2fs_badblocks_list_test(bb, blk); in badblocks_list_test()
55 int badblocks_list_iterate(badblocks_iterate iter, blk_t *blk) in badblocks_list_iterate() argument
57 return ext2fs_badblocks_list_iterate(iter, blk); in badblocks_list_iterate()
Dalloc.c35 blk64_t blk, super_blk, old_desc_blk, new_desc_blk; in check_block_uninit() local
43 blk = ext2fs_group_first_block2(fs, group); in check_block_uninit()
54 for (i=0; i < fs->super->s_blocks_per_group; i++, blk++) in check_block_uninit()
55 ext2fs_fast_unmark_block_bitmap2(map, blk); in check_block_uninit()
57 blk = ext2fs_group_first_block2(fs, group); in check_block_uninit()
58 for (i=0; i < fs->super->s_blocks_per_group; i++, blk++) { in check_block_uninit()
59 if ((blk == super_blk) || in check_block_uninit()
61 (blk >= old_desc_blk) && in check_block_uninit()
62 (blk < old_desc_blk + old_desc_blocks)) || in check_block_uninit()
63 (new_desc_blk && (blk == new_desc_blk)) || in check_block_uninit()
[all …]
Dext_attr.c113 errcode_t ext2fs_adjust_ea_refcount2(ext2_filsys fs, blk64_t blk, in ext2fs_adjust_ea_refcount2() argument
121 if ((blk >= ext2fs_blocks_count(fs->super)) || in ext2fs_adjust_ea_refcount2()
122 (blk < fs->super->s_first_data_block)) in ext2fs_adjust_ea_refcount2()
132 retval = ext2fs_read_ext_attr2(fs, blk, block_buf); in ext2fs_adjust_ea_refcount2()
141 retval = ext2fs_write_ext_attr2(fs, blk, block_buf); in ext2fs_adjust_ea_refcount2()
151 errcode_t ext2fs_adjust_ea_refcount(ext2_filsys fs, blk_t blk, in ext2fs_adjust_ea_refcount() argument
155 return ext2fs_adjust_ea_refcount(fs, blk, block_buf, adjust, newcount); in ext2fs_adjust_ea_refcount()
/external/e2fsprogs/resize/
Dresize2fs.c59 #define IS_BLOCK_BM(fs, i, blk) ((blk) == ext2fs_block_bitmap_loc((fs),(i))) argument
60 #define IS_INODE_BM(fs, i, blk) ((blk) == ext2fs_inode_bitmap_loc((fs),(i))) argument
62 #define IS_INODE_TB(fs, i, blk) (((blk) >= ext2fs_inode_table_loc((fs), (i))) && \ argument
63 ((blk) < (ext2fs_inode_table_loc((fs), (i)) + \
228 blk64_t blk, lblk; in fix_uninit_block_bitmaps() local
240 blk = ext2fs_group_first_block2(fs, g); in fix_uninit_block_bitmaps()
242 ext2fs_unmark_block_bitmap_range2(fs->block_map, blk, in fix_uninit_block_bitmaps()
243 lblk - blk + 1); in fix_uninit_block_bitmaps()
250 for (i = 0, blk = ext2fs_inode_table_loc(fs, g); in fix_uninit_block_bitmaps()
252 i++, blk++) in fix_uninit_block_bitmaps()
[all …]
/external/e2fsprogs/debugfs/
Dunused.c29 blk64_t blk; in do_dump_unused() local
38 for (blk=current_fs->super->s_first_data_block; in do_dump_unused()
39 blk < ext2fs_blocks_count(current_fs->super); blk++) { in do_dump_unused()
40 if (ext2fs_test_block_bitmap2(current_fs->block_map,blk)) in do_dump_unused()
42 retval = io_channel_read_blk64(current_fs->io, blk, 1, buf); in do_dump_unused()
53 blk); in do_dump_unused()
Dicheck.c22 blk64_t blk; member
44 if (!bw->barray[i].ino && bw->barray[i].blk == *block_nr) { in icheck_proc()
88 if (strtoblk(argv[0], argv[i], &bw.barray[i-1].blk)) in do_icheck()
109 blk64_t blk; in do_icheck() local
116 blk = ext2fs_file_acl_block(current_fs, &inode); in do_icheck()
117 if (blk) { in do_icheck()
118 icheck_proc(current_fs, &blk, 0, in do_icheck()
122 ext2fs_file_acl_block_set(current_fs, &inode, blk); in do_icheck()
160 printf("%llu\t<block not found>\n", binfo->blk); in do_icheck()
163 printf("%llu\t%u\n", binfo->blk, binfo->ino); in do_icheck()
Dhtree.c34 blk64_t blk, char *buf) in htree_dump_leaf_node() argument
47 errcode = ext2fs_bmap2(fs, ino, inode, buf, 0, blk, 0, &pblk); in htree_dump_leaf_node()
50 "while mapping logical block %llu\n", blk); in htree_dump_leaf_node()
54 fprintf(pager, "Reading directory block %llu, phys %llu\n", blk, pblk); in htree_dump_leaf_node()
59 blk, pblk); in htree_dump_leaf_node()
73 (unsigned long) blk); in htree_dump_leaf_node()
81 blk); in htree_dump_leaf_node()
111 blk64_t blk, char *buf, int level);
160 blk64_t blk, char *buf, int level) in htree_dump_int_block() argument
172 errcode = ext2fs_bmap2(fs, ino, inode, buf, 0, blk, 0, &pblk); in htree_dump_int_block()
[all …]
/external/zlib/src/examples/
Dfitblk.c132 unsigned char *blk; /* intermediate and final stream */ in main() local
147 blk = malloc(size + EXCESS); in main()
152 if (ret != Z_OK || blk == NULL) in main()
157 def.next_out = blk; in main()
166 if (fwrite(blk, 1, have, stdout) != have || ferror(stdout)) in main()
172 free(blk); in main()
194 inf.next_in = blk; in main()
211 def.next_out = blk; in main()
219 if (fwrite(blk, 1, have, stdout) != have || ferror(stdout)) in main()
228 free(blk); in main()
/external/e2fsprogs/tests/progs/
Dtest_rel.c55 const char *str, blk_t *blk) in parse_block() argument
59 *blk = strtoul(str, &tmp, 0); in parse_block()
218 blk_t blk; in do_brel_get() local
226 if (parse_block(argv[0], "block", argv[1], &blk)) in do_brel_get()
228 retval = ext2fs_brel_get(brel, blk, &ent); in do_brel_get()
233 display_brel_entry(blk, &ent); in do_brel_get()
256 blk_t blk; in do_brel_next() local
261 retval = ext2fs_brel_next(brel, &blk, &ent); in do_brel_next()
266 if (blk == 0) { in do_brel_next()
270 display_brel_entry(blk, &ent); in do_brel_next()
[all …]
/external/clang/test/SemaObjCXX/
Darc-nsconsumed-errors.mm4 typedef void (^blk)(id, __attribute((ns_consumed)) id);
6 blk a = ^void (__attribute((ns_consumed)) id, __attribute((ns_consumed)) id){}; // expected-error {…
8 blk b = ^void (id, __attribute((ns_consumed)) id){};
10 blk c = ^void (__attribute((ns_consumed)) id, __attribute((ns_consumed)) id){}; // expected-error {…
12 blk d = ^void (id, id) {}; // expected-error {{cannot initialize a variable of type '__strong blk'}}
/external/mesa3d/src/gallium/drivers/radeon/
DAMDILCFGStructurizer.cpp2353 bool CFGStructurizer<PassT>::needMigrateBlock(BlockT *blk) { in needMigrateBlock() argument
2357 bool multiplePreds = blk && (blk->pred_size() > 1); in needMigrateBlock()
2362 unsigned blkSize = blk->size(); in needMigrateBlock()
2364 && (blkSize * (blk->pred_size() - 1) > cloneInstrThreshold)); in needMigrateBlock()
2413 void CFGStructurizer<PassT>::setLoopLandBlock(LoopT *loopRep, BlockT *blk) { in setLoopLandBlock() argument
2421 if (blk == NULL) { in setLoopLandBlock()
2422 blk = funcRep->CreateMachineBasicBlock(); in setLoopLandBlock()
2423 funcRep->push_back(blk); //insert to function in setLoopLandBlock()
2424 SHOWNEWBLK(blk, "DummyLandingBlock for loop without break: "); in setLoopLandBlock()
2427 theEntry->landBlk = blk; in setLoopLandBlock()
[all …]

123456