• 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: Little-to-Big Endian routines for OSX?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Little-to-Big Endian routines for OSX?


  • Subject: Re: Little-to-Big Endian routines for OSX?
  • From: Doug Wyatt <email@hidden>
  • Date: Sat, 30 Jun 2001 00:29:10 -0400

There are PowerPC instructions to load and store 16 and 32 bit little-endian integers ... I suspect the swap routine you mention uses one of those instructions. I haven't heard of it -- I grepped through /System/Library/Frameworks and didn't find it.

Can you point me to the documentation for it?

Doug

On Friday, June 29, 2001, at 07:03 PM, email@hidden wrote:
Hi guys,

Is there an efficient method to convert Littlendian to Bigendian for OSX?
Looking through the Apple website there is supposed to be a routine
"EndianSwap16Bit()" which looks useful. However, I can't find the right
include file / or this isn't available in OS X from an driver. I also
tried to make my own but the compiler seemed to ignore the ">>>" unsigned
bitwise-shift operator.

Thanks,
James


References: 
 >Little-to-Big Endian routines for OSX? (From: email@hidden)

  • Prev by Date: Little-to-Big Endian routines for OSX?
  • Next by Date: Re: [mac-sound-dev] Audio capture using java JMF or CoreAudio or QuickTime on OS X
  • Previous by thread: Little-to-Big Endian routines for OSX?
  • Index(es):
    • Date
    • Thread