|
From: Dirk M. <dm...@gm...> - 2003-12-03 00:09:04
|
On Monday 01 December 2003 15:37, Nicholas Nethercote wrote: > For calloc() and malloc(), the value returned is a pointer to the > allocated memory, which is suitably aligned for any kind of > variable, or NULL if the request fails. suitably aligned means naturally aligned for all sizes the processor supports. x86 expects doubles to be 8-aligned and some SSE stuff even 16 aligned. we should 8-align at least, maybe even 16. > I'm not sure what this actually means. For x86, does "suitably aligned" > have any meaning at all, since unaligned accesses are ok? sure, but any code can actually assume that the malloc returned memory is 16 aligned. |