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: Matthew Xavier Mora <email@hidden>
- Date: Mon, 2 Jul 2001 07:46:35 -0700
At 12:29 AM -0400 6/30/01, Doug Wyatt wrote:
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?
32bit word
lwbrx -load word byte reversed indexed
stwbrx - store word byte reversed indexed
16 bit word
lhbrx - load half word byte reversed indexed
sthbrx - store half world byte reversed indexed
<
http://www.pds.twi.tudelft.nl/vakken/in101/labcourse/instruction-set/stwbrx.html>
<
http://www.pds.twi.tudelft.nl/vakken/in101/labcourse/instruction-set/lwbrx.html>
<
http://www.pds.twi.tudelft.nl/vakken/in101/labcourse/instruction-set/sthbrx.html>
<
http://www.pds.twi.tudelft.nl/vakken/in101/labcourse/instruction-set/lhbrx.html>
Matt