diff options
author | Wayne Davison <wayned@samba.org> | 2004-02-10 23:35:12 +0000 |
---|---|---|
committer | Wayne Davison <wayned@samba.org> | 2004-02-10 23:35:12 +0000 |
commit | 4d4df3cd2b640e7d3f60d5c3438afea8a8cf5de5 (patch) | |
tree | f8ff4d804c3010a104e0dcae2e230ca56d953d89 /lib/pool_alloc.c | |
parent | 62125b10c92883c168d6efc1be6b3331035f8bfa (diff) | |
download | rsync-4d4df3cd2b640e7d3f60d5c3438afea8a8cf5de5.tar.gz rsync-4d4df3cd2b640e7d3f60d5c3438afea8a8cf5de5.tar.bz2 rsync-4d4df3cd2b640e7d3f60d5c3438afea8a8cf5de5.zip |
Another attempt at measuring the minimum alignment for a system.
Diffstat (limited to 'lib/pool_alloc.c')
-rw-r--r-- | lib/pool_alloc.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/pool_alloc.c b/lib/pool_alloc.c index 9f65b88c..c5648b6b 100644 --- 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, |