Home
last modified time | relevance | path

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

/petsc/src/sys/objects/cxx/memory/
H A Dobject_pool.cxx267 const auto aligned_ptr = reinterpret_cast<unsigned char *>(user_ptr); in extract_header_() local
268 const auto buffer_zone_end = aligned_ptr - AllocationHeader::buffer_zone_size(); in extract_header_()
303 void *aligned_ptr = nullptr; in allocate_ptr_() local
331 aligned_ptr = base_ptr + header_size; in allocate_ptr_()
334 *ret_ptr = std::align(util::to_underlying(align), size, aligned_ptr, usable_size); in allocate_ptr_()
336 …, "std::align() failed to align pointer %p (size %zu, alignment %zu)", aligned_ptr, size, util::to… in allocate_ptr_()
342 …*(reinterpret_cast<unsigned char *>(aligned_ptr) - AllocationHeader::buffer_zone_size()) = static_… in allocate_ptr_()
346aligned_ptr, PETSC_COMM_SELF, PETSC_ERR_PLIB, "Base pointer %p + header size %zu + alignment offse… in allocate_ptr_()
352 PetscCall(PetscUnpoisonMemoryRegion(aligned_ptr, size)); in allocate_ptr_()