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

From: Robin Gareus <robin@email-addr-hidden>
Date: Sun Oct 06 2013 - 22:31:43 EEST

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.

ciao,
robin
_______________________________________________
Linux-audio-dev mailing list
Linux-audio-dev@email-addr-hidden
http://lists.linuxaudio.org/listinfo/linux-audio-dev
Received on Mon Oct 7 08:15:03 2013

This archive was generated by hypermail 2.1.8 : Mon Oct 07 2013 - 08:15:04 EEST