* \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`. */
| 31 | * size greater or equal to `size` that is a multiple of `align_requirement`. |
| 32 | */ |
| 33 | inline 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. |
| 39 | inline bool is_aligned (const void* p, std::size_t alignment) noexcept |
no outgoing calls
no test coverage detected