aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/flow.h
diff options
context:
space:
mode:
authorLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2018-03-09 14:49:15 +0100
committerLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2018-03-14 23:19:54 +0100
commit0e49c8b5a06e95b10b6e3986535325edf319fbb5 (patch)
treeb5196d54758d95c8b98e0715c3a97706667a05b0 /flow.h
parentfee392ffe3d680b0a8df9ca1960998e8677e744a (diff)
downloadsparse-0e49c8b5a06e95b10b6e3986535325edf319fbb5.tar.gz
optim: fix REPEAT_CFG_CLEANUP
The REPEAT_... flags are used as bitfield but the last one introduced (by myself): REPEAT_CFG_CLEANUP was wrongly defined to the next value instead of the next bit. Fix this by defining it to the right value. Also change all the definition to use '1 << ...' to clearly show we expect uniq bit values here. Fixes: 917d37ad7681c88fc4d8df484f7b10d550190df8 Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Diffstat (limited to 'flow.h')
-rw-r--r--flow.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/flow.h b/flow.h
index ced6dcda..fe3581b5 100644
--- a/flow.h
+++ b/flow.h
@@ -5,9 +5,9 @@
extern unsigned long bb_generation;
-#define REPEAT_CSE 1
-#define REPEAT_SYMBOL_CLEANUP 2
-#define REPEAT_CFG_CLEANUP 3
+#define REPEAT_CSE (1 << 0)
+#define REPEAT_SYMBOL_CLEANUP (1 << 1)
+#define REPEAT_CFG_CLEANUP (1 << 2)
struct entrypoint;
struct instruction;