AVR byte swap optimization

Eric Christopher echristo@apple.com
Sun Nov 19 23:26:00 GMT 2006


>
>    It isn't only on the AVR that bswap_32() is nontrivial to get  
> right.
> These two versions would rule on the i386 if GCC would be just a  
> little bit
> smarter:
>

I prefer the single instruction bswap that we now generate for  
__builtin_bswap[32,64] myself...

-eric



More information about the Gcc mailing list