User: Password:
Subscribe / Log in / New account

Little-endian PowerPC

Little-endian PowerPC

Posted Oct 12, 2010 16:11 UTC (Tue) by jzbiciak (subscriber, #5246)
In reply to: Little-endian PowerPC by jhhaller
Parent article: Little-endian PowerPC

I came here to say this. You're tilting at windmills if you're worrying too much about the cycle cost of byte swapping on modern hardware in most situations. About the only place it matters deeply is if you have a huge amount of data in the non-native endian (as would be the case for a frame buffer, hence the motivation of LE PCC).

The real cost most of the time is making sure you've not introduced endian dependencies in your code unwittingly, and have managed them properly where you have introduced them. Correctness is the tricky part.

(Log in to post comments)

Copyright © 2017, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds