Searched refs:aligned_size (Results 1 – 4 of 4) sorted by relevance
77 size_t aligned_size = size + (sizeof(uint32_t) - 1) & ~(sizeof(uint32_t) - 1); in AllocateData() local79 if (current_data_pointer_ + aligned_size > data_.size()) { in AllocateData()80 auto new_size = (current_data_pointer_ + aligned_size + data_.size()) * 2; in AllocateData()86 current_data_pointer_ += aligned_size; in AllocateData()
126 void Partition::ShrinkTo(uint64_t aligned_size) { in ShrinkTo() argument127 if (aligned_size == 0) { in ShrinkTo()134 uint64_t sectors_to_remove = (size_ - aligned_size) / LP_SECTOR_SIZE; in ShrinkTo()146 DCHECK(size_ == aligned_size); in ShrinkTo()149 Partition Partition::GetBeginningExtents(uint64_t aligned_size) const { in GetBeginningExtents()159 p.ShrinkTo(aligned_size); in GetBeginningExtents()705 bool MetadataBuilder::GrowPartition(Partition* partition, uint64_t aligned_size, in GrowPartition() argument707 uint64_t space_needed = aligned_size - partition->size(); in GrowPartition()876 void MetadataBuilder::ShrinkPartition(Partition* partition, uint64_t aligned_size) { in ShrinkPartition() argument877 partition->ShrinkTo(aligned_size); in ShrinkPartition()[all …]
153 Partition GetBeginningExtents(uint64_t aligned_size) const;156 void ShrinkTo(uint64_t aligned_size);382 bool GrowPartition(Partition* partition, uint64_t aligned_size,384 void ShrinkPartition(Partition* partition, uint64_t aligned_size);
136 size_t aligned_size = map_size; in MapAligned() local139 std::align(align, size, aligned_ptr, aligned_size); in MapAligned()