> Looking at the above code, I noticed that there are a lot of ++ > operations. I rewrote the code as: > > setup_from[0] = setup_from[1] = eaddrs[0]; > setup_from[2] = setup_from[3] = eaddrs[1]; > setup_from[4] = setup_from[5] = eaddrs[2]; > setup_from += 6; > > I compiled using "gcc -S -Wall -O2 -fomit-frame-pointer -m486" to generate > the assembler code. The old code is 17 instructions long and the new code > is 11 instructions. As well as being shorter, simple timing test indicate > that the new code is significantly quicker. This is something the compiler ought to know about. Bernd - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.tux.org/lkml/
- Patch to remove undefined C code Bernd Schmidt
- Re: Patch to remove undefined C code Jeff Garzik
- Re: Patch to remove undefined C code Bernd Schmidt
- Re: Patch to remove undefined C code David Relson
- Re: Patch to remove undefined C code Bernd Schmidt
- Re: Patch to remove undefined C code Bill Wendling
- Re: Patch to remove undefined C co... Raja R Harinath
- Re: Patch to remove undefined C code Richard Henderson
- Re: Patch to remove undefined C code Abramo Bagnara
- Re: Patch to remove undefined C code Bill Wendling
- Re: Patch to remove undefined C code Helge Hafting
- Re: Patch to remove undefined C code Bernd Schmidt
- Re: Patch to remove undefined C code Richard Guenther
- Re: Patch to remove undefined C code Bernd Schmidt
- Re: Patch to remove undefined C code Richard Guenther