On 5 February 2012 01:41, Erik de Castro Lopo <mle+la at mega-nerd.com> wrote: > a) On Linux, use the bswap_*() intrinsic. FWIW, Both Apple llvm-gcc 4.2.1 and Apple clang 3.0 support __builtin_bswap32() At least on XCode 4.2. It compiles to the bswap instruction. -r