Add little/big-endian switch functions.