Mercurial > hg > peckfft
diff peck_fftr.c @ 6:fee54f1878f7
kill FIXED_POINT stuff, simplify
author | Peter Meerwald <p.meerwald@bct-electronic.com> |
---|---|
date | Fri, 16 Sep 2011 15:18:28 +0200 |
parents | 2d6c49fcafcb |
children | 655dc5c14169 |
line wrap: on
line diff
--- a/peck_fftr.c Fri Sep 16 15:08:29 2011 +0200 +++ b/peck_fftr.c Fri Sep 16 15:18:28 2011 +0200 @@ -90,9 +90,6 @@ tdc.r = st->tmpbuf[0].r; tdc.i = st->tmpbuf[0].i; - C_FIXDIV(tdc,2); - CHECK_OVERFLOW_OP(tdc.r ,+, tdc.i); - CHECK_OVERFLOW_OP(tdc.r ,-, tdc.i); freqdata[0].r = tdc.r + tdc.i; freqdata[ncfft].r = tdc.r - tdc.i; #if USE_SIMD == SIMD_SSE2 @@ -109,8 +106,6 @@ fpk = st->tmpbuf[k]; fpnk.r = st->tmpbuf[ncfft-k].r; fpnk.i = - st->tmpbuf[ncfft-k].i; - C_FIXDIV(fpk, 2); - C_FIXDIV(fpnk, 2); C_ADD(f1k, fpk, fpnk); C_SUB(f2k, fpk, fpnk); @@ -136,15 +131,12 @@ st->tmpbuf[0].r = freqdata[0].r + freqdata[ncfft].r; st->tmpbuf[0].i = freqdata[0].r - freqdata[ncfft].r; - C_FIXDIV(st->tmpbuf[0], 2); for (k = 1; k <= ncfft / 2; ++k) { peck_fft_cpx fk, fnkc, fek, fok, tmp; fk = freqdata[k]; fnkc.r = freqdata[ncfft - k].r; fnkc.i = -freqdata[ncfft - k].i; - C_FIXDIV(fk, 2); - C_FIXDIV(fnkc, 2); C_ADD(fek, fk, fnkc); C_SUB(tmp, fk, fnkc);