Function CE::Memory::Pointers::calculate_alignment(uintptr_t)
Defined in File pointers.h
Function Documentation
-
inline std::size_t CE::Memory::Pointers::calculate_alignment(uintptr_t address)
Returns the least-significant set address bit as a numeric alignment.
- Parameters:
address – Integer address to inspect without dereferencing it.
- Returns:
Largest power of two dividing address, or zero for address zero. Zero is not valid input to the alignment-offset helpers.