• 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: 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


  • Prev by Date: kAudioDevicePropertyStreamFormat notification
  • Next by Date: Re: kAudioDevicePropertyStreamConfiguration notification
  • Previous by thread: Re: kAudioDevicePropertyStreamFormat notification
  • Next by thread: Re: Little-to-Big Endian routines for OSX?
  • Index(es):
    • Date
    • Thread