Home
last modified time | relevance | path

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

/bionic/libc/platform/bionic/
Dmacros.h38 static constexpr uintptr_t align_up(uintptr_t p, size_t align) { in align_up() function
48 static inline T* _Nonnull align_up(T* _Nonnull p, size_t align) { in align_up() function
49 return reinterpret_cast<T*>(align_up(reinterpret_cast<uintptr_t>(p), align)); in align_up()
/bionic/libc/bionic/
Delf_note.cpp48 p += align_up(note->n_namesz, 4); in __get_elf_note()
50 p += align_up(note->n_descsz, 4); in __get_elf_note()
Dpthread_create.cpp128 reinterpret_cast<char*>(align_up(reinterpret_cast<uintptr_t>(scs_guard_region), SCS_SIZE)); in __init_shadow_call_stack()
/bionic/linker/
Dlinker_note_gnu_property.cpp140 align_up(sizeof(ElfW(Prop)) + property->pr_datasz, sizeof(ElfW(Addr))); in Parse()
Dlinker_phdr.cpp608 size_t mmap_size = align_up(size, mapping_align) + mapping_align - page_size(); in ReserveWithAlignmentPadding()
615 size_t first_byte = reinterpret_cast<size_t>(align_up(mmap_ptr, mapping_align)); in ReserveWithAlignmentPadding()
625 mmap_size = align_up(size + gap_size, mapping_align) + mapping_align - page_size(); in ReserveWithAlignmentPadding()
640 uint8_t* first = align_up(mmap_ptr, mapping_align); in ReserveWithAlignmentPadding()
Dlinker_note_gnu_property_test.cpp110 const uintptr_t addition = align_up(pr_datasz, sizeof(ElfW(Addr))); in push()