Searched refs:align_down (Results 1 – 4 of 4) sorted by relevance
34 static constexpr uintptr_t align_down(uintptr_t p, size_t align) { in align_down() function43 static inline T* _Nonnull align_down(T* _Nonnull p, size_t align) { in align_down() function44 return reinterpret_cast<T*>(align_down(reinterpret_cast<uintptr_t>(p), align)); in align_down()
59 uintptr_t aligned_addr = align_down(addr, CFIShadow::kShadowAlign) + CFIShadow::kShadowAlign; in cfi_check_addr()
616 size_t last_byte = reinterpret_cast<size_t>(align_down(mmap_ptr + mmap_size, mapping_align) - 1); in ReserveWithAlignmentPadding()634 gap_end = align_down(mmap_ptr + mmap_size, kGapAlignment); in ReserveWithAlignmentPadding()641 uint8_t* last = align_down(gap_start, mapping_align) - size; in ReserveWithAlignmentPadding()
295 stack_top = align_down(stack_top - sizeof(pthread_internal_t), 16); in __allocate_thread()