align_ceil overloads
Synopses
Declared in <folly/lang/Align.h>
Returns the address rounded up to the given alignment.
constexpr
uintptr_t
align_ceil(
uintptr_t x,
std::size_t alignment);
Returns the pointer rounded up to the given alignment.
template<typename T>
T*
align_ceil(
T* x,
std::size_t alignment);
Return Value
x rounded up to a multiple of alignment.
Parameters
Name |
Description |
x |
The address to align. |
alignment |
The alignment value; must be valid. |
Created with MrDocs