Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
62125b1
)
Another attempt at measuring the minimum alignment for a system.
author
Wayne Davison
<wayned@samba.org>
Tue, 10 Feb 2004 23:35:12 +0000
(23:35 +0000)
committer
Wayne Davison
<wayned@samba.org>
Tue, 10 Feb 2004 23:35:12 +0000
(23:35 +0000)
lib/pool_alloc.c
patch
|
blob
|
blame
|
history
diff --git
a/lib/pool_alloc.c
b/lib/pool_alloc.c
index
9f65b88
..
c5648b6
100644
(file)
--- a/
lib/pool_alloc.c
+++ b/
lib/pool_alloc.c
@@
-32,7
+32,12
@@
struct pool_extent
struct pool_extent *next;
};
-#define MINALIGN (sizeof (long))
+struct align_test {
+ void *foo;
+ uint64 bar;
+};
+
+#define MINALIGN offsetof(struct align_test, bar)
alloc_pool_t
pool_create(size_t size, size_t quantum,