[LAD] A more efficient way to detect INF and/or NAN in a block of samples
Robin Gareus
robin at gareus.org
Sun Oct 6 19:31:43 UTC 2013
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
More information about the Linux-audio-dev
mailing list