Zeke-OS/zeke

memalign doesn't necessarily align correctly

Closed this issue · 0 comments

OlliV commented

One would perhaps expect that the align function would return the align size or a multiple of it but it doesn't.
Something like (size + al - MOD_AL(size, al)) would be more true to that.

size_t memalign_size(size_t size, size_t bytes)