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. Jaroslav ----- Jaroslav Kysela <[EMAIL PROTECTED]> Linux Kernel Sound Maintainer ALSA Project, SuSE Labs ------------------------------------------------------- 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 _______________________________________________ Alsa-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/alsa-devel