Make aligned allocation without posix_memalign more robust
Instead of guessing the right function to use, we malloc() 15 bytes more than we need, and compute the aligned offset within. The AlignedBuffer class takes care of passing the original pointer to free().
parent
0734640e
Please register or sign in to comment