/external/pdfium/third_party/bigint/ |
D | BigUnsigned.cc | 33 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 …]
|
D | NumberlikeArray.hh | 41 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 …]
|
D | BigUnsignedInABase.cc | 17 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/support/ |
D | quotaio_tree.c | 62 static void read_blk(struct quota_handle *h, unsigned int blk, dqbuf_t buf) in read_blk() argument 66 err = h->e2fs_read(&h->qh_qf, blk << QT_BLKSIZE_BITS, buf, in read_blk() 69 log_err("Cannot read block %u: %s", blk, strerror(errno)); in read_blk() 75 static int write_blk(struct quota_handle *h, unsigned int blk, dqbuf_t buf) in write_blk() argument 79 err = h->e2fs_write(&h->qh_qf, blk << QT_BLKSIZE_BITS, buf, in write_blk() 82 log_err("Cannot write block (%u): %s", blk, strerror(errno)); in write_blk() 94 int blk; in get_free_dqblk() local 100 blk = info->dqi_free_blk; in get_free_dqblk() 101 read_blk(h, blk, buf); in get_free_dqblk() 112 blk = info->dqi_blocks++; in get_free_dqblk() [all …]
|
/external/f2fs-tools/fsck/ |
D | quotaio_tree.c | 63 static void read_blk(struct quota_handle *h, unsigned int blk, dqbuf_t buf) in read_blk() argument 67 err = h->read(&h->qh_qf, blk << QT_BLKSIZE_BITS, buf, in read_blk() 70 log_err("Cannot read block %u: %s", blk, strerror(errno)); in read_blk() 76 static int write_blk(struct quota_handle *h, unsigned int blk, dqbuf_t buf) in write_blk() argument 80 err = h->write(&h->qh_qf, blk << QT_BLKSIZE_BITS, buf, in write_blk() 83 log_err("Cannot write block (%u): %s", blk, strerror(errno)); in write_blk() 95 int blk; in get_free_dqblk() local 101 blk = info->dqi_free_blk; in get_free_dqblk() 102 read_blk(h, blk, buf); in get_free_dqblk() 113 blk = info->dqi_blocks++; in get_free_dqblk() [all …]
|
/external/libpcap/ |
D | grammar.c | 611 } blk; member 2065 finish_parse(cstate, (yyvsp[0].blk).b); in yyparse() 2072 { (yyval.blk).q = qerr; } in yyparse() 2078 { gen_and((yyvsp[-2].blk).b, (yyvsp[0].blk).b); (yyval.blk) = (yyvsp[0].blk); } in yyparse() 2084 { gen_and((yyvsp[-2].blk).b, (yyvsp[0].blk).b); (yyval.blk) = (yyvsp[0].blk); } in yyparse() 2090 { gen_or((yyvsp[-2].blk).b, (yyvsp[0].blk).b); (yyval.blk) = (yyvsp[0].blk); } in yyparse() 2096 { gen_or((yyvsp[-2].blk).b, (yyvsp[0].blk).b); (yyval.blk) = (yyvsp[0].blk); } in yyparse() 2102 { (yyval.blk) = (yyvsp[-1].blk); } in yyparse() 2108 { (yyval.blk) = (yyvsp[-1].blk); } in yyparse() 2114 { (yyval.blk).b = gen_ncode(cstate, NULL, (bpf_u_int32)(yyvsp[0].i), in yyparse() [all …]
|
D | grammar.y | 283 } blk; member 287 %type <blk> expr id nid pid term rterm qid 288 %type <blk> head 292 %type <blk> and or paren not null prog 295 %type <blk> atmfield 296 %type <blk> atmfieldvalue atmvalue atmlistvalue 298 %type <blk> mtp3field 299 %type <blk> mtp3fieldvalue mtp3value mtp3listvalue 359 and: AND { $$ = $<blk>0; } 361 or: OR { $$ = $<blk>0; } [all …]
|
/external/e2fsprogs/e2fsck/ |
D | ea_refcount.c | 114 blk64_t blk, int pos) in insert_refcount_el() argument 145 el->ea_blk = blk; in insert_refcount_el() 156 blk64_t blk, int create) in get_refcount_el() argument 166 (blk > refcount->list[high].ea_blk))) { in get_refcount_el() 170 return insert_refcount_el(refcount, blk, in get_refcount_el() 178 if (blk == refcount->list[refcount->cursor].ea_blk) in get_refcount_el() 181 printf("Non-cursor get_refcount_el: %u\n", blk); in get_refcount_el() 185 if (blk == refcount->list[mid].ea_blk) { in get_refcount_el() 189 if (blk < refcount->list[mid].ea_blk) in get_refcount_el() 204 return insert_refcount_el(refcount, blk, low); in get_refcount_el() [all …]
|
D | pass1.c | 558 blk64_t blk; in check_is_really_dir() local 635 &blk)) in check_is_really_dir() 641 blk = inode->i_block[i]; in check_is_really_dir() 642 if (!blk) in check_is_really_dir() 647 if (blk < ctx->fs->super->s_first_data_block || in check_is_really_dir() 648 blk >= ext2fs_blocks_count(ctx->fs->super) || in check_is_really_dir() 650 blk)) in check_is_really_dir() 653 blk = inode->i_block[0]; in check_is_really_dir() 667 retval = ext2fs_read_dir_block4(ctx->fs, blk, buf, 0, pctx->ino); in check_is_really_dir() 776 blk64_t blk = 0; in reserve_block_for_root_repair() local [all …]
|
/external/e2fsprogs/lib/ext2fs/ |
D | alloc_stats.c | 61 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() 65 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 …]
|
D | badblocks.c | 108 errcode_t ext2fs_u32_list_add(ext2_u32_list bb, __u32 blk) in ext2fs_u32_list_add() argument 131 if ((bb->num != 0) && (bb->list[i] == blk)) in ext2fs_u32_list_add() 133 if ((bb->num == 0) || (bb->list[i] < blk)) { in ext2fs_u32_list_add() 134 bb->list[bb->num++] = blk; in ext2fs_u32_list_add() 140 if (bb->list[i] == blk) in ext2fs_u32_list_add() 142 if (bb->list[i] > blk) { in ext2fs_u32_list_add() 149 bb->list[j] = blk; in ext2fs_u32_list_add() 154 errcode_t ext2fs_badblocks_list_add(ext2_badblocks_list bb, blk_t blk) in ext2fs_badblocks_list_add() argument 156 return ext2fs_u32_list_add((ext2_u32_list) bb, (__u32) blk); in ext2fs_badblocks_list_add() 163 int ext2fs_u32_list_find(ext2_u32_list bb, __u32 blk) in ext2fs_u32_list_find() argument [all …]
|
D | check_desc.c | 40 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 …]
|
D | rw_bitmaps.c | 40 blk64_t blk; in write_bitmaps() local 98 blk = ext2fs_block_bitmap_loc(fs, i); in write_bitmaps() 99 if (blk) { in write_bitmaps() 100 retval = io_channel_write_blk64(fs->io, blk, 1, in write_bitmaps() 129 blk = ext2fs_inode_bitmap_loc(fs, i); in write_bitmaps() 130 if (blk) { in write_bitmaps() 131 retval = io_channel_write_blk64(fs->io, blk, 1, in write_bitmaps() 162 blk64_t blk; in mark_uninit_bg_group_blocks() local 174 blk = ext2fs_inode_table_loc(fs, i); in mark_uninit_bg_group_blocks() 175 if (blk) in mark_uninit_bg_group_blocks() [all …]
|
D | blknum.c | 20 dgrp_t ext2fs_group_of_blk2(ext2_filsys fs, blk64_t blk) in ext2fs_group_of_blk2() argument 22 return (blk - fs->super->s_first_data_block) / in ext2fs_group_of_blk2() 101 void ext2fs_blocks_count_set(struct ext2_super_block *super, blk64_t blk) in ext2fs_blocks_count_set() argument 103 super->s_blocks_count = blk; in ext2fs_blocks_count_set() 105 super->s_blocks_count_hi = (__u64) blk >> 32; in ext2fs_blocks_count_set() 111 void ext2fs_blocks_count_add(struct ext2_super_block *super, blk64_t blk) in ext2fs_blocks_count_add() argument 114 tmp = ext2fs_blocks_count(super) + blk; in ext2fs_blocks_count_add() 131 void ext2fs_r_blocks_count_set(struct ext2_super_block *super, blk64_t blk) in ext2fs_r_blocks_count_set() argument 133 super->s_r_blocks_count = blk; in ext2fs_r_blocks_count_set() 135 super->s_r_blocks_count_hi = (__u64) blk >> 32; in ext2fs_r_blocks_count_set() [all …]
|
D | dblist.c | 133 blk64_t blk, e2_blkcnt_t blockcnt) in ext2fs_add_dir_block2() argument 153 new_entry->blk = blk; in ext2fs_add_dir_block2() 166 blk64_t blk, e2_blkcnt_t blockcnt) in ext2fs_set_dir_block2() argument 176 dblist->list[i].blk = blk; in ext2fs_set_dir_block2() 240 if (db_a->blk != db_b->blk) in dir_block_cmp2() 241 return (int) (db_a->blk - db_b->blk); in dir_block_cmp2() 285 errcode_t ext2fs_add_dir_block(ext2_dblist dblist, ext2_ino_t ino, blk_t blk, in ext2fs_add_dir_block() argument 288 return ext2fs_add_dir_block2(dblist, ino, blk, blockcnt); in ext2fs_add_dir_block() 294 errcode_t ext2fs_set_dir_block(ext2_dblist dblist, ext2_ino_t ino, blk_t blk, in ext2fs_set_dir_block() argument 297 return ext2fs_set_dir_block2(dblist, ino, blk, blockcnt); in ext2fs_set_dir_block() [all …]
|
D | bb_compat.c | 40 errcode_t badblocks_list_add(badblocks_list bb, blk_t blk) in badblocks_list_add() argument 42 return ext2fs_badblocks_list_add(bb, blk); in badblocks_list_add() 45 int badblocks_list_test(badblocks_list bb, blk_t blk) in badblocks_list_test() argument 47 return ext2fs_badblocks_list_test(bb, blk); in badblocks_list_test() 56 int badblocks_list_iterate(badblocks_iterate iter, blk_t *blk) in badblocks_list_iterate() argument 58 return ext2fs_badblocks_list_iterate(iter, blk); in badblocks_list_iterate()
|
D | ext_attr.c | 151 errcode_t ext2fs_adjust_ea_refcount3(ext2_filsys fs, blk64_t blk, in ext2fs_adjust_ea_refcount3() argument 159 if ((blk >= ext2fs_blocks_count(fs->super)) || in ext2fs_adjust_ea_refcount3() 160 (blk < fs->super->s_first_data_block)) in ext2fs_adjust_ea_refcount3() 170 retval = ext2fs_read_ext_attr3(fs, blk, block_buf, inum); in ext2fs_adjust_ea_refcount3() 179 retval = ext2fs_write_ext_attr3(fs, blk, block_buf, inum); in ext2fs_adjust_ea_refcount3() 189 errcode_t ext2fs_adjust_ea_refcount2(ext2_filsys fs, blk64_t blk, in ext2fs_adjust_ea_refcount2() argument 193 return ext2fs_adjust_ea_refcount3(fs, blk, block_buf, adjust, in ext2fs_adjust_ea_refcount2() 197 errcode_t ext2fs_adjust_ea_refcount(ext2_filsys fs, blk_t blk, in ext2fs_adjust_ea_refcount() argument 201 return ext2fs_adjust_ea_refcount2(fs, blk, block_buf, adjust, in ext2fs_adjust_ea_refcount() 325 blk64_t blk; in ext2fs_free_ext_attr() local [all …]
|
/external/e2fsprogs/resize/ |
D | resize2fs.c | 66 static inline int is_block_bm(ext2_filsys fs, unsigned int grp, blk64_t blk) in is_block_bm() argument 68 return blk == ext2fs_block_bitmap_loc(fs, grp); in is_block_bm() 71 static inline int is_inode_bm(ext2_filsys fs, unsigned int grp, blk64_t blk) in is_inode_bm() argument 73 return blk == ext2fs_inode_bitmap_loc(fs, grp); in is_inode_bm() 76 static int is_inode_tb(ext2_filsys fs, unsigned int grp, blk64_t blk) in is_inode_tb() argument 78 return blk >= ext2fs_inode_table_loc(fs, grp) && in is_inode_tb() 79 blk < (ext2fs_inode_table_loc(fs, grp) + in is_inode_tb() 585 blk64_t blk, lblk; in fix_uninit_block_bitmaps() local 596 blk = ext2fs_group_first_block2(fs, g); in fix_uninit_block_bitmaps() 598 ext2fs_unmark_block_bitmap_range2(fs->block_map, blk, in fix_uninit_block_bitmaps() [all …]
|
/external/syslinux/com32/libupload/ |
D | upload_ymodem.c | 28 static void add_crc16(uint8_t * blk, int len) in add_crc16() argument 67 crc = crctab[(crc >> 8) ^ *blk++] ^ crc << 8; in add_crc16() 69 *blk++ = crc >> 8; in add_crc16() 70 *blk = crc; in add_crc16() 73 static void send_ack(struct ymodem_state *ym, const uint8_t *blk, 76 static void send_ack_blk(struct ymodem_state *ym, uint8_t *blk) in send_ack_blk() argument 80 blk[0] = STX; in send_ack_blk() 81 blk[1] = ym->seq++; in send_ack_blk() 82 blk[2] = ~blk[1]; in send_ack_blk() 83 add_crc16(blk+3, 1024); in send_ack_blk() [all …]
|
/external/syslinux/core/fs/ext2/ |
D | bmap.c | 20 block_t blk; in ext4_find_leaf() local 37 blk = index[i].ei_leaf_hi; in ext4_find_leaf() 38 blk = (blk << 32) + index[i].ei_leaf_lo; in ext4_find_leaf() 39 eh = get_cache(fs->fs_dev, blk); in ext4_find_leaf() 89 uint32_t blk = *map; in scan_set_nblocks() local 92 uint32_t skip = blk ? 1 : 0; in scan_set_nblocks() 93 uint32_t next = blk + skip; in scan_set_nblocks() 109 return blk; in scan_set_nblocks() 122 const uint32_t *blk = NULL; in bmap_indirect() local 131 blk = get_cache(fs->fs_dev, start); in bmap_indirect() [all …]
|
/external/e2fsprogs/debugfs/ |
D | unused.c | 30 blk64_t blk; in do_dump_unused() local 39 for (blk=current_fs->super->s_first_data_block; in do_dump_unused() 40 blk < ext2fs_blocks_count(current_fs->super); blk++) { in do_dump_unused() 41 if (ext2fs_test_block_bitmap2(current_fs->block_map,blk)) in do_dump_unused() 43 retval = io_channel_read_blk64(current_fs->io, blk, 1, buf); in do_dump_unused() 54 blk); in do_dump_unused()
|
D | icheck.c | 23 blk64_t blk; member 45 if (!bw->barray[i].ino && bw->barray[i].blk == *block_nr) { in icheck_proc() 89 if (strtoblk(argv[0], argv[i], NULL, &bw.barray[i-1].blk)) in do_icheck() 110 blk64_t blk; in do_icheck() local 117 blk = ext2fs_file_acl_block(current_fs, &inode); in do_icheck() 118 if (blk) { in do_icheck() 119 icheck_proc(current_fs, &blk, 0, in do_icheck() 123 ext2fs_file_acl_block_set(current_fs, &inode, blk); in do_icheck() 161 printf("%llu\t<block not found>\n", binfo->blk); in do_icheck() 164 printf("%llu\t%u\n", binfo->blk, binfo->ino); in do_icheck()
|
/external/syslinux/core/fs/ufs/ |
D | bmap.c | 23 get_blkaddr (const uint8_t *blk, uint32_t index, uint32_t shift) in get_blkaddr() argument 28 (uint8_t *) blk + (index << shift), in get_blkaddr() 43 uint64_t blk = get_blkaddr(map, index, addr_shift); in scan_set_nblocks() local 50 uint32_t skip = blk ? FRAGMENTS_PER_BLK : 0; in scan_set_nblocks() 51 uint32_t next = blk + skip; in scan_set_nblocks() 57 ufs_debug("[scan] start blk: %u\n", blk); in scan_set_nblocks() 79 return blk; in scan_set_nblocks() 97 const uint8_t *blk = NULL; in bmap_indirect() local 107 blk = get_cache(fs->fs_dev, frag_to_blk(fs, start)); in bmap_indirect() 109 start = get_blkaddr(blk, index, UFS_SB(fs)->addr_shift); in bmap_indirect() [all …]
|
/external/syslinux/gpxe/src/crypto/ |
D | sha1extra.c | 45 u32 blk; in prf_sha1() local 63 for ( blk = 0 ;; blk++ ) { in prf_sha1() 64 *in_blknr = blk; in prf_sha1() 150 u32 blk; in pbkdf2_sha1() local 153 for ( blk = 1; blk <= blocks; blk++ ) { in pbkdf2_sha1() 155 iterations, blk, buf ); in pbkdf2_sha1()
|
/external/zlib/src/examples/ |
D | fitblk.c | 132 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()
|