Template Function nvcv::detail::IsAligned(T, T)

Function Documentation

template<typename T>
constexpr bool nvcv::detail::IsAligned(T value, T alignment_pow2)

Checks if the value is a multiple of alignment.

Template Parameters:

T – an integral type

Parameters:
  • value – the value 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