mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-25 18:50:51 +03:00
o Use the __alignof__ extension to set DEFAULT_ALIGNMENT to that required
for a 'double'.
This commit is contained in:
parent
c863507d08
commit
72ecb99e54
@ -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)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user