From e40545119e70cdb3307b8160a8ed4786bfb88f63 Mon Sep 17 00:00:00 2001 From: Jacob Lifshay Date: Thu, 11 Jul 2019 03:16:05 -0700 Subject: [PATCH] delete dead code in fpbase.MultiShift.[lr]shift --- src/ieee754/fpcommon/fpbase.py | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/ieee754/fpcommon/fpbase.py b/src/ieee754/fpcommon/fpbase.py index 71b2d9ec..5e086fe1 100644 --- a/src/ieee754/fpcommon/fpbase.py +++ b/src/ieee754/fpcommon/fpbase.py @@ -44,20 +44,10 @@ class MultiShift: def lshift(self, op, s): res = op << s return res[:len(op)] - res = op - for i in range(self.smax): - zeros = [0] * (1 << i) - res = Mux(s & (1 << i), Cat(zeros, res[0:-(1 << i)]), res) - return res def rshift(self, op, s): res = op >> s return res[:len(op)] - res = op - for i in range(self.smax): - zeros = [0] * (1 << i) - res = Mux(s & (1 << i), Cat(res[(1 << i):], zeros), res) - return res class FPNumBaseRecord: -- 2.30.2