Home
last modified time | relevance | path

Searched refs:aligned_size (Results 1 – 5 of 5) sorted by relevance

/system/core/property_service/libpropertyinfoserializer/
Dtrie_node_arena.h77 size_t aligned_size = size + (sizeof(uint32_t) - 1) & ~(sizeof(uint32_t) - 1); in AllocateData() local
79 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()
/system/core/fs_mgr/liblp/
Dbuilder.cpp126 void Partition::ShrinkTo(uint64_t aligned_size) { in ShrinkTo() argument
127 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()
700 bool MetadataBuilder::GrowPartition(Partition* partition, uint64_t aligned_size, in GrowPartition() argument
702 uint64_t space_needed = aligned_size - partition->size(); in GrowPartition()
871 void MetadataBuilder::ShrinkPartition(Partition* partition, uint64_t aligned_size) { in ShrinkPartition() argument
872 partition->ShrinkTo(aligned_size); in ShrinkPartition()
[all …]
/system/core/fs_mgr/liblp/include/liblp/
Dbuilder.h153 Partition GetBeginningExtents(uint64_t aligned_size) const;
156 void ShrinkTo(uint64_t aligned_size);
384 bool GrowPartition(Partition* partition, uint64_t aligned_size,
386 void ShrinkPartition(Partition* partition, uint64_t aligned_size);
/system/memory/libmemunreachable/
DAllocator.cpp134 size_t aligned_size = map_size; in MapAligned() local
137 std::align(align, size, aligned_ptr, aligned_size); in MapAligned()
/system/libziparchive/
Dzip_archive.cc117 const auto aligned_size = pageAlignUp(ptr_int + size) - aligned_ptr_int; in expandToPageBounds() local
118 return {reinterpret_cast<void*>(aligned_ptr_int), aligned_size}; in expandToPageBounds()
132 auto [aligned_ptr, aligned_size] = expandToPageBounds(const_cast<void*>(ptr), size); in maybePrefetch()
133 if (aligned_size > 32 * kPageSize) { in maybePrefetch()
134 if (::madvise(aligned_ptr, aligned_size, MADV_WILLNEED)) { in maybePrefetch()
144 auto [aligned_ptr, aligned_size] = expandToPageBounds(const_cast<void*>(ptr), size); in maybePrepareSequentialReading()
145 if (::madvise(reinterpret_cast<void*>(aligned_ptr), aligned_size, MADV_SEQUENTIAL)) { in maybePrepareSequentialReading()