Posted Oct 12, 2010 16:11 UTC (Tue) by jzbiciak
(✭ supporter ✭
In reply to: Little-endian PowerPC
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.
to post comments)