Add BIT/S() macro helpers in u-boot/include/linux/bitops.h
authorPiotr Dymacz <pepe2k@gmail.com>
Mon, 9 Nov 2015 13:41:48 +0000 (14:41 +0100)
committerPiotr Dymacz <pepe2k@gmail.com>
Mon, 9 Nov 2015 13:41:48 +0000 (14:41 +0100)
u-boot/include/linux/bitops.h [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index 7d41ae6..91b113a
@@ -1,6 +1,11 @@
 #ifndef _LINUX_BITOPS_H
 #define _LINUX_BITOPS_H
 
+/*
+ * Helper macros
+ */
+#define BIT(_x)                                (1 << (_x))
+#define BITS(_start, _bits)    (((1UL << (_bits)) - 1) << _start)
 
 /*
  * ffs: find first bit set. This is defined the same way as