Quote:
Originally Posted by llasram
Er, yes. That was what passes for a joke in my tribe.
|
Ah well yes, it was late I see the sarcasm now

.
Quote:
Originally Posted by llasram
That would be one of the two outstanding issues .. .
|
My aplogoizes I did not mean to rehash known issues.
Quote:
Originally Posted by igorsk
You can detect endianness at runtime. Grabbed from some random page:
Code:
Uint32 Value32;
Uint8 *VPtr = (Uint8 *)&Value32;
VPtr[0] = VPtr[1] = VPtr[2] = 0; VPtr[3] = 1;
if(Value32 == 1)
printf("I'm big endian\n");
else
printf("I'm little endian\n");
|
I use to be in favor of dong these checks in my code, but as systems are transitioning from 32 to 64 bit. It will complicate ones code w/o need. Its best to allow the OS to handle the edian/memory. Just make sure the macros work

.
=X=