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-Tag: v2.6.1pre1~50 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4d4df3cd2b640e7d3f60d5c3438afea8a8cf5de5;p=thirdparty%2Frsync.git 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,