[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[avr-gcc-list] Re: AVR byte swap optimization
From: |
Rask Ingemann Lambertsen |
Subject: |
[avr-gcc-list] Re: AVR byte swap optimization |
Date: |
Mon, 20 Nov 2006 07:18:51 +0100 |
User-agent: |
Mutt/1.4.2.1i |
On Sun, Nov 19, 2006 at 02:46:44PM -0800, Eric Christopher wrote:
> >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...
But that's only available starting with the i486. We should still produce
good code for an i386. On the m68k, we also want something with three
rotates, say
rol.w $8, d0
swap.l d0
rol.w $8, d0
--
Rask Ingemann Lambertsen
- RE: [avr-gcc-list] AVR byte swap optimization, (continued)
[avr-gcc-list] Re: AVR byte swap optimization, Rask Ingemann Lambertsen, 2006/11/19
[avr-gcc-list] Re: AVR byte swap optimization, Denis Vlasenko, 2006/11/27