From: Jacob Lifshay Date: Fri, 15 Oct 2021 23:58:24 +0000 (-0700) Subject: format code X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cd392471c7c5a2f492d3edc64ef425c88ab73f90;p=ieee754fpu.git format code --- diff --git a/src/ieee754/part/partsig.py b/src/ieee754/part/partsig.py index ca2b90f1..b899397f 100644 --- a/src/ieee754/part/partsig.py +++ b/src/ieee754/part/partsig.py @@ -62,15 +62,19 @@ for name in ['add', 'eq', 'gt', 'ge', 'ls', 'xor', 'bool', 'all']: # behaviour. the idea is that this interface defines which "combinations" # of partition selections are relevant, and as an added bonus it says # which partition lanes are completely irrelevant (padding, blank). -class PartType: # TODO decide name +class PartType: # TODO decide name def __init__(self, psig): self.psig = psig + def get_mask(self): return list(self.psig.partpoints.values()) + def get_switch(self): return Cat(self.get_mask()) + def get_cases(self): - return range(1<