From: Piotr Dymacz Date: Mon, 9 Nov 2015 13:41:48 +0000 (+0100) Subject: Add BIT/S() macro helpers in u-boot/include/linux/bitops.h X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=8b3314105fb23ed059121678f0b2deaf6bee4066;p=oweals%2Fu-boot_mod.git Add BIT/S() macro helpers in 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