ref: 52c9fbc7ecefe80d228d7666cdddc72bb7f95ebf
parent: 225486558c1552baf09cae2a17d313b061ee6edd
author: Ori Bernstein <ori@eigenstate.org>
date: Sat Sep 10 19:45:59 EDT 2016
Fix minimized integer encoding. The bit munging was wrong. Oops.
--- a/6/genp9.c
+++ b/6/genp9.c
@@ -297,7 +297,7 @@
n = 0;
shift = 8 - i;
b = ~0ull << (shift + 1);
- b |= val & ((1 << (8 - shift)) - 1);
+ b |= val & ~(~0ull << shift);
fprintf(fd, "\tDATA %s+%zd(SB)/1,$%u\n", lbl, off, b);
val >>= shift;
while (val != 0) {