From cc8c4d7edfbc8eb9e7aa712539e3433a2007452c Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Thu, 20 Feb 2020 20:04:14 +0000 Subject: [PATCH] ignore last bit of partition mask --- src/ieee754/part_mul_add/partpoints.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.30.2