[flac-dev] Please test new endian stuff

2012-02-05 Thread Erik de Castro Lopo
Hi all, I've just pushed some changes to git repo that changes the way endian swapping is done. In particular it does: a) On Linux, use the bswap_*() intrinsic. b) On Windows _byteswap_*() intrinsic. c) Falls back to a macro for everything else. I've tested this on 64 bit little endian

Re: [flac-dev] Please test new endian stuff

2012-02-05 Thread Ralph Giles
On 5 February 2012 01:41, Erik de Castro Lopo mle...@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

Re: [flac-dev] Please test new endian stuff

2012-02-05 Thread Erik de Castro Lopo
Ralph Giles wrote: On 5 February 2012 01:41, Erik de Castro Lopo mle...@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. Ok, I