Cleanup audio/test/snr.c

This commit is contained in:
twinaphex 2016-09-08 12:10:38 +02:00
parent db6171676a
commit e045ec237a

View File

@ -121,6 +121,7 @@ static void butterflies(complex double *butterfly_buf, double phase_dir, size_t
static void calculate_fft(const float *data, complex double *butterfly_buf, size_t samples)
{
unsigned i;
unsigned step_size;
/* Enforce POT. */
retro_assert((samples & (samples - 1)) == 0);
@ -132,7 +133,7 @@ static void calculate_fft(const float *data, complex double *butterfly_buf, size
interleave(butterfly_buf, samples);
/* Fly, lovely butterflies! :D */
for (unsigned step_size = 1; step_size < samples; step_size *= 2)
for (step_size = 1; step_size < samples; step_size *= 2)
butterflies(butterfly_buf, -1.0, step_size, samples);
}