Re: [PATCH] Optimised 1bit blitters

2009-08-28 Thread Vladimir 'phcoder' Serbinenko
comitted On Tue, Aug 25, 2009 at 4:41 PM, Vladimir 'phcoder' Serbinenko wrote: > On Tue, Aug 25, 2009 at 4:06 PM, Michal Suchanek wrote: >> 2009/8/23 Robert Millan : >>> On Fri, Aug 21, 2009 at 05:33:30PM +0200, Vladimir 'phcoder' Serbinenko >>> wrote: +  for (j = 0; j < height; j++) +

Re: [PATCH] Optimised 1bit blitters

2009-08-25 Thread Vladimir 'phcoder' Serbinenko
On Tue, Aug 25, 2009 at 4:06 PM, Michal Suchanek wrote: > 2009/8/23 Robert Millan : >> On Fri, Aug 21, 2009 at 05:33:30PM +0200, Vladimir 'phcoder' Serbinenko >> wrote: >>> +  for (j = 0; j < height; j++) >>> +    { >>> +      for (i = 0; i < width; i++) >>> +        { >> >> It's a bit odd, but GC

Re: [PATCH] Optimised 1bit blitters

2009-08-25 Thread Michal Suchanek
2009/8/23 Robert Millan : > On Fri, Aug 21, 2009 at 05:33:30PM +0200, Vladimir 'phcoder' Serbinenko wrote: >> +  for (j = 0; j < height; j++) >> +    { >> +      for (i = 0; i < width; i++) >> +        { > > It's a bit odd, but GCC doesn't seem to optimize those in a single loop.   > Could > you us

Re: [PATCH] Optimised 1bit blitters

2009-08-23 Thread Robert Millan
On Sun, Aug 23, 2009 at 01:05:45PM +0200, Vladimir 'phcoder' Serbinenko wrote: > On Sun, Aug 23, 2009 at 12:48 PM, Robert Millan wrote: > > On Fri, Aug 21, 2009 at 05:33:30PM +0200, Vladimir 'phcoder' Serbinenko > > wrote: > >> +  for (j = 0; j < height; j++) > >> +    { > >> +      for (i = 0; i

Re: [PATCH] Optimised 1bit blitters

2009-08-23 Thread Vladimir 'phcoder' Serbinenko
On Sun, Aug 23, 2009 at 12:48 PM, Robert Millan wrote: > On Fri, Aug 21, 2009 at 05:33:30PM +0200, Vladimir 'phcoder' Serbinenko wrote: >> +  for (j = 0; j < height; j++) >> +    { >> +      for (i = 0; i < width; i++) >> +        { > > It's a bit odd, but GCC doesn't seem to optimize those in a si

Re: [PATCH] Optimised 1bit blitters

2009-08-23 Thread Robert Millan
On Fri, Aug 21, 2009 at 05:33:30PM +0200, Vladimir 'phcoder' Serbinenko wrote: > + for (j = 0; j < height; j++) > +{ > + for (i = 0; i < width; i++) > +{ It's a bit odd, but GCC doesn't seem to optimize those in a single loop. Could you use "i = 0; i < height * width; i++" inste

[PATCH] Optimised 1bit blitters

2009-08-21 Thread Vladimir 'phcoder' Serbinenko
Hello. Glyphs are 1-bit bitmaps and when they are blitted currently generic and slow blitter is used. This patch adds optimised blitters and this make text rendering faster -- Regards Vladimir 'phcoder' Serbinenko Personal git repository: http://repo.or.cz/w/grub2/phcoder.git diff --git a/Change