Skip to content

Commit

Permalink
COMMON: Add getRevTab to FFT
Browse files Browse the repository at this point in the history
  • Loading branch information
bgK committed Feb 1, 2015
1 parent 76eadc7 commit ed037a5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions common/fft.cpp
Expand Up @@ -61,6 +61,10 @@ FFT::~FFT() {
delete[] _tmpBuf;
}

const uint16 *FFT::getRevTab() const {
return _revTab;
}

void FFT::permute(Complex *z) {
int np = 1 << _bits;

Expand Down
2 changes: 2 additions & 0 deletions common/fft.h
Expand Up @@ -47,6 +47,8 @@ class FFT {
FFT(int bits, int inverse);
~FFT();

const uint16 *getRevTab() const;

/** Do the permutation needed BEFORE calling calc(). */
void permute(Complex *z);

Expand Down

0 comments on commit ed037a5

Please sign in to comment.