Explorar o código

libdpkg: Add new DPKG_BIT macro

Guillem Jover %!s(int64=14) %!d(string=hai) anos
pai
achega
8636dd4283
Modificáronse 1 ficheiros con 7 adicións e 0 borrados
  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
  *
  *