Fancy disassembly of Thumb2 IT blocks.
Example:
0x60ce6ea4: 4291 cmp r1, r2
0x60ce6ea6: bf0e itee eq
0x60ce6ea8: 2001 movseq r0, #1
0x60ce6eaa: 1c10 movne r0, r2
0x60ce6eac: 47f0 blxne lr
0x60ce6eae: 1c06 mov r6, r0
Change-Id: I85deae2e471b8bfc513281be421e0bd46c1b60a0
diff --git a/src/utils.h b/src/utils.h
index c709f9a..f11a769 100644
--- a/src/utils.h
+++ b/src/utils.h
@@ -131,6 +131,7 @@
}
#define CLZ(x) __builtin_clz(x)
+#define CTZ(x) __builtin_ctz(x)
static inline bool NeedsEscaping(uint16_t ch) {
return (ch < ' ' || ch > '~');