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