From cd392471c7c5a2f492d3edc64ef425c88ab73f90 Mon Sep 17 00:00:00 2001 From: Jacob Lifshay Date: Fri, 15 Oct 2021 16:58:24 -0700 Subject: [PATCH] format code --- src/ieee754/part/partsig.py | 43 +++++++++++++++++++++++-------------- 1 file changed, 27 insertions(+), 16 deletions(-) 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<