![]() |
Documentation 6b54b78464
|
Functions | |
| constexpr bool | is_power_of_two (size_t x) |
| constexpr size_t | round_up (size_t multiple, size_t x) |
| template<class T , bool ZeroInit = false> | |
| T * | aligned_alloc (size_t alignment, size_t size) noexcept |
| Aligned memory allocation compatible across platforms. | |
| template<class T > | |
| void | aligned_free (T *ptr) noexcept |
| Free memory allocated with su2::aligned_alloc. | |
|
inlinenoexcept |
Aligned memory allocation compatible across platforms.
| [in] | alignment,in | bytes, of the memory being allocated. |
| [in] | size,also | in bytes. |
| ZeroInit,initialize | memory to 0. |
|
inlinenoexcept |
Free memory allocated with su2::aligned_alloc.
| [in] | ptr,pointer | to memory we want to release. |
|
inlineconstexpr |
|
inlineconstexpr |