mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-18 16:03:05 +00:00
COMMON: Some formatting fixes in RDFT code.
This commit is contained in:
parent
3c0c64f820
commit
bab02dd42b
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user