From: Luke Kenneth Casson Leighton Date: Mon, 19 Jul 2021 14:48:17 +0000 (+0100) Subject: update comments X-Git-Tag: xlen-bcd~254 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=22fb19e63d8f8409fbb5476acc9e67467f751968;p=openpower-isa.git update comments --- 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.