From 8a0759602983254d13f91196ec977f3dbccfaf05 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Thu, 22 Jul 2021 15:24:00 +0100 Subject: [PATCH] simplification of halfrev2 algorithm (really neat) --- src/openpower/decoder/isa/fastdctlee.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/openpower/decoder/isa/fastdctlee.py b/src/openpower/decoder/isa/fastdctlee.py index f9f481b7..f2641461 100644 --- a/src/openpower/decoder/isa/fastdctlee.py +++ b/src/openpower/decoder/isa/fastdctlee.py @@ -102,8 +102,7 @@ def halfrev2(vec, pre_rev=True): ri = i bl = i.bit_length() for ji in range(1, bl): - if (1<> ji) res.append(vec[ri]) return res -- 2.30.2