Little-endian PowerPC
Little-endian PowerPC
Posted Oct 7, 2010 23:07 UTC (Thu) by jhhaller (guest, #56103)In reply to: Little-endian PowerPC by jengelh
Parent article: Little-endian PowerPC
Posted Oct 12, 2010 16:11 UTC (Tue)
by jzbiciak (guest, #5246)
[Link]
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.
Little-endian PowerPC