Selaa lähdekoodia

libdpkg: Add new DPKG_BIT macro

Guillem Jover 14 vuotta sitten
vanhempi
commit
8636dd4283
1 muutettua tiedostoa jossa 7 lisäystä ja 0 poistoa
  1. 7 0
      lib/dpkg/macros.h

+ 7 - 0
lib/dpkg/macros.h

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