• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: problem with [NSData bytes] on Intel
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Prev by Date: Re: problem with [NSData bytes] on Intel
  • Next by Date: NSSearchField - bindings vs. multi-term search strings?
  • Previous by thread: Re: problem with [NSData bytes] on Intel
  • Next by thread: stringWithFormat: problem
  • Index(es):
    • Date
    • Thread