SpiecsEngine
 
Loading...
Searching...
No Matches

◆ is_aligned()

template<class integral >
constexpr bool Spices::MemoryLibrary::is_aligned ( integral x,
size_t a )
inlinestaticconstexprnoexcept

Determine is memory size aligned with specific value.

Parameters
[in]xmemory size.
[in]aaligned size.
Returns
Returns true if is aligned.

Definition at line 46 of file MemoryLibrary.h.

47 {
49
50 return (x & (integral(a) - 1)) == 0;
51 }
#define SPICES_PROFILE_ZONE