forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

64 bits aligned

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PS2 Development
View previous topic :: View next topic  
Author Message
evilo



Joined: 22 Apr 2004
Posts: 230

PostPosted: Wed Jul 14, 2004 7:19 pm    Post subject: 64 bits aligned Reply with quote

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
Back to top
View user's profile Send private message Visit poster's website
blackdroid



Joined: 17 Jan 2004
Posts: 564
Location: Sweden

PostPosted: Wed Jul 14, 2004 8:33 pm    Post subject: Reply with quote

64 bits is not enough. 128bits ( 16 bytes ) alignment is needed for all dma transfers.
_________________
Kung VU
Back to top
View user's profile Send private message Visit poster's website
evilo



Joined: 22 Apr 2004
Posts: 230

PostPosted: Wed Jul 14, 2004 9:33 pm    Post subject: Reply with quote

Ok,
but without speaking of dma transfert ?

is it needed for buffers declarations ?
Back to top
View user's profile Send private message Visit poster's website
blackdroid



Joined: 17 Jan 2004
Posts: 564
Location: Sweden

PostPosted: Wed Jul 14, 2004 9:52 pm    Post subject: Reply with quote

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.
_________________
Kung VU
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PS2 Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group