Browse Source

libdpkg: Add new DPKG_BIT macro

Guillem Jover 14 years ago
parent
commit
8636dd4283
1 changed files with 7 additions and 0 deletions
  1. 7 0
      lib/dpkg/macros.h

+ 7 - 0
lib/dpkg/macros.h

@@ -88,6 +88,13 @@
 #define DPKG_END_DECLS
 #endif
 
+/**
+ * @def DPKG_BIT
+ *
+ * Return the integer value of bit n.
+ */
+#define DPKG_BIT(n)	(1UL << (n))
+
 /**
  * @def array_count
  *