E.V.E
v2022.03.00

◆ is_aligned() [3/4]

template<typename T , typename Lanes >
constexpr bool eve::is_aligned ( T *  ptr,
Lanes  lanes 
)
constexprnoexcept

Checks if a pointer satisfy an alignment constraint.

Parameters
ptrPointer to check
lanesAlignment constraint to verify expressed as a SIMD register number of lanes.
Returns
true if ptr is aligned over the alignment implied by lanes, false otherwise.