Alignment operations.
More...
#include <align_ops.h>
|
static size_t | max_alignment () |
| Get maximum alignment for current platform. More...
|
|
static size_t | align_max (size_t size) |
| Return size aligned to maximum alignment. More...
|
|
static size_t | align_as (size_t size, size_t alignment) |
| Return size aligned to given alignment. More...
|
|
static size_t | pad_max (size_t size) |
| Return padding needed for maximum alignment. More...
|
|
static size_t | pad_as (size_t size, size_t alignment) |
| Return padding needed for given alignment. More...
|
|
Alignment operations.
Definition at line 28 of file align_ops.h.
◆ align_as()
static size_t roc::core::AlignOps::align_as |
( |
size_t |
size, |
|
|
size_t |
alignment |
|
) |
| |
|
static |
Return size aligned to given alignment.
◆ align_max()
static size_t roc::core::AlignOps::align_max |
( |
size_t |
size | ) |
|
|
static |
Return size aligned to maximum alignment.
◆ max_alignment()
static size_t roc::core::AlignOps::max_alignment |
( |
| ) |
|
|
static |
Get maximum alignment for current platform.
◆ pad_as()
static size_t roc::core::AlignOps::pad_as |
( |
size_t |
size, |
|
|
size_t |
alignment |
|
) |
| |
|
static |
Return padding needed for given alignment.
◆ pad_max()
static size_t roc::core::AlignOps::pad_max |
( |
size_t |
size | ) |
|
|
static |
Return padding needed for maximum alignment.
The documentation for this class was generated from the following file: