From 22fb19e63d8f8409fbb5476acc9e67467f751968 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Mon, 19 Jul 2021 15:48:17 +0100 Subject: [PATCH] update comments --- src/openpower/decoder/isa/fastdctlee.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/openpower/decoder/isa/fastdctlee.py b/src/openpower/decoder/isa/fastdctlee.py index 8dd9376c..cb47063a 100644 --- a/src/openpower/decoder/isa/fastdctlee.py +++ b/src/openpower/decoder/isa/fastdctlee.py @@ -166,10 +166,12 @@ def transform2(vec): coeff = (math.cos((ci + 0.5) * math.pi / size) * 2.0) # normally DCT would use jl+halfsize not jh, here. # to be able to work in-place, the idea is to perform a - # swap afterwards. however actually we swap the *indices* + # high-half reverse/swap afterwards. however actually + # we swap the *indices* vec[ri[jl]] = t1 + t2 vec[ri[jh]] = (t1 - t2) * (1/coeff) - print ("coeff", size, i, k, "jl", jl, "jh", jh, + print (" ", size, i, k, "ci", ci, + "jl", ri[jl], "jh", ri[jh], "i/n", (k+0.5)/size, coeff, vec[ri[jl]], vec[ri[jh]]) k += tablestep # instead of using jl+halfsize, perform a swap here. -- 2.30.2