[hpsdr] DttSP ovsv.c possible optimization?

Robert McGwier rwmcgwier at gmail.com
Mon Aug 13 07:19:33 PDT 2007


Good point!  I will look at it.

Bob



Philip Covington wrote:
> ***** High Performance Software Defined Radio Discussion List *****
> 
> Frank, Bob,
> 
> In DttSP ovsv.c, the output of the ifft is normalized over each block.
>  The scaling factor is computed as scale = 1.0/(real) fftlen.
> 
> I am thinking that it should be possible to pre-scale the filter
> coefficients by the same factor (1.0/(real)fftlen).  Since the filter
> is only re-calculated on a filter change and not on a block by block
> basis, this would avoid fftlen (blocksize real + blocksize imag)
> multiplications per block.
> 
> So instead of
> 
> ...
>  /* scale */
>   for (i = 0; i < n; i++)
>     zovec[i].re *= scl, zovec[i].im *= scl;
> ...
> 
> in the function filter_OvSv(...)
> 
> you would apply the same scl factor (1.0/(real)fftlen) to the filter
> calculated in
> 
> newFiltOvSv(...)
> 
> since the fast convolution is a linear operation.
> 
> At least it saves some non-trivial multiplications per bock...
> 
> 73 Phil N8VB
> _______________________________________________
> HPSDR Discussion List
> To post msg: hpsdr at hpsdr.org
> Subscription help: http://lists.hpsdr.org/listinfo.cgi/hpsdr-hpsdr.org
> HPSDR web page: http://hpsdr.org
> Archives: http://lists.hpsdr.org/pipermail/hpsdr-hpsdr.org/
> 


-- 
AMSAT Director and VP Engineering. Member: ARRL, AMSAT-DL,
TAPR, Packrats, NJQRP, QRP ARCI, QCWA, FRC. ARRL SDR WG Chair
"If you're going to be crazy, you have to get paid for it or
else you're going to be locked up." Hunter S. Thompson

 1187014773.0


More information about the Hpsdr mailing list