Add simple aligned alloc helper
authorJens Axboe <jaxboe@fusionio.com>
Mon, 25 Apr 2011 18:46:58 +0000 (20:46 +0200)
committerJens Axboe <jaxboe@fusionio.com>
Mon, 25 Apr 2011 18:46:58 +0000 (20:46 +0200)
commit91aea6ec78170ffeb64a2a374ba69bce4986b86f
tree6ca08263591e3c78eac73ef6f3dbc824a111969b
parent7e8ad197a8d219e2fc181c881143f11891e7d0d5
Add simple aligned alloc helper

We don't have posix_memalign() on some Solaris and Darwin, so just
add a poor mans implementation of it. Outside of arch code where
we have proper posix_memalign(), this is only used to ensure good
alignment of the io_u in the core code.

Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
Makefile
fio.c
memalign.c [new file with mode: 0644]
memalign.h [new file with mode: 0644]