From b006a58e3980bca9d34b26b2222eb0bdee0291c9 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Mon, 4 Mar 2019 01:11:10 +0000 Subject: [PATCH] rename stickybit variable --- src/add/fpbase.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/add/fpbase.py b/src/add/fpbase.py index d6a059e0..4430f9c6 100644 --- a/src/add/fpbase.py +++ b/src/add/fpbase.py @@ -366,10 +366,10 @@ class FPNumIn(FPNumBase): maxsleni = mw - maxslen m_mask = sm.rshift(self.m1s[1:], maxsleni) # shift and invert - #stickybits = reduce(or_, inp.m[1:] & m_mask) | inp.m[0] - stickybits = (inp.m[1:] & m_mask).bool() | inp.m[0] + #stickybit = reduce(or_, inp.m[1:] & m_mask) | inp.m[0] + stickybit = (inp.m[1:] & m_mask).bool() | inp.m[0] return [self.e.eq(inp.e + diff), - self.m.eq(Cat(stickybits, rs)) + self.m.eq(Cat(stickybit, rs)) ] def shift_up_multi(self, diff): -- 2.30.2