| View previous topic :: View next topic |
| Author |
Message |
white rabbit
Joined: 06 Jul 2005 Posts: 60
|
Posted: Sun Jul 10, 2005 4:21 am Post subject: Defining the 128bit ints in gcc |
|
|
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 |
|
 |
mrbrown
Joined: 17 Jan 2004 Posts: 1536
|
Posted: Sun Jul 10, 2005 4:23 am Post subject: |
|
|
| 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 |
|
 |
white rabbit
Joined: 06 Jul 2005 Posts: 60
|
Posted: Sun Jul 10, 2005 4:29 am Post subject: |
|
|
| 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 |
|
 |
ector
Joined: 12 May 2005 Posts: 195
|
Posted: Sun Jul 10, 2005 4:44 am Post subject: |
|
|
| long is also 32-bit, while long long is (emulated) 64-bit. |
|
| Back to top |
|
 |
white rabbit
Joined: 06 Jul 2005 Posts: 60
|
Posted: Tue Jul 12, 2005 10:07 pm Post subject: |
|
|
: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 |
|
 |
|