User talk:Andybrauer
From LinuxMCE
Revision as of 20:26, 30 January 2009 by Andybrauer (Talk | contribs) (New page: I am looking into the PS3 as Linuxmce Device and will put a HSUPA 3G USB into the PS3 The main issue is the current code caters for I386 which is little endian and the PS3 is Big Endian ...)
I am looking into the PS3 as Linuxmce Device and will put a HSUPA 3G USB into the PS3
The main issue is the current code caters for I386 which is little endian and the PS3 is Big Endian PPC
By using // 2-byte number int SHORT_little_endian_TO_big_endian(int i) {
return ((i>>8)&0xff)+((i << 8)&0xff00);
}
// 4-byte number int INT_little_endian_TO_big_endian(int i) {
return((i&0xff)<<24)+((i&0xff00)<<8)+((i&0xff0000)>>8)+((i>>24)&0xff);
}
We can get arround this but where to find all the code in which files that would need this is the current problem