From: Jacob Lifshay Date: Fri, 15 Oct 2021 03:21:12 +0000 (-0700) Subject: simplify dpoints computation X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=208cc4ab5747731847a479bf687c59e6c2732388;p=ieee754fpu.git simplify dpoints computation width is already set to fixed_width, we don't need to have a separate case --- diff --git a/src/ieee754/part/layout_experiment.py b/src/ieee754/part/layout_experiment.py index 4fabaa5f..88f058cd 100644 --- a/src/ieee754/part/layout_experiment.py +++ b/src/ieee754/part/layout_experiment.py @@ -151,10 +151,7 @@ def layout(elwid, vec_el_counts, lane_shapes=None, fixed_width=None): # do not need the breakpoints at the very start or the very end dpoints.pop(0, None) - if fixed_width is not None: - dpoints.pop(fixed_width, None) - else: - dpoints.pop(width, None) + dpoints.pop(width, None) plist = list(dpoints.keys()) plist.sort() print("dpoints")