avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[avr-gcc-list] Re: AVR byte swap optimization


From: Eric Christopher
Subject: [avr-gcc-list] Re: AVR byte swap optimization
Date: Sun, 19 Nov 2006 14:46:44 -0800


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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]