projects
/
ieee754fpu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bed3bb6
)
add comments
author
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Sat, 8 Feb 2020 13:16:32 +0000
(13:16 +0000)
committer
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Sat, 8 Feb 2020 13:16:32 +0000
(13:16 +0000)
src/ieee754/part/partsig.py
patch
|
blob
|
history
diff --git
a/src/ieee754/part/partsig.py
b/src/ieee754/part/partsig.py
index cef3fed6b2654b25d133d188a25d97480605c40f..7868cf71587054870b3f94c912594043ff12135c 100644
(file)
--- a/
src/ieee754/part/partsig.py
+++ b/
src/ieee754/part/partsig.py
@@
-86,6
+86,9
@@
class PartitionedSignal:
# binary ops that need partitioning
+ # TODO: detect if the 2nd operand is a Const, a Signal or a
+ # PartitionedSignal. if it's a Const or a Signal, a global shift
+ # can occur. if it's a PartitionedSignal, that's much more interesting.
def __lshift__(self, other):
return Operator("<<", [self, other])
def __rlshift__(self, other):