16 constexpr
inline bool kalmar_is_alignment(std::size_t value) noexcept {
17 return (value > 0) && ((value & (value - 1)) == 0);
20 inline void* kalmar_aligned_alloc(std::size_t alignment, std::size_t size) noexcept {
21 assert(kalmar_is_alignment(alignment));
23 N = std::alignment_of<void*>::value
30 posix_memalign(&memptr, alignment, size);
36 inline void kalmar_aligned_free(
void* ptr) noexcept {
namespace for internal classes of Kalmar compiler / runtime
Definition: hc.hpp:42