[LAD] A more efficient way to detect INF and/or NAN in a block of samples

Kjetil Matheussen k.s.matheussen at gmail.com
Tue Oct 8 11:30:32 UTC 2013


On Sun, Oct 6, 2013 at 9:31 PM, Robin Gareus <robin at gareus.org> wrote:
> On 10/06/2013 09:07 PM, Kjetil Matheussen wrote:
>> But brainstorming further, it probably works to combine the peak finding routine
>> (which is run on all signals) with the nan/inf-detection:
>
> +1
>
> BTW compile with -ftree-vectorizer-verbose=7 to check what gcc does.
>
> If you're looking for something ready-made, there are SSE, and altivec
> asm routines for mixing buffers and calculating the peak value in
> ardour. Have a look at libs/ardour/*.s, libs/ardour/mix.cc and
> libs/ardour/ardour/mix.h
>
> GPL and everything, thanks to Sampo IIRC.
>

Thanks robin, those functions are nice.


More information about the Linux-audio-dev mailing list