Lines Matching refs:AllocationHeader

25 struct PoolAllocator::AllocationHeader {  struct in Petsc::memory::PoolAllocator
26 constexpr AllocationHeader(size_type, align_type) noexcept;
43 constexpr PoolAllocator::AllocationHeader::AllocationHeader(size_type size, align_type align) noexc… in AllocationHeader() function in Petsc::memory::PoolAllocator::AllocationHeader
50 constexpr PoolAllocator::align_type PoolAllocator::AllocationHeader::max_alignment() noexcept in max_alignment()
72 constexpr PoolAllocator::size_type PoolAllocator::AllocationHeader::buffer_zone_size() noexcept in buffer_zone_size()
85 constexpr PoolAllocator::size_type PoolAllocator::AllocationHeader::header_size() noexcept in header_size()
87 return sizeof(AllocationHeader) + buffer_zone_size(); in header_size()
106 return AllocationHeader::header_size() + size + util::to_underlying(align) - 1; in total_size_()
129 AllocationHeader *header = nullptr; in delete_ptr_()
219 constexpr auto max_align = util::to_underlying(AllocationHeader::max_alignment()); in valid_alignment_()
247 PetscErrorCode PoolAllocator::extract_header_(void *user_ptr, AllocationHeader **header, bool check… in extract_header_()
268 const auto buffer_zone_end = aligned_ptr - AllocationHeader::buffer_zone_size(); in extract_header_()
275 …*header = reinterpret_cast<AllocationHeader *>(buffer_zone_end - alignment_offset - sizeof(Allocat… in extract_header_()
299 constexpr auto header_size = AllocationHeader::header_size(); in allocate_ptr_()
330 …interpret_cast<unsigned char *>(util::construct_at(reinterpret_cast<AllocationHeader *>(base_ptr),… in allocate_ptr_()
338 constexpr auto max_align = util::to_underlying(AllocationHeader::max_alignment()); in allocate_ptr_()
342 …*(reinterpret_cast<unsigned char *>(aligned_ptr) - AllocationHeader::buffer_zone_size()) = static_… in allocate_ptr_()
394 AllocationHeader *header = nullptr; in get_attributes()