Page 1 of 1

64 bits aligned

Posted: Wed Jul 14, 2004 7:19 pm
by evilo
HI all,

may be it will be a stupid question for you, but on my side I still don't know exactly in which cases buffers need to be 64 bits aligned...

And what are the side effects on non aligned buffers ?

I searched the forum, look at a few sources, and this is not always the case !!

Thank you :)

evilo

Posted: Wed Jul 14, 2004 8:33 pm
by blackdroid
64 bits is not enough. 128bits ( 16 bytes ) alignment is needed for all dma transfers.

Posted: Wed Jul 14, 2004 9:33 pm
by evilo
Ok,
but without speaking of dma transfert ?

is it needed for buffers declarations ?

Posted: Wed Jul 14, 2004 9:52 pm
by blackdroid
without dma ( first off, nearly anything you do on this machine is for dma'ing ) you only need to care about alignment for the datawidth you are using, and that is more for performance. so if you are going to read int's float's align to 4 bytes.