mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-01-12 07:49:32 -05:00
Little FFT loop indexing tweak.
This commit is contained in:
parent
78992c2f8d
commit
65dd385c94
@ -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");
|
static_assert(power_of_two(N), "only defined for N == power of two");
|
||||||
|
|
||||||
/* Provide data to this function, pre-swapped. */
|
/* 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 theta = -pi / mmax;
|
||||||
const float wtemp = sin_f32(0.5f * theta);
|
const float wtemp = sin_f32(0.5f * theta);
|
||||||
const T wp {
|
const T wp {
|
||||||
|
Loading…
Reference in New Issue
Block a user