1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-02 01:18:26 +03:00

o Use the __alignof__ extension to set DEFAULT_ALIGNMENT to that required

for a 'double'.
This commit is contained in:
Joe Thornber 2001-10-04 09:10:11 +00:00
parent b39630bdb7
commit 5bdbd4b380

View File

@ -27,8 +27,8 @@ struct pool {
void _align_chunk(struct chunk *c, unsigned alignment); void _align_chunk(struct chunk *c, unsigned alignment);
struct chunk *_new_chunk(struct pool *p, size_t s); struct chunk *_new_chunk(struct pool *p, size_t s);
/* Alignment needs to be 8 for Alpha */ /* by default things come out aligned for doubles */
#define DEFAULT_ALIGNMENT 8 #define DEFAULT_ALIGNMENT __alignof__ (double)
struct pool *create_pool(size_t chunk_hint) struct pool *create_pool(size_t chunk_hint)
{ {