This is a printf format specifier, a la PRIx32 et al. This avoids us
having to write %#x explicitly, which would be annoying if bitmask_t
ever changed its type.
No use sites introduced in this commit, so no functional change yet.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
#define SETBIT(m, x) (m |= BITMASK(x))
#define CLEARBIT(m, x) (m &= ~BITMASK(x))
#define MODBIT(m, x, b) ((b) ? SETBIT(m, x) : CLEARBIT(m, x))
+#define PRBITMASK "0x%x"
#define ABSVAL(x) ((x) < 0 ? -1*(x) : (x))
#define MINVAL(x, y) ((x) < (y) ? (x) : (y))