From: Wayne Davison Date: Tue, 10 Feb 2004 23:35:12 +0000 (+0000) Subject: Another attempt at measuring the minimum alignment for a system. X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/commitdiff_plain/4d4df3cd2b640e7d3f60d5c3438afea8a8cf5de5 Another attempt at measuring the minimum alignment for a system. --- 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,