From: Piotr Dymacz Date: Wed, 11 Nov 2015 23:04:32 +0000 (+0100) Subject: Another helper macro moved to include/linux/bitops.h X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=dda048c0025428976bd77611b38fbf4b8948960d;p=oweals%2Fu-boot_mod.git Another helper macro moved to include/linux/bitops.h --- 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