Re: AVR-gcc shift optimization

2013-08-02 Thread Oleg Endo
Hi, On Thu, 2013-08-01 at 21:23 -0400, Asm Twiddler wrote: > Hello all. > > The current implementation produces non-optimal code for large shifts > that aren't a multiple of eight when operating on long integers (4 > bytes). > All such shifts are broken down into a slow loop shift. > For example,

AVR-gcc shift optimization

2013-08-01 Thread Asm Twiddler
Hello all. The current implementation produces non-optimal code for large shifts that aren't a multiple of eight when operating on long integers (4 bytes). All such shifts are broken down into a slow loop shift. For example, a logical shift right by 17 will result in a loop that takes around 7 cyc