projects
/
ieee754fpu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
add partitioned signal any() operator
[ieee754fpu.git]
/
src
/
ieee754
/
part
/
partsig.py
diff --git
a/src/ieee754/part/partsig.py
b/src/ieee754/part/partsig.py
index 53561d4bcc97c0dca31981261428b48d2e69dfff..ed221d3e402028f59cbc12b1e61c2b62243caa88 100644
(file)
--- a/
src/ieee754/part/partsig.py
+++ b/
src/ieee754/part/partsig.py
@@
-281,6
+281,7
@@
class PartitionedSignal:
Value, out
``1`` if any bits are set, ``0`` otherwise.
"""
+ return self != Const(0) # leverage the __ne__ operator here
return Operator("r|", [self])
def all(self):