Home
last modified time | relevance | path

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

/petsc/src/sys/objects/cxx/memory/
H A Dobject_pool.cxx26 constexpr AllocationHeader(size_type, align_type) noexcept;
28 PETSC_NODISCARD static constexpr align_type max_alignment() noexcept;
33 align_type align;
43 constexpr PoolAllocator::AllocationHeader::AllocationHeader(size_type size, align_type align) noexc… in AllocationHeader()
50 constexpr PoolAllocator::align_type PoolAllocator::AllocationHeader::max_alignment() noexcept in max_alignment()
55 return static_cast<align_type>(max_align); in max_alignment()
57 return static_cast<align_type>(std::numeric_limits<unsigned char>::max() + 1); in max_alignment()
102 constexpr PoolAllocator::size_type PoolAllocator::total_size_(size_type size, align_type align) noe… in total_size_()
149 PoolAllocator::pool_type::iterator PoolAllocator::find_align_(align_type align) noexcept in find_align_()
151 …this->pool().end(), align, [](const pool_type::value_type &pair, const align_type &align) { return… in find_align_()
[all …]
/petsc/include/petsc/private/cpp/
H A Dobject_pool.hpp63 using align_type = align_val_t; typedef in Petsc::memory::PoolAllocator
64 …using pool_type = std::vector<std::pair<align_type, UnorderedMap<size_type, std::vector<void *>>>…
76 PetscErrorCode try_allocate(void **, size_type, align_type, bool *) noexcept;
77 PetscErrorCode allocate(void **, size_type, align_type, bool * = nullptr) noexcept;
78 PetscErrorCode deallocate(void **, size_type, align_type) noexcept;
80 static PetscErrorCode get_attributes(const void *, size_type *, align_type *) noexcept;
111 PETSC_NODISCARD static constexpr size_type total_size_(size_type, align_type) noexcept;
113 static PetscErrorCode valid_alignment_(align_type) noexcept;
115 static PetscErrorCode allocate_ptr_(size_type, align_type, void **) noexcept;
122 PETSC_NODISCARD typename pool_type::iterator find_align_(align_type) noexcept;
[all …]