Optimized byte-swapping primitives.
