summaryrefslogtreecommitdiffstats
path: root/tools.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools.h')
-rw-r--r--tools.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools.h b/tools.h
index 3454fc4..3bd1b20 100644
--- a/tools.h
+++ b/tools.h
@@ -6,6 +6,8 @@
#include "pci.h"
+#define BIT_MASK(bits) ((1ll << (bits)) - 1)
+
#define min2(a, b) (((a)<(b))?(a):(b))
int pcilib_isnumber(const char *str);