From mboxrd@z Thu Jan 1 00:00:00 1970 From: Abramo Bagnara Subject: Re: Re: dmix plugin Date: Wed, 19 Feb 2003 12:17:08 +0100 Sender: alsa-devel-admin@lists.sourceforge.net Message-ID: <3E5367B4.9BB02DED@libero.it> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Errors-To: alsa-devel-admin@lists.sourceforge.net List-Help: List-Post: List-Subscribe: , List-Unsubscribe: , List-Archive: To: Jaroslav Kysela Cc: Jaroslaw Sobierski , "alsa-devel@lists.sourceforge.net" List-Id: alsa-devel@alsa-project.org Jaroslav Kysela wrote: > > On Wed, 19 Feb 2003, Abramo Bagnara wrote: > > > Jaroslav Kysela wrote: > > > > > > I've implemented the whole transfer and mix loop in assembly and it works > > > without any drastic impact on CPU usage. I tried to optimize the assembler > > > part as much as I can, but if some assembler guru want to give a glance, > > > I'll appreciate it. The function is named mix_areas1() in > > > alsa-lib/src/pcm/pcm_dmix.c. > > > > one comment: > > > > It's better to execute interleaved check once and not in mix_areas > > Done. I was tired enough yesterday to bother with these details. > > > one objection: > > > > I doubt very much that you gain anything coding the mixing loop in > > assembler, you've data showing that? > > I think that I spent some ticks by duplicating code for saturation and > also the main while{} loop is more effective than GCC generates. But it's > only guess. I hope to find the time to check it this evening -- Abramo Bagnara mailto:abramo.bagnara@libero.it Opera Unica Phone: +39.546.656023 Via Emilia Interna, 140 48014 Castel Bolognese (RA) - Italy ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge