From 5bdbd4b380e83b8fe38f41ee4b0ee9838333e34a Mon Sep 17 00:00:00 2001 From: Joe Thornber Date: Thu, 4 Oct 2001 09:10:11 +0000 Subject: [PATCH] o Use the __alignof__ extension to set DEFAULT_ALIGNMENT to that required for a 'double'. --- lib/mm/pool.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/mm/pool.c b/lib/mm/pool.c index bb55ab3e0..06dc82eba 100644 --- a/lib/mm/pool.c +++ b/lib/mm/pool.c @@ -27,8 +27,8 @@ struct pool { void _align_chunk(struct chunk *c, unsigned alignment); struct chunk *_new_chunk(struct pool *p, size_t s); -/* Alignment needs to be 8 for Alpha */ -#define DEFAULT_ALIGNMENT 8 +/* by default things come out aligned for doubles */ +#define DEFAULT_ALIGNMENT __alignof__ (double) struct pool *create_pool(size_t chunk_hint) {