From: Luke Kenneth Casson Leighton Date: Mon, 19 Jul 2021 11:08:00 +0000 (+0100) Subject: whitespace cleanup X-Git-Tag: xlen-bcd~264 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=dbe725cb4edd7aad80e27bc5beab328659db5f5c;p=openpower-isa.git whitespace cleanup --- 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