|
From: Tom H. <th...@cy...> - 2004-03-13 21:19:56
|
In message <107...@sp...>
Robert Walsh <rj...@du...> wrote:
> > On that point, anybody planning to attack this should check what
> > alignment glibc uses on x86-64 as it have to return 16 byte aligned
> > pointers due to the use of SSE for floating point values. It would
> > be a bit silly to rework it for 8 buyte alignment and then find we
> > need 16 byte alignment ;-)
>
> On one of our Opteron boxes, I spotted this in the posix_memalign() man
> page:
>
> GNU libc malloc() always returns 8-byte aligned memory
> addresses, so these routines are only needed if you require
> larger alignment values.
Yep. I had a look at glibc and as far as I can see it only does 8 byte
alignment, even on x86-64.
Tom
--
Tom Hughes (th...@cy...)
Software Engineer, Cyberscience Corporation
http://www.cyberscience.com/
|