Subject: Re: 8 octets aligned data with malloc ?
To: Manuel BOUYER <bouyer@antioche.lip6.fr>
From: Ignatios Souvatzis <ignatios@cs.uni-bonn.de>
List: tech-kern
Date: 10/15/1997 10:06:44
> 
> Hi,
> I need to malloc some memory space that should be aligned to 8 bytes.
> Is there a better way to do this than:
>   p = (malloc(size + 0x7) +0x7) & 0x7;

If at all, then
	p = (malloc(size + 0x7) +0x7) & ~0x7;

	-is