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 

Defining the 128bit ints in gcc

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



Joined: 06 Jul 2005
Posts: 60

PostPosted: Sun Jul 10, 2005 4:21 am    Post subject: Defining the 128bit ints in gcc Reply with quote

I am trying to get the psp-gcc to accept the fact the PSP has 64-bit architecture, and can handle 128 bit integers using the __attribute__((mode(TI))) code, but the compiler is having none of it, saying it cannot emulate the TI mode.

This is due to me suspecting some data types are of this format, and aren't two (u)int64s bundled together - as that causes some... oddness.

Has anybody got a workaround for this, or got it working? I'm guessing it's some gcc switch, but I'm not very good with the MIPS architecture, or gcc switches.
Back to top
View user's profile Send private message
mrbrown



Joined: 17 Jan 2004
Posts: 1536

PostPosted: Sun Jul 10, 2005 4:23 am    Post subject: Reply with quote

I know about it, I haven't had the chance to fix it yet. BTW, the PSP is a 32-bit architecture (unless I misread what you were trying to say).
Back to top
View user's profile Send private message
white rabbit



Joined: 06 Jul 2005
Posts: 60

PostPosted: Sun Jul 10, 2005 4:29 am    Post subject: Reply with quote

mrbrown wrote:
I know about it, I haven't had the chance to fix it yet. BTW, the PSP is a 32-bit architecture (unless I misread what you were trying to say).


Nope you read right - I thought it was 64bit. Now feel pretty dumb :-S

Jst to make sure I'm not being uber-dumb. the int space is 32 bits? So longs are 64bit, and long longs are 128bit? If so, then maybe my suspicions of the 128bit numbers are just wrong (internal size maps of vectors and matricies).
Back to top
View user's profile Send private message
ector



Joined: 12 May 2005
Posts: 195

PostPosted: Sun Jul 10, 2005 4:44 am    Post subject: Reply with quote

long is also 32-bit, while long long is (emulated) 64-bit.
Back to top
View user's profile Send private message
white rabbit



Joined: 06 Jul 2005
Posts: 60

PostPosted: Tue Jul 12, 2005 10:07 pm    Post subject: Reply with quote

:blush: right, it seems to be ok now I'm working in 32 bits rather than trying to get it to use 64.

Thanks!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP 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