From: Luke Kenneth Casson Leighton Date: Thu, 20 Feb 2020 20:04:14 +0000 (+0000) Subject: ignore last bit of partition mask X-Git-Tag: ls180-24jan2020~138 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cc8c4d7edfbc8eb9e7aa712539e3433a2007452c;p=ieee754fpu.git ignore last bit of partition mask --- diff --git a/src/ieee754/part_mul_add/partpoints.py b/src/ieee754/part_mul_add/partpoints.py index 043988fb..efc55e41 100644 --- a/src/ieee754/part_mul_add/partpoints.py +++ b/src/ieee754/part_mul_add/partpoints.py @@ -18,7 +18,7 @@ def make_partition(mask, width): mlen = mask.shape()[0] ppos = mlen midx = 0 - while ppos < width: + while ppos < width-1: # -1, ignore last bit ppoints[ppos] = mask[midx] ppos += mlen midx += 1