Re: problem with [NSData bytes] on Intel
Re: problem with [NSData bytes] on Intel
- Subject: Re: problem with [NSData bytes] on Intel
- From: Gregory Weston <email@hidden>
- Date: Sat, 4 Feb 2006 15:00:29 -0500
On Feb 4, 2006, at 2:42 PM, Camillo Lugaresi wrote:
On 04/feb/06, at 09:27, Markus Hitter wrote:
You miss handling the different endianess of both architectures?
For floats/doubles, both processors might even use a different
number of bits for mantissa and exponent.
No, they both use IEEE 754 floats.
This matters for the number of bits used but not for big/little
endian issues, right?
Right.
No, I think you're missing part of what Markus is saying. Byte order
doesn't change only for integer types between PPC and i386; floating
point types are also flopped. So if you've go some random array of
bytes and cast a pointer to the beginning as float*, you're going to
generally end up with different values between the two architectures.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden