From 8b3314105fb23ed059121678f0b2deaf6bee4066 Mon Sep 17 00:00:00 2001 From: Piotr Dymacz Date: Mon, 9 Nov 2015 14:41:48 +0100 Subject: [PATCH] Add BIT/S() macro helpers in u-boot/include/linux/bitops.h --- u-boot/include/linux/bitops.h | 5 +++++ 1 file changed, 5 insertions(+) mode change 100644 => 100755 u-boot/include/linux/bitops.h diff --git a/u-boot/include/linux/bitops.h b/u-boot/include/linux/bitops.h old mode 100644 new mode 100755 index 7d41ae6..91b113a --- a/u-boot/include/linux/bitops.h +++ b/u-boot/include/linux/bitops.h @@ -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 -- 2.25.1