|
From: Doug R. <df...@nl...> - 2004-03-14 11:51:26
|
On Saturday 13 March 2004 21:19, Tom Hughes wrote: > 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. I don't know about amd64 but ia64 really wants 16 byte alignment for malloc. |