ignore last bit of partition mask
[ieee754fpu.git] / 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