projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
man: sync "JOB FILE PARAMETERS" section with HOWTO
[fio.git]
/
lib
/
memalign.c
diff --git
a/lib/memalign.c
b/lib/memalign.c
index 1d1ba9ba2013ea2c3fdba579931ff1743989cdd7..137cc8ec3ec4eef920b9524c9b6a374cba32660f 100644
(file)
--- a/
lib/memalign.c
+++ b/
lib/memalign.c
@@
-3,7
+3,9
@@
#include <inttypes.h>
#include "memalign.h"
-#include "../fio.h"
+
+#define PTR_ALIGN(ptr, mask) \
+ (char *)((uintptr_t)((ptr) + (mask)) & ~(mask))
struct align_footer {
unsigned int offset;