Tweaks for big endian systems

Remember, it's not the size of your endian that matters. It's what you
do with it that counts. ;)