Buttercola: Aligned Malloc and Free
Write an aligned malloc & free function. Which takes number of bytes and aligned byte (which is always power of 2)Ex. align_malloc (1000,128);
it will return memory address multiple of 128 of the size 1000.
aligned_free();
it will free memory allocated by align_malloc.
Read full article from Buttercola: Aligned Malloc and Free
No comments:
Post a Comment