24 inline void* aligned_malloc(
size_t size,
size_t alignment)
27 return _aligned_malloc(size, alignment);
30 int err = posix_memalign(&ptr, alignment, size);
36 std::cerr <<
"ALIGNED_MALLOC: Error allocating memory (posix_memalign: " << err <<
")" << std::endl;
43 inline void aligned_free(
void* ptr)
Hatchit Engine Copyright(c) 2015-2016 Third-Degree.
Definition: ht_intrin.h:33