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