mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-08-15 03:37:40 +00:00
Little FFT loop indexing tweak.
This commit is contained in:
@@ -112,7 +112,8 @@ void fft_c_preswapped(std::array<T, N>& data) {
|
||||
static_assert(power_of_two(N), "only defined for N == power of two");
|
||||
|
||||
/* Provide data to this function, pre-swapped. */
|
||||
for(size_t mmax = 1; N > mmax; mmax <<= 1) {
|
||||
for(size_t k = 0; k < log_2(N); k++) {
|
||||
const size_t mmax = 1 << k;
|
||||
const float theta = -pi / mmax;
|
||||
const float wtemp = sin_f32(0.5f * theta);
|
||||
const T wp {
|
||||
|
Reference in New Issue
Block a user