MCPcopy Create free account
hub / github.com/AMReX-Codes/amrex / aligned_size

Function aligned_size

Src/Base/AMReX_Arena.H:33–36  ·  view source on GitHub ↗

* \brief Given a minimum required size in bytes, this returns the smallest * size greater or equal to `size` that is a multiple of `align_requirement`. */

Source from the content-addressed store, hash-verified

31 * size greater or equal to `size` that is a multiple of `align_requirement`.
32 */
33inline std::size_t aligned_size (std::size_t align_requirement, std::size_t size) noexcept
34{
35 return ((size + (align_requirement-1)) / align_requirement) * align_requirement;
36}
37
38//! Return whether the address `p` is aligned to `alignment` bytes.
39inline bool is_aligned (const void* p, std::size_t alignment) noexcept

Callers 11

align_capacityMethod · 0.85
buildMPIStartMethod · 0.85
select_comm_data_typeFunction · 0.85
PrepareCommBuffersFunction · 0.85
alignMethod · 0.85
PrepareSendBuffersMethod · 0.85
PostRcvsMethod · 0.85
FillBoundaryFunction · 0.85
sendMethod · 0.85
recvMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected