Home
last modified time | relevance | path

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

/petsc/src/sys/objects/cxx/memory/
H A Dobject_pool.cxx273 const auto alignment_offset = *buffer_zone_end; in extract_header_() local
275 …*header = reinterpret_cast<AllocationHeader *>(buffer_zone_end - alignment_offset - sizeof(Allocat… in extract_header_()
339 const auto alignment_offset = size_before - usable_size; in allocate_ptr_() local
341 …ert(alignment_offset <= max_align, PETSC_COMM_SELF, PETSC_ERR_MEMC, "Computed alignment offset %zu… in allocate_ptr_()
342 …ligned_ptr) - AllocationHeader::buffer_zone_size()) = static_cast<unsigned char>(alignment_offset); in allocate_ptr_()
344 const auto computed_aligned_ptr = base_ptr + header_size + alignment_offset; in allocate_ptr_()
346 …!= aligned pointer %p", static_cast<void *>(base_ptr), header_size, alignment_offset, static_cast<… in allocate_ptr_()