/third_party/node/deps/brotli/c/enc/ |
D | cluster_inc.h | 15 const HistogramType* out, const uint32_t* cluster_size, uint32_t idx1, 32 p.cost_diff = 0.5 * ClusterCostDiff(cluster_size[idx1], cluster_size[idx2]); 71 uint32_t* cluster_size, 90 FN(BrotliCompareAndPushToQueue)(out, cluster_size, clusters[idx1], 110 cluster_size[best_idx1] += cluster_size[best_idx2]; 149 FN(BrotliCompareAndPushToQueue)(out, cluster_size, best_idx1, clusters[i], 253 uint32_t* cluster_size = BROTLI_ALLOC(m, uint32_t, in_size); 262 if (BROTLI_IS_OOM(m) || BROTLI_IS_NULL(cluster_size) || 268 cluster_size[i] = 1; 286 FN(BrotliHistogramCombine)(out, cluster_size, [all …]
|
D | block_splitter_inc.h | 203 uint32_t* cluster_size = BROTLI_ALLOC(m, uint32_t, cluster_size_capacity); in FN() local 224 BROTLI_IS_NULL(cluster_size) || BROTLI_IS_NULL(histograms) || in FN() 264 BROTLI_ENSURE_CAPACITY(m, uint32_t, cluster_size, in FN() 269 cluster_size[cluster_size_size++] = sizes[new_clusters[j]]; in FN() 295 all_histograms, cluster_size, histogram_symbols, clusters, pairs, in FN() 299 BROTLI_FREE(m, cluster_size); in FN()
|
/third_party/skia/third_party/externals/brotli/c/enc/ |
D | cluster_inc.h | 15 const HistogramType* out, const uint32_t* cluster_size, uint32_t idx1, 32 p.cost_diff = 0.5 * ClusterCostDiff(cluster_size[idx1], cluster_size[idx2]); 71 uint32_t* cluster_size, 90 FN(BrotliCompareAndPushToQueue)(out, cluster_size, clusters[idx1], 110 cluster_size[best_idx1] += cluster_size[best_idx2]; 149 FN(BrotliCompareAndPushToQueue)(out, cluster_size, best_idx1, clusters[i], 253 uint32_t* cluster_size = BROTLI_ALLOC(m, uint32_t, in_size); 262 if (BROTLI_IS_OOM(m) || BROTLI_IS_NULL(cluster_size) || 268 cluster_size[i] = 1; 286 FN(BrotliHistogramCombine)(out, cluster_size, [all …]
|
D | block_splitter_inc.h | 203 uint32_t* cluster_size = BROTLI_ALLOC(m, uint32_t, cluster_size_capacity); in FN() local 224 BROTLI_IS_NULL(cluster_size) || BROTLI_IS_NULL(histograms) || in FN() 264 BROTLI_ENSURE_CAPACITY(m, uint32_t, cluster_size, in FN() 269 cluster_size[cluster_size_size++] = sizes[new_clusters[j]]; in FN() 295 all_histograms, cluster_size, histogram_symbols, clusters, pairs, in FN() 299 BROTLI_FREE(m, cluster_size); in FN()
|
/third_party/exfat-utils/mkfs/ |
D | mkfs.c | 69 for (i = ui->cluster_size / bd->sector_size; i > 1; i /= 2) in exfat_setup_boot_sector() 256 count = clu + round_up(length, ui->cluster_size) / ui->cluster_size; in write_fat_entries() 412 bitmap_clu_len = round_up(bitmap_byte_len, ui->cluster_size), in exfat_pack_bitmap() 416 bitmap_clu_cnt = bitmap_clu_len / ui->cluster_size; in exfat_pack_bitmap() 423 new_bitmap_clu_len = round_up(bitmap_byte_len, ui->cluster_size); in exfat_pack_bitmap() 441 if (ui->cluster_size < bd->sector_size) { in exfat_build_mkfs_info() 443 ui->cluster_size, bd->sector_size); in exfat_build_mkfs_info() 455 exfat_err("cluster size (%u bytes) is too small\n", ui->cluster_size); in exfat_build_mkfs_info() 458 finfo.fat_byte_len = round_up((bd->num_clusters * 4), ui->cluster_size); in exfat_build_mkfs_info() 465 total_clu_cnt = (bd->size - finfo.clu_byte_off) / ui->cluster_size; in exfat_build_mkfs_info() [all …]
|
/third_party/ntfs-3g/libntfs-3g/ |
D | bootsect.c | 252 vol->cluster_size = sectors_per_cluster * vol->sector_size; in ntfs_boot_sector_parse() 253 if (vol->cluster_size & (vol->cluster_size - 1)) { in ntfs_boot_sector_parse() 255 vol->cluster_size); in ntfs_boot_sector_parse() 258 vol->cluster_size_bits = ffs(vol->cluster_size) - 1; in ntfs_boot_sector_parse() 265 ntfs_log_debug("ClusterSize = 0x%x\n", (unsigned)vol->cluster_size); in ntfs_boot_sector_parse() 304 if (vol->cluster_size <= 4 * vol->mft_record_size) in ntfs_boot_sector_parse() 307 vol->mftmirr_size = vol->cluster_size / vol->mft_record_size; in ntfs_boot_sector_parse()
|
D | volume.c | 611 mft_lcn = (8192 + 2 * vol->cluster_size - 1) / vol->cluster_size; in ntfs_volume_startup() 612 if (mft_lcn * vol->cluster_size < 16 * 1024) in ntfs_volume_startup() 613 mft_lcn = (16 * 1024 + vol->cluster_size - 1) / in ntfs_volume_startup() 614 vol->cluster_size; in ntfs_volume_startup()
|
/third_party/e2fsprogs/lib/ext2fs/ |
D | qcow2.c | 127 size = read(fd, *l2_table, img->cluster_size); in qcow2_read_l2_table() 128 if (size != img->cluster_size) in qcow2_read_l2_table() 181 img.cluster_size = 1 << img.cluster_bits; in qcow2_write_raw_image() 187 if (img.l1_offset & (img.cluster_size - 1)) in qcow2_write_raw_image() 191 img.cluster_size; in qcow2_write_raw_image() 195 ret = ext2fs_get_memzero(img.cluster_size, &l2_table); in qcow2_write_raw_image() 245 off_out, copy_buf, img.cluster_size); in qcow2_write_raw_image()
|
D | qcow2.h | 96 __u32 cluster_size; member
|
/third_party/ntfs-3g/ntfsprogs/ |
D | mkntfs.c | 226 long cluster_size; /* -c, format with this cluster-size */ member 582 opts2->cluster_size = -1; in mkntfs_init_options() 651 &opts2->cluster_size)) in mkntfs_parse_options() 908 length = rl[i].length * g_vol->cluster_size; in ntfs_rlwrite() 927 if (dev->d_ops->seek(dev, rl[i].lcn * g_vol->cluster_size, in ntfs_rlwrite() 1514 if (highest_vcn * g_vol->cluster_size < val_len) { in insert_positioned_attr_in_mft_record() 1561 a->allocated_size = cpu_to_sle64(highest_vcn * g_vol->cluster_size); in insert_positioned_attr_in_mft_record() 1679 g_vol->cluster_size - 1) / g_vol->cluster_size); in insert_non_resident_attr_in_mft_record() 1756 a->allocated_size = cpu_to_sle64((val_len + (g_vol->cluster_size - 1)) & in insert_non_resident_attr_in_mft_record() 1757 ~(g_vol->cluster_size - 1)); in insert_non_resident_attr_in_mft_record() [all …]
|
D | ntfswipe.c | 495 buffer = malloc(vol->cluster_size); in wipe_unused() 500 memset(buffer, byte, vol->cluster_size); in wipe_unused() 511 result = ntfs_pwrite(vol->dev, vol->cluster_size * i, vol->cluster_size, buffer); in wipe_unused() 512 if (result != vol->cluster_size) { in wipe_unused() 518 total += vol->cluster_size; in wipe_unused() 560 big_buffer = (u8*)malloc(vol->cluster_size*64); in wipe_unused_fast() 576 unused += (blksize - result) * vol->cluster_size; in wipe_unused_fast() 585 if (ntfs_pread(vol->dev, vol->cluster_size * i, in wipe_unused_fast() 586 vol->cluster_size * blksize, big_buffer) in wipe_unused_fast() 587 != vol->cluster_size * blksize) { in wipe_unused_fast() [all …]
|
D | ntfscp.c | 517 bufpos = pos & ((alctx->vol->cluster_size << 3) - 1); in examine_buf() 716 br = vol->cluster_size; in find_best_runs() 719 && (br == vol->cluster_size) in find_best_runs() 722 (pos >> 3) & -vol->cluster_size, in find_best_runs() 723 vol->cluster_size, alctx->buf); in find_best_runs() 726 pos = (pos | ((vol->cluster_size << 3) - 1)) + 1; in find_best_runs() 731 br = vol->cluster_size; in find_best_runs() 734 && (br == vol->cluster_size) in find_best_runs() 737 (pos >> 3) & -vol->cluster_size, in find_best_runs() 738 vol->cluster_size, alctx->buf); in find_best_runs() [all …]
|
D | ntfsclone.c | 254 le32 cluster_size; member 649 s64 s = (s64)16384 - rl->vcn * vol->cluster_size; 651 s = rounded_up_division(s, vol->cluster_size); 762 s32 csize = le32_to_cpu(image_hdr.cluster_size); 771 csize = vol->cluster_size; 883 pos = (off_t)(lcn * vol->cluster_size); 943 u32 csize = vol->cluster_size; 1022 s32 csize = le32_to_cpu(image_hdr.cluster_size); 1360 vcn = offset / image->ni->vol->cluster_size; 1522 csize = image->ni->vol->cluster_size; [all …]
|
D | ntfsmove.c | 560 buffer = malloc(vol->cluster_size); in data_copy() 568 res = ntfs_pread(vol->dev, (from->lcn+i) * vol->cluster_size, in data_copy() 569 vol->cluster_size, buffer); in data_copy() 570 if (res != vol->cluster_size) { in data_copy() 577 res = ntfs_pwrite(vol->dev, (to->lcn+i) * vol->cluster_size, in data_copy() 578 vol->cluster_size, buffer); in data_copy() 579 if (res != vol->cluster_size) { in data_copy()
|
D | ntfsfallocate.c | 502 buf = (char*)malloc(vol->cluster_size); in ntfs_inner_zero() 504 memset(buf, 0, vol->cluster_size); in ntfs_inner_zero() 514 vol->cluster_size, buf); in ntfs_inner_zero() 515 if (zeroed != vol->cluster_size) { in ntfs_inner_zero() 522 pos += vol->cluster_size; in ntfs_inner_zero() 608 end_vcn = (alloc_offs + alloc_len + vol->cluster_size - 1) in ntfs_inner_allocation()
|
D | ntfsresize.c | 621 old_b = vol->nr_clusters * vol->cluster_size; in print_advise() 635 new_b = supp_lcn * vol->cluster_size; in print_advise() 637 freed_b = (vol->nr_clusters - supp_lcn + 1) * vol->cluster_size; in print_advise() 1886 pos = (off_t)(lcn * vol->cluster_size); in lseek_to_cluster() 1898 buff = (char*)ntfs_malloc(vol->cluster_size); in copy_clusters() 1906 if (read_all(vol->dev, buff, vol->cluster_size) == -1) { in copy_clusters() 1915 if (write_all(vol->dev, buff, vol->cluster_size) == -1) { in copy_clusters() 2343 runs_b = llcn.lcn * vol->cluster_size; in print_hint() 2519 nr_bm_clusters = rounded_up_division(bm_bsize, vol->cluster_size); in truncate_bitmap_data_attr() 2540 a->allocated_size = cpu_to_sle64(nr_bm_clusters * vol->cluster_size); in truncate_bitmap_data_attr() [all …]
|
D | ntfsck.c | 374 mft_bitmap_length = vcn * rawvol->cluster_size; in mft_bitmap_load() 375 mft_bitmap_records = 8 * mft_bitmap_length * rawvol->cluster_size / in mft_bitmap_load() 731 mft_offset = rawvol->mft_lcn * rawvol->cluster_size; in verify_mft_preliminary() 732 mftmirr_offset = rawvol->mftmirr_lcn * rawvol->cluster_size; in verify_mft_preliminary()
|
D | ntfsfix.c | 896 && (sle64_to_cpu(a->data_size) < vol->cluster_size) in attrlist_selfloc_condition() 899 vol->cluster_size, attrlist) == vol->cluster_size)) { in attrlist_selfloc_condition() 1126 if (ntfs_pwrite(vol->dev, offs, vol->cluster_size, in fix_selfloc_conditions() 1127 selfloc->attrlist) != vol->cluster_size) in fix_selfloc_conditions() 1192 selfloc.attrlist = (ATTR_LIST_ENTRY*)malloc(vol->cluster_size); in fix_self_located_mft()
|
/third_party/e2fsprogs/misc/ |
D | e2image.c | 874 img->cluster_size, &ref->refcount_table); in init_refcount() 879 ret = ext2fs_get_arrayzero(1, img->cluster_size, &ref->refcount_block); in init_refcount() 904 image->cluster_size = fs->blocksize; in initialize_qcow2_image() 915 offset = align_offset(header_size, image->cluster_size); in initialize_qcow2_image() 927 offset += align_offset(l1_size * sizeof(blk64_t), image->cluster_size); in initialize_qcow2_image() 938 offset += image->cluster_size; in initialize_qcow2_image() 944 offset += image->cluster_size; in initialize_qcow2_image() 996 memset(table->data, 0, img->cluster_size); in put_used_table() 1023 generic_write(fd, (char *)table->data, image->cluster_size, in flush_l2_cache() 1026 seek += image->cluster_size; in flush_l2_cache() [all …]
|
/third_party/exfat-utils/lib/ |
D | libexfat.c | 131 ui->cluster_size = 4 * KB; in exfat_set_default_cluster_size() 133 ui->cluster_size = 32 * KB; in exfat_set_default_cluster_size() 135 ui->cluster_size = 128 * KB; in exfat_set_default_cluster_size() 190 if (!ui->cluster_size) in exfat_get_blk_dev_info() 200 bd->num_clusters = blk_dev_size / ui->cluster_size; in exfat_get_blk_dev_info() 361 unsigned int cluster_size, sector_size; in exfat_get_root_entry_offset() local 378 cluster_size = (1 << bs->bsx.sect_per_clus_bits) * sector_size; in exfat_get_root_entry_offset() 381 cluster_size; in exfat_get_root_entry_offset() 657 (clu - EXFAT_RESERVED_CLUSTERS) * bd->cluster_size; in exfat_clus_to_blk_dev_off()
|
/third_party/boost/boost/geometry/algorithms/detail/ |
D | get_left_turns.hpp | 224 inline void block_turns(AngleCollection& sorted, std::size_t cluster_size) in block_turns() argument 226 BOOST_GEOMETRY_ASSERT(boost::size(sorted) >= 4u && cluster_size > 0); in block_turns() 229 for (std::size_t i = 0; i < cluster_size; i++) in block_turns() 252 = cluster_index == 0 ? cluster_size - 1 : cluster_index - 1; in block_turns() 254 = cluster_index + 1 >= cluster_size ? 0 : cluster_index + 1; in block_turns()
|
D | occupation_info.hpp | 121 std::size_t cluster_size = detail::left_turns::assign_cluster_indices(m_angles, origin); in get_left_turns() local 123 detail::left_turns::block_turns(m_angles, cluster_size); in get_left_turns()
|
/third_party/exfat-utils/include/ |
D | libexfat.h | 66 unsigned int cluster_size; member 72 unsigned int cluster_size; member
|
/third_party/exfat-utils/dump/ |
D | dump.c | 131 bd->cluster_size = in exfat_show_ondisk_all_info() 195 exfat_info("Cluster size: \t\t\t\t%u\n", bd->cluster_size); in exfat_show_ondisk_all_info()
|
/third_party/fsck_msdos/ |
D | dir.c | 224 int rootdir_size, cluster_size; in resetDosDirSection() local 232 cluster_size = boot->bpbSecPerClust * boot->bpbBytesPerSec; in resetDosDirSection() 234 if ((buffer = malloc(len = MAX(rootdir_size, cluster_size))) == NULL) { in resetDosDirSection() 239 if ((delbuf = malloc(len = cluster_size)) == NULL) { in resetDosDirSection()
|