From dbe725cb4edd7aad80e27bc5beab328659db5f5c Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Mon, 19 Jul 2021 12:08:00 +0100 Subject: [PATCH] whitespace cleanup --- src/openpower/decoder/isa/remap_fft_yield.py | 28 ++++++++++---------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/src/openpower/decoder/isa/remap_fft_yield.py b/src/openpower/decoder/isa/remap_fft_yield.py index f7ed5ad5..d0fc1611 100644 --- a/src/openpower/decoder/isa/remap_fft_yield.py +++ b/src/openpower/decoder/isa/remap_fft_yield.py @@ -2,22 +2,22 @@ # original code for the FFT Tukey-Cooley schedul: # https://www.nayuki.io/res/free-small-fft-in-multiple-languages/fft.py """ - # Radix-2 decimation-in-time FFT - size = 2 - while size <= n: - halfsize = size // 2 - tablestep = n // size - for i in range(0, n, size): - k = 0 - for j in range(i, i + halfsize): + # Radix-2 decimation-in-time FFT + size = 2 + while size <= n: + halfsize = size // 2 + tablestep = n // size + for i in range(0, n, size): + k = 0 + for j in range(i, i + halfsize): jh = j+halfsize jl = j - temp1 = vec[jh] * exptable[k] - temp2 = vec[jl] - vec[jh] = temp2 - temp1 - vec[jl] = temp2 + temp1 - k += tablestep - size *= 2 + temp1 = vec[jh] * exptable[k] + temp2 = vec[jl] + vec[jh] = temp2 - temp1 + vec[jl] = temp2 + temp1 + k += tablestep + size *= 2 """ # python "yield" can be iterated. use this to make it clear how -- 2.30.2