COMMON: Some formatting fixes in RDFT code.

This commit is contained in:
Johannes Schickel 2014-06-02 01:00:15 +02:00
parent 3c0c64f820
commit bab02dd42b

View File

@ -29,7 +29,7 @@
namespace Common {
RDFT::RDFT(int bits, TransformType trans) : _bits(bits), _sin(bits), _cos(bits), _fft(0) {
assert ((_bits >= 4) && (_bits <= 16));
assert((_bits >= 4) && (_bits <= 16));
_inverse = trans == IDFT_C2R || trans == DFT_C2R;
_signConvention = trans == IDFT_R2C || trans == DFT_C2R ? 1 : -1;
@ -53,8 +53,8 @@ void RDFT::calc(float *data) {
const float k2 = 0.5f - _inverse;
if (!_inverse) {
_fft->permute((Complex *) data);
_fft->calc ((Complex *) data);
_fft->permute((Complex *)data);
_fft->calc ((Complex *)data);
}
Complex ev, od;
@ -91,8 +91,8 @@ void RDFT::calc(float *data) {
data[0] *= k1;
data[1] *= k1;
_fft->permute((Complex *) data);
_fft->calc ((Complex *) data);
_fft->permute((Complex *)data);
_fft->calc ((Complex *)data);
}
}