Module |
|
Header |
/Engine/Source/Runtime/Core/Public/Templates/AlignmentTemplates.h |
Include |
#include "Templates/AlignmentTemplates.h" |
template<typename T>
constexpr T AlignDown
(
T Val,
uint64 Alignment
)
Aligns a value to the nearest lower multiple of 'Alignment', which must be a power of two.
The value aligned down to the specified alignment.
Parameter |
Description |
---|---|
Val |
The value to align. |
Alignment |
The alignment value, must be a power of two. |