From dda048c0025428976bd77611b38fbf4b8948960d Mon Sep 17 00:00:00 2001 From: Piotr Dymacz Date: Thu, 12 Nov 2015 00:04:32 +0100 Subject: [PATCH] Another helper macro moved to include/linux/bitops.h --- u-boot/include/linux/bitops.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/u-boot/include/linux/bitops.h b/u-boot/include/linux/bitops.h index 91b113a..6849219 100755 --- a/u-boot/include/linux/bitops.h +++ b/u-boot/include/linux/bitops.h @@ -4,8 +4,9 @@ /* * Helper macros */ -#define BIT(_x) (1 << (_x)) -#define BITS(_start, _bits) (((1UL << (_bits)) - 1) << _start) +#define BIT(_x) (1 << (_x)) +#define BITS(_start, _bits) (((1UL << (_bits)) - 1) << _start) +#define CHECK_BIT(_var, _pos) ((_var) & (1 << (_pos))) /* * ffs: find first bit set. This is defined the same way as -- 2.25.1