11#ifndef INCLUDED_TOOLS_SIMD_HXX
12#define INCLUDED_TOOLS_SIMD_HXX
16template <
typename T,
unsigned int N>
inline bool isAligned(
const T* pointer)
18 return 0 == (uintptr_t(pointer) %
N);
21template <
typename T>
inline T
roundDown(T value,
unsigned int multiple)
23 return value & ~(multiple - 1);
bool isAligned(const T *pointer)
T roundDown(T value, unsigned int multiple)