Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Mfwfo-0000Iu-Hi for mharc-grub-devel@gnu.org; Tue, 25 Aug 2009 10:06:56 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mfwfl-0000F6-E1 for grub-devel@gnu.org; Tue, 25 Aug 2009 10:06:53 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mfwfg-00009W-Nh for grub-devel@gnu.org; Tue, 25 Aug 2009 10:06:52 -0400 Received: from [199.232.76.173] (port=36215 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mfwfg-00009I-Ef for grub-devel@gnu.org; Tue, 25 Aug 2009 10:06:48 -0400 Received: from mail-fx0-f226.google.com ([209.85.220.226]:47235) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Mfwff-0008TM-Dj for grub-devel@gnu.org; Tue, 25 Aug 2009 10:06:48 -0400 Received: by fxm26 with SMTP id 26so2765938fxm.42 for ; Tue, 25 Aug 2009 07:06:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to :content-type:content-transfer-encoding; bh=0EDDNjttSqryWTa9ocNf+vhZml4YAuYv7usQTIQpJqM=; b=QKqdRbV6isQlxjhZDWxkj2cqQzlZngiQZGJdEb+S/a4pFXVukSi5libPm5nqf4ExGA 4j+MLlFMsdO/FkSic1/d+9tUmRAojLfBBx6XWCRzCzvIVSUUQMLvniiT7u3gv6bJNbBt XVt38VZy5BAKeLx7rECam0WiFHxsLysSWAVUM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; b=trZ1ZXo/uDhA7/nnCMZORY7fYn1GLCNJsh/SoJAuUBKd7HSx+Ue3CM8EHOeQgpW+b6 b1uhdYvAi+xgf74nKWNV3/QbshBaB5yLQsZ5+3BA0tyS/ijK/bEOUaUa83dCuhcf8IDC ry/oMEk14/Y9UP+XJn0pvjzbM8XOjY4jGk2Ik= MIME-Version: 1.0 Sender: hramrach@gmail.com Received: by 10.204.151.208 with SMTP id d16mr2526742bkw.115.1251209204194; Tue, 25 Aug 2009 07:06:44 -0700 (PDT) In-Reply-To: <20090823104812.GG4130@thorin> References: <20090823104812.GG4130@thorin> Date: Tue, 25 Aug 2009 16:06:43 +0200 X-Google-Sender-Auth: 7517e5014db27508 Message-ID: From: Michal Suchanek To: The development of GRUB 2 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: Re: [PATCH] Optimised 1bit blitters X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Aug 2009 14:06:53 -0000 2009/8/23 Robert Millan : > On Fri, Aug 21, 2009 at 05:33:30PM +0200, Vladimir 'phcoder' Serbinenko w= rote: >> + =C2=A0for (j =3D 0; j < height; j++) >> + =C2=A0 =C2=A0{ >> + =C2=A0 =C2=A0 =C2=A0for (i =3D 0; i < width; i++) >> + =C2=A0 =C2=A0 =C2=A0 =C2=A0{ > > It's a bit odd, but GCC doesn't seem to optimize those in a single loop. = =C2=A0Could > you use "i =3D 0; i < height * width; i++" instead? =C2=A0(for this and t= he other > similar instances) > > I can't comment much on the rest of this patch, as my understanding of > graphics is limited. =C2=A0But please wait a few days before commit, hope= fully > someone else will review. Well, this is not rocket science. You cache a function call which would be done on every iteration otherwise. This is not feasible with other bitmap types (except perhaps 8bit index->8bit index) because they use many more colours. How well tested is this? There are quite a few blitters and some may not be ever used in current code. The comment above the blend functions should probably not say they are replace blitters. Thanks Michal