Hi, On Wed, 31 Aug 2005, Knut Petersen wrote: > I added the multiply back because gcc (v. 3.3.4) does generate the fastest > code > if I write it this way. The multiply is not generally faster, so your version may be the fastest, but in other situations it will be a lot slower. My version is generally fast. > The special case for s_pitch == 2 saves about 270 ms system time (2120 -> > 1850ms) > with a 16x30 font. Compared to what? How much is the function call overhead? > It´s as fast/slow as your previous version, the measurements are almost > identical. The generated code is a bit smaller, so it mostly depends on the icache to see a difference. bye, Roman
- Follow-Ups:
- References:
- [PATCH 1/1 2.6.13] framebuffer: bit_putcs() optimization for 8x* fonts
- From: Knut Petersen <[email protected]>
- Re: [Linux-fbdev-devel] [PATCH 1/1 2.6.13] framebuffer: bit_putcs() optimization for 8x* fonts
- From: Geert Uytterhoeven <[email protected]>
- Re: [Linux-fbdev-devel] [PATCH 1/1 2.6.13] framebuffer: bit_putcs() optimization for 8x* fonts
- From: Knut Petersen <[email protected]>
- Re: [Linux-fbdev-devel] [PATCH 1/1 2.6.13] framebuffer: bit_putcs() optimization for 8x* fonts
- From: Roman Zippel <[email protected]>
- Re: [Linux-fbdev-devel] [PATCH 1/1 2.6.13] framebuffer: bit_putcs() optimization for 8x* fonts
- From: Knut Petersen <[email protected]>
- Re: [Linux-fbdev-devel] [PATCH 1/1 2.6.13] framebuffer: bit_putcs() optimization for 8x* fonts
- From: Roman Zippel <[email protected]>
- Re: [Linux-fbdev-devel] [PATCH 1/1 2.6.13] framebuffer: bit_putcs() optimization for 8x* fonts
- From: Knut Petersen <[email protected]>
- Re: [Linux-fbdev-devel] [PATCH 1/1 2.6.13] framebuffer: bit_putcs() optimization for 8x* fonts
- From: Roman Zippel <[email protected]>
- Re: [Linux-fbdev-devel] [PATCH 1/1 2.6.13] framebuffer: bit_putcs() optimization for 8x* fonts
- From: Knut Petersen <[email protected]>
- [PATCH 1/1 2.6.13] framebuffer: bit_putcs() optimization for 8x* fonts
- Prev by Date: Re: [Linux-fbdev-devel] [PATCH 1/1 2.6.13] framebuffer: bit_putcs() optimization for 8x* fonts
- Next by Date: Re: [patch 04/16] I/O driver for 8250-compatible UARTs
- Previous by thread: Re: [Linux-fbdev-devel] [PATCH 1/1 2.6.13] framebuffer: bit_putcs() optimization for 8x* fonts
- Next by thread: Re: [Linux-fbdev-devel] [PATCH 1/1 2.6.13] framebuffer: bit_putcs() optimization for 8x* fonts
- Index(es):