[flac-dev] [PATCH] for endswap.h

Erik de Castro Lopo mle+la at mega-nerd.com
Fri Aug 8 19:55:16 PDT 2014


lvqcl wrote:

> IIRC GCC can optimize expressions like "(a<<8)|(a>>8)", but has problems
> with "(a<<8)+(a>>8)". I don't remember where I've read this though.
> 
> This patch changes '+' to '|' in ENDSWAP_16 and ENDSWAP_32 macros.

Applied. Thanks.

Erik
-- 
----------------------------------------------------------------------
Erik de Castro Lopo
http://www.mega-nerd.com/


More information about the flac-dev mailing list