summary refs log tree commit diff
path: root/lisc
diff options
context:
space:
mode:
authorQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2016-02-27 22:39:12 -0500
committerQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2016-02-27 22:39:12 -0500
commit7185c41110ab8bc735f22c80092afbc6e62e5023 (patch)
tree1d85a716a7aeeede88935553df318a71cf62939a /lisc
parent165392ab63ee1dc3040917fc7c316847a16a210f (diff)
downloadroux-7185c41110ab8bc735f22c80092afbc6e62e5023.tar.gz
simplify a little more limit2()
Diffstat (limited to 'lisc')
-rw-r--r--lisc/spill.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/lisc/spill.c b/lisc/spill.c
index 739b6a9..2d509a0 100644
--- a/lisc/spill.c
+++ b/lisc/spill.c
@@ -208,20 +208,17 @@ limit(BSet *b, int k, BSet *f)
 }
 
 static void
-limit2(BSet *b, int k1, int k2, BSet *fst)
+limit2(BSet *b1, int k1, int k2, BSet *fst)
 {
-	BSet b1[1], b2[1];
+	BSet b2[1];
 
-	bsinit(b1, ntmp); /* todo, free those */
-	bsinit(b2, ntmp);
-	bscopy(b1, b);
-	bscopy(b2, b);
+	bsinit(b2, ntmp); /* todo, free those */
+	bscopy(b2, b1);
 	bsinter(b1, mask[0]);
 	bsinter(b2, mask[1]);
 	limit(b1, NIReg - k1, fst);
 	limit(b2, NFReg - k2, fst);
-	bscopy(b, b1);
-	bsunion(b, b2);
+	bsunion(b1, b2);
 }
 
 static void