Re: Little-to-Big Endian routines for OSX?
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