numpy/numpy — pull request #3309 by juliantaylor (2013-05-06 17:26:35+00:00)
Title: ENH: optimize byteswapping via intrinsics

Byteswapping is implemented in hardware on x86 cpus which is more than
double as fast than the existing implementation.
The masked version used for 32bit plays better with compiler pattern
matching so it can be optimized also by non-gcc/clang compilers.