Home
last modified time | relevance | path

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

/bionic/linker/
Dlinker_phdr.cpp572 static void* ReserveWithAlignmentPadding(size_t size, size_t mapping_align, size_t start_align, in ReserveWithAlignmentPadding() argument
576 mapping_align = std::max(mapping_align, start_align); in ReserveWithAlignmentPadding()
577 if (mapping_align == PAGE_SIZE) { in ReserveWithAlignmentPadding()
596 size_t mmap_size = align_up(size, mapping_align) + mapping_align - PAGE_SIZE; in ReserveWithAlignmentPadding()
603 size_t first_byte = reinterpret_cast<size_t>(align_up(mmap_ptr, mapping_align)); in ReserveWithAlignmentPadding()
604 size_t last_byte = reinterpret_cast<size_t>(align_down(mmap_ptr + mmap_size, mapping_align) - 1); in ReserveWithAlignmentPadding()
610 mapping_align = std::max(mapping_align, kGapAlignment); in ReserveWithAlignmentPadding()
613 mmap_size = align_up(size + gap_size, mapping_align) + mapping_align - PAGE_SIZE; in ReserveWithAlignmentPadding()
628 uint8_t* first = align_up(mmap_ptr, mapping_align); in ReserveWithAlignmentPadding()
629 uint8_t* last = align_down(gap_start, mapping_align) - size; in ReserveWithAlignmentPadding()