ignore last bit of partition mask
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Thu, 20 Feb 2020 20:04:14 +0000 (20:04 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Thu, 20 Feb 2020 20:04:14 +0000 (20:04 +0000)
src/ieee754/part_mul_add/partpoints.py

index 043988fbc93c67f6c78208688fc932d2119baae9..efc55e4128e6ef38e928ebc7646f3391c4bb2f3a 100644 (file)
@@ -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