- cleaned up

git-svn-id: http://moon:8086/svn/software/trunk/libsrc/cpp@100 b431acfa-c32f-4a4a-93f1-934dc6c82436
This commit is contained in:
2014-12-21 11:49:37 +00:00
parent c9222feda1
commit e38f88b9cc
+10 -6
View File
@@ -316,19 +316,23 @@ public:
{
uint32_t i;
uint32_t j;
ComplexScalar res(0,0);
j = 0;
for (i=0; i < len; i++)
{
m_pFir[m_currStage].feed(src(i));
res += m_pFir[m_currStage].processReal(m_pCoeff[m_currStage]);
m_currStage--;
if (m_currStage >= m_M)
if (m_currStage == (m_M-1))
{
dst(j) = m_pFir[m_currStage].processReal(m_pCoeff[m_currStage]);
}
else
{
dst(j) += m_pFir[m_currStage].processReal(m_pCoeff[m_currStage]);
}
if (--m_currStage >= m_M)
{
dst(j++) = res;
res = ComplexScalar(0,0);
m_currStage = m_M-1;
j++;
}
}