projects
/
ieee754fpu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
51a14e0
)
rename stickybit variable
author
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Mon, 4 Mar 2019 01:11:10 +0000
(
01:11
+0000)
committer
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Mon, 4 Mar 2019 01:11:10 +0000
(
01:11
+0000)
src/add/fpbase.py
patch
|
blob
|
history
diff --git
a/src/add/fpbase.py
b/src/add/fpbase.py
index d6a059e0339b0ea4c7464a2274a1e474cecb1535..4430f9c6a3fa235214d8191651109c9341167408 100644
(file)
--- 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
- #stickybit
s
= reduce(or_, inp.m[1:] & m_mask) | inp.m[0]
- stickybit
s
= (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(stickybit
s
, rs))
+ self.m.eq(Cat(stickybit, rs))
]
def shift_up_multi(self, diff):