From: Manuel Jander Subject: Re: Dreamcast AICA driver Date: Sun, 12 Mar 2006 21:35:36 +0100 Message-ID: <1142195736.8342.4.camel@localhost.localdomain> References: <1142124747.9496.50.camel@localhost.localdomain> <1142125920.25358.22.camel@mindpipe> <1142126427.9496.56.camel@localhost.localdomain> <1142145536.25358.116.camel@mindpipe> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1142145536.25358.116.camel@mindpipe> Sender: alsa-devel-admin@lists.sourceforge.net Errors-To: alsa-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: Alsa-devel list List-Id: alsa-devel@alsa-project.org Hi, On Sun, 2006-03-12 at 01:38 -0500, Lee Revell wrote: > On Sun, 2006-03-12 at 01:20 +0000, Adrian McMenamin wrote: > > > > http://newgolddream.dyndns.info/cgi-bin/cvsweb > > > > > > > > > dreamcastcard->clicks++; > > if (dreamcastcard->clicks == 8) dreamcastcard->clicks = 0; > > dreamcastcard->clicks %= 8; Watch out. The ARM7 does not support this in direct assembler. If the compiler is not smart enough it would require a division, and that is really realy slow on a any ARM processor. Helping the compiler by using dreamcastcard->clicks &= 0x00000003; ... would be a much faster option. Best Regards, Manuel. ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642