aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorWayne Davison <wayned@samba.org>2004-02-10 23:35:12 +0000
committerWayne Davison <wayned@samba.org>2004-02-10 23:35:12 +0000
commit4d4df3cd2b640e7d3f60d5c3438afea8a8cf5de5 (patch)
treef8ff4d804c3010a104e0dcae2e230ca56d953d89 /lib
parent62125b10c92883c168d6efc1be6b3331035f8bfa (diff)
downloadandroid_external_rsync-4d4df3cd2b640e7d3f60d5c3438afea8a8cf5de5.tar.gz
android_external_rsync-4d4df3cd2b640e7d3f60d5c3438afea8a8cf5de5.tar.bz2
android_external_rsync-4d4df3cd2b640e7d3f60d5c3438afea8a8cf5de5.zip
Another attempt at measuring the minimum alignment for a system.
Diffstat (limited to 'lib')
-rw-r--r--lib/pool_alloc.c7
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,