Function nvcv::detail::IsAligned(const void *, uintptr_t)
Function Documentation
-
inline bool nvcv::detail::IsAligned(const void *ptr, uintptr_t alignment_pow2)
Checks if a pointer is aligned to a multiple of
alignment_pow2
bytes.- Parameters:
ptr – the pointer whose alignment is checked
alignment_pow2 – the alignment, must be a power of 2
- Returns:
true if value is a multiple of alignment_pow2
- Returns:
false otherwise